2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_definitions(-D_ADVAPI32_)
|
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2011-08-07 00:53:19 +00:00
|
|
|
include_directories(
|
2016-04-20 12:36:25 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers/ksecdd
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/lib/cryptlib
|
2011-08-07 00:53:19 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
add_rpc_files(client
|
2016-04-20 12:36:25 +00:00
|
|
|
${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)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
misc/dllmain.c
|
|
|
|
misc/efs.c
|
2018-01-06 19:48:21 +00:00
|
|
|
misc/evntrace.c
|
2011-05-16 13:12:07 +00:00
|
|
|
misc/hwprofiles.c
|
|
|
|
misc/logon.c
|
|
|
|
misc/msi.c
|
|
|
|
misc/shutdown.c
|
|
|
|
misc/sysfunc.c
|
2016-08-07 19:02:07 +00:00
|
|
|
misc/unicode.c
|
2014-09-30 20:00:23 +00:00
|
|
|
reg/hkcr.c
|
2011-05-16 13:12:07 +00:00
|
|
|
reg/reg.c
|
|
|
|
sec/ac.c
|
|
|
|
sec/audit.c
|
|
|
|
sec/lsa.c
|
|
|
|
sec/misc.c
|
2013-04-27 09:15:24 +00:00
|
|
|
sec/safer.c
|
2011-05-16 13:12:07 +00:00
|
|
|
sec/sec.c
|
|
|
|
sec/trustee.c
|
|
|
|
service/eventlog.c
|
|
|
|
service/rpc.c
|
|
|
|
service/scm.c
|
|
|
|
service/sctrl.c
|
2015-12-26 01:14:18 +00:00
|
|
|
service/winreg.c
|
2011-05-16 13:12:07 +00:00
|
|
|
token/token.c
|
2014-10-24 13:37:01 +00:00
|
|
|
wine/cred.c
|
2014-10-23 18:58:35 +00:00
|
|
|
wine/crypt.c
|
|
|
|
wine/crypt_des.c
|
|
|
|
wine/crypt_lmhash.c
|
2014-10-24 14:01:16 +00:00
|
|
|
wine/security.c
|
2014-02-10 12:19:56 +00:00
|
|
|
advapi32.h)
|
|
|
|
|
|
|
|
add_library(advapi32 SHARED
|
|
|
|
${SOURCE}
|
2011-05-16 13:12:07 +00:00
|
|
|
advapi32.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32_stubs.c
|
2011-08-07 00:53:19 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/advapi32.def
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lsa_c.c
|
2015-12-26 01:14:18 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/svcctl_c.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/winreg_c.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-03-22 20:04:28 +00:00
|
|
|
set_module_type(advapi32 win32dll UNICODE ENTRYPOINT DllMain 12)
|
2014-01-25 13:55:08 +00:00
|
|
|
target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB})
|
2014-03-22 20:04:28 +00:00
|
|
|
add_delay_importlibs(advapi32 secur32)
|
|
|
|
add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(advapi32 advapi32.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
|