20cbef3e2189b18ea7597b4f6648c8cbf105e782
[reactos.git] / reactos / dll / win32 / advapi32 / CMakeLists.txt
1
2 spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB)
3
4 add_definitions(-D_ADVAPI32_)
5
6 remove_definitions(-D_WIN32_WINNT=0x502)
7 add_definitions(-D_WIN32_WINNT=0x600)
8
9 include_directories(
10 ${REACTOS_SOURCE_DIR}/include/reactos/idl
11 ${REACTOS_SOURCE_DIR}/lib/cryptlib
12 ${CMAKE_CURRENT_BINARY_DIR})
13
14 add_rpc_files(client
15 ${REACTOS_SOURCE_DIR}/include/reactos/idl/eventlogrpc.idl
16 ${REACTOS_SOURCE_DIR}/include/reactos/idl/lsa.idl
17 ${REACTOS_SOURCE_DIR}/include/reactos/idl/svcctl.idl)
18
19 list(APPEND SOURCE
20 crypt/crypt.c
21 crypt/crypt_des.c
22 crypt/crypt_lmhash.c
23 misc/dllmain.c
24 misc/efs.c
25 misc/hwprofiles.c
26 misc/logon.c
27 misc/msi.c
28 misc/shutdown.c
29 misc/sysfunc.c
30 misc/trace.c
31 reg/reg.c
32 sec/ac.c
33 sec/audit.c
34 sec/cred.c
35 sec/lsa.c
36 sec/misc.c
37 sec/safer.c
38 sec/sec.c
39 sec/sid.c
40 sec/trustee.c
41 service/eventlog.c
42 service/rpc.c
43 service/scm.c
44 service/sctrl.c
45 token/privilege.c
46 token/token.c
47 advapi32.h)
48
49 add_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
58 set_module_type(advapi32 win32dll UNICODE ENTRYPOINT DllMain 12)
59 target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB})
60 add_delay_importlibs(advapi32 secur32)
61 add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
62
63 add_pch(advapi32 advapi32.h SOURCE)
64
65 add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)
66