1 2spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB) 3add_definitions(-D_ADVAPI32_) 4 5remove_definitions(-D_WIN32_WINNT=0x502) 6add_definitions(-D_WIN32_WINNT=0x600) 7 8include_directories( 9 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl 10 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers/ksecdd 11 ${REACTOS_SOURCE_DIR}/sdk/lib/cryptlib 12 ${CMAKE_CURRENT_BINARY_DIR}) 13 14add_rpc_files(client 15 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/eventlogrpc.idl 16 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/lsa.idl 17 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/svcctl.idl 18 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winreg.idl) 19 20list(APPEND SOURCE 21 misc/dllmain.c 22 misc/efs.c 23 misc/evntrace.c 24 misc/hwprofiles.c 25 misc/logon.c 26 misc/msi.c 27 misc/shutdown.c 28 misc/sysfunc.c 29 misc/unicode.c 30 reg/hkcr.c 31 reg/reg.c 32 sec/ac.c 33 sec/audit.c 34 sec/lsa.c 35 sec/misc.c 36 sec/safer.c 37 sec/sec.c 38 sec/trustee.c 39 service/eventlog.c 40 service/rpc.c 41 service/scm.c 42 service/sctrl.c 43 service/winreg.c 44 token/token.c 45 wine/cred.c 46 wine/crypt.c 47 wine/crypt_des.c 48 wine/crypt_lmhash.c 49 wine/security.c 50 advapi32.h) 51 52add_library(advapi32 SHARED 53 ${SOURCE} 54 advapi32.rc 55 ${CMAKE_CURRENT_BINARY_DIR}/advapi32_stubs.c 56 ${CMAKE_CURRENT_BINARY_DIR}/advapi32.def 57 ${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.c 58 ${CMAKE_CURRENT_BINARY_DIR}/lsa_c.c 59 ${CMAKE_CURRENT_BINARY_DIR}/svcctl_c.c 60 ${CMAKE_CURRENT_BINARY_DIR}/winreg_c.c) 61 62set_module_type(advapi32 win32dll UNICODE ENTRYPOINT DllMain 12) 63target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB}) 64add_delay_importlibs(advapi32 secur32) 65add_importlibs(advapi32 advapi32_vista rpcrt4 kernel32 ntdll) 66add_pch(advapi32 advapi32.h SOURCE) 67add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all) 68