[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/sid.c
36 sec/trustee.c
37 service/eventlog.c
38 service/rpc.c
39 service/scm.c
40 service/sctrl.c
41 token/privilege.c
42 token/token.c
43 wine/cred.c
44 wine/crypt.c
45 wine/crypt_des.c
46 wine/crypt_lmhash.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 add_pch(advapi32 advapi32.h SOURCE)
63 add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)