[ADVAPI32]
[reactos.git] / reactos / dll / win32 / advapi32 / CMakeLists.txt
1
2 spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB)
3 add_definitions(-D_ADVAPI32_)
4
5 remove_definitions(-D_WIN32_WINNT=0x502)
6 add_definitions(-D_WIN32_WINNT=0x600)
7
8 include_directories(
9 ${REACTOS_SOURCE_DIR}/include/reactos/idl
10 ${REACTOS_SOURCE_DIR}/include/reactos/drivers/ksecdd
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 misc/dllmain.c
21 misc/efs.c
22 misc/hwprofiles.c
23 misc/logon.c
24 misc/msi.c
25 misc/shutdown.c
26 misc/sysfunc.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 token/token.c
41 wine/cred.c
42 wine/crypt.c
43 wine/crypt_des.c
44 wine/crypt_lmhash.c
45 wine/security.c
46 advapi32.h)
47
48 add_library(advapi32 SHARED
49 ${SOURCE}
50 advapi32.rc
51 ${CMAKE_CURRENT_BINARY_DIR}/advapi32_stubs.c
52 ${CMAKE_CURRENT_BINARY_DIR}/advapi32.def
53 ${CMAKE_CURRENT_BINARY_DIR}/eventlogrpc_c.c
54 ${CMAKE_CURRENT_BINARY_DIR}/lsa_c.c
55 ${CMAKE_CURRENT_BINARY_DIR}/svcctl_c.c)
56
57 set_module_type(advapi32 win32dll UNICODE ENTRYPOINT DllMain 12)
58 target_link_libraries(advapi32 cryptlib wine ${PSEH_LIB})
59 add_delay_importlibs(advapi32 secur32)
60 add_importlibs(advapi32 rpcrt4 kernel32 ntdll)
61 add_pch(advapi32 advapi32.h SOURCE)
62 add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)