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