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