mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 13:25:57 +00:00
23373acbb9
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
32 lines
801 B
CMake
32 lines
801 B
CMake
|
|
add_definitions(-D__SECUR32__)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
|
|
spec2def(secur32.dll secur32.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
dllmain.c
|
|
lsalpc.c
|
|
sspi.c
|
|
stubs.c
|
|
thunks.c
|
|
wrapper.c
|
|
wine/base64_codec.c
|
|
wine/dispatcher.c
|
|
wine/hmac_md5.c
|
|
wine/kerberos.c
|
|
wine/negotiate.c
|
|
wine/ntlm.c
|
|
wine/util.c
|
|
precomp.h)
|
|
|
|
add_library(secur32 MODULE
|
|
${SOURCE}
|
|
secur32.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/secur32_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/secur32.def)
|
|
|
|
set_module_type(secur32 win32dll UNICODE)
|
|
target_link_libraries(secur32 lsalib wine)
|
|
add_importlibs(secur32 advapi32 netapi32 msvcrt kernel32 ntdll)
|
|
add_pch(secur32 precomp.h SOURCE)
|
|
add_cd_file(TARGET secur32 DESTINATION reactos/system32 FOR all)
|