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