mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
d0f3fa51fb
CORE-10312
67 lines
1.8 KiB
CMake
67 lines
1.8 KiB
CMake
|
|
spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB)
|
|
add_definitions(-D_ADVAPI32_)
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers/ksecdd
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/cryptlib
|
|
${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
add_rpc_files(client
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/eventlogrpc.idl
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/lsa.idl
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/svcctl.idl
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winreg.idl)
|
|
|
|
list(APPEND SOURCE
|
|
misc/dllmain.c
|
|
misc/efs.c
|
|
misc/evntrace.c
|
|
misc/hwprofiles.c
|
|
misc/logon.c
|
|
misc/msi.c
|
|
misc/shutdown.c
|
|
misc/sysfunc.c
|
|
misc/unicode.c
|
|
reg/hkcr.c
|
|
reg/reg.c
|
|
sec/ac.c
|
|
sec/audit.c
|
|
sec/lsa.c
|
|
sec/misc.c
|
|
sec/safer.c
|
|
sec/sec.c
|
|
sec/trustee.c
|
|
service/eventlog.c
|
|
service/rpc.c
|
|
service/scm.c
|
|
service/sctrl.c
|
|
service/winreg.c
|
|
token/token.c
|
|
wine/cred.c
|
|
wine/crypt.c
|
|
wine/crypt_des.c
|
|
wine/crypt_lmhash.c
|
|
wine/security.c
|
|
advapi32.h)
|
|
|
|
add_library(advapi32 SHARED
|
|
${SOURCE}
|
|
advapi32.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32.def
|
|
${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/lsa_c.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/svcctl_c.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/winreg_c.c)
|
|
|
|
set_module_type(advapi32 win32dll UNICODE ENTRYPOINT DllMain 12)
|
|
target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB})
|
|
add_delay_importlibs(advapi32 secur32)
|
|
add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
|
|
add_pch(advapi32 advapi32.h SOURCE)
|
|
add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
|