xref: /reactos/dll/win32/advapi32/CMakeLists.txt (revision 02e84521)
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/svcctl.idl
15    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winreg.idl)
16
17list(APPEND SOURCE
18    misc/dllmain.c
19    misc/efs.c
20    misc/evntrace.c
21    misc/hwprofiles.c
22    misc/logon.c
23    misc/msi.c
24    misc/shutdown.c
25    misc/sysfunc.c
26    misc/unicode.c
27    reg/hkcr.c
28    reg/reg.c
29    sec/ac.c
30    sec/audit.c
31    sec/lsa.c
32    sec/misc.c
33    sec/safer.c
34    sec/sec.c
35    sec/trustee.c
36    service/eventlog.c
37    service/rpc.c
38    service/scm.c
39    service/sctrl.c
40    service/winreg.c
41    token/token.c
42    wine/cred.c
43    wine/crypt.c
44    wine/crypt_des.c
45    wine/crypt_lmhash.c
46    wine/security.c
47    advapi32.h)
48
49add_library(advapi32 SHARED
50    ${SOURCE}
51    advapi32.rc
52    ${CMAKE_CURRENT_BINARY_DIR}/advapi32_stubs.c
53    ${CMAKE_CURRENT_BINARY_DIR}/advapi32.def
54    ${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.c
55    ${CMAKE_CURRENT_BINARY_DIR}/lsa_c.c
56    ${CMAKE_CURRENT_BINARY_DIR}/svcctl_c.c
57    ${CMAKE_CURRENT_BINARY_DIR}/winreg_c.c)
58
59set_module_type(advapi32 win32dll UNICODE ENTRYPOINT DllMain 12)
60target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB})
61add_delay_importlibs(advapi32 secur32)
62add_importlibs(advapi32 advapi32_vista rpcrt4 kernel32 ntdll)
63add_pch(advapi32 advapi32.h SOURCE)
64add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
65