Revert "[NTOS:KDBG] Use CONTEXT instead of KTRAP_FRAME"
[reactos.git] / dll / win32 / advapi32 / CMakeLists.txt
1
2 spec2def(advapi32.dll advapi32.spec ADD_IMPORTLIB)
3 add_definitions(-D_ADVAPI32_)
4
5 include_directories(
6 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl
7 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers/ksecdd
8 ${REACTOS_SOURCE_DIR}/sdk/lib/cryptlib
9 ${CMAKE_CURRENT_BINARY_DIR})
10
11 add_rpc_files(client
12 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/eventlogrpc.idl
13 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/lsa.idl
14 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/svcctl.idl
15 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/winreg.idl)
16
17 list(APPEND SOURCE
18 misc/dllmain.c
19 misc/efs.c
20 misc/evntrace.c
21 misc/hwprofiles.c
22 misc/logon.c
23 misc/msi.c
24 misc/shutdown.c
25 misc/sysfunc.c
26 misc/unicode.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 service/winreg.c
41 token/token.c
42 wine/cred.c
43 wine/crypt.c
44 wine/crypt_des.c
45 wine/crypt_lmhash.c
46 wine/security.c
47 advapi32.h)
48
49 add_library(advapi32 MODULE
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 ${CMAKE_CURRENT_BINARY_DIR}/winreg_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 advapi32_vista rpcrt4 kernel32 ntdll)
63 add_pch(advapi32 advapi32.h SOURCE)
64 add_cd_file(TARGET advapi32 DESTINATION reactos/system32 FOR all)