xref: /reactos/dll/win32/advapi32/CMakeLists.txt (revision ede7a20a)
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
48list(APPEND PCH_SKIP_SOURCE
49    ${CMAKE_CURRENT_BINARY_DIR}/advapi32_stubs.c
50    ${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.c
51    ${CMAKE_CURRENT_BINARY_DIR}/lsa_c.c
52    ${CMAKE_CURRENT_BINARY_DIR}/svcctl_c.c
53    ${CMAKE_CURRENT_BINARY_DIR}/winreg_c.c)
54
55add_library(advapi32 MODULE
56    ${SOURCE}
57    ${PCH_SKIP_SOURCE}
58    advapi32.rc
59    ${CMAKE_CURRENT_BINARY_DIR}/advapi32.def)
60
61set_module_type(advapi32 win32dll UNICODE ENTRYPOINT DllMain 12)
62target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB})
63add_delay_importlibs(advapi32 secur32)
64add_importlibs(advapi32 advapi32_vista rpcrt4 kernel32 ntdll)
65add_pch(advapi32 advapi32.h "${PCH_SKIP_SOURCE}")
66add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
67