46a2b70e57d7aa0d4ec3e31b4611e6024383837d
[reactos.git] / reactos / dll / win32 / rpcrt4 / CMakeLists.txt
1
2 add_rpc_files(client epm.idl)
3
4 list(APPEND SOURCE
5 cproxy.c
6 cpsf.c
7 cstub.c
8 ndr_clientserver.c
9 ndr_contexthandle.c
10 ndr_es.c
11 ndr_fullpointer.c
12 ndr_marshall.c
13 ndr_ole.c
14 ndr_stubless.c
15 rpc_assoc.c
16 rpc_async.c
17 rpc_binding.c
18 rpc_epmap.c
19 rpc_message.c
20 rpcrt4.rc
21 rpcrt4_main.c
22 rpc_server.c
23 rpc_transport.c
24 unix_func.c
25 ${CMAKE_CURRENT_BINARY_DIR}/epm_c.c
26 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4_stubs.c
27 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
28
29 if(MSVC)
30 list(APPEND SOURCE msvc.S)
31 endif()
32
33 remove_definitions(-D_WIN32_WINNT=0x502)
34 add_definitions(-D_WIN32_WINNT=0x600)
35
36 add_definitions(
37 -D_RPCRT4_
38 -DCOM_NO_WINDOWS_H
39 -DMSWMSG)
40
41 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
42
43 spec2def(rpcrt4.dll rpcrt4.spec)
44
45 add_library(rpcrt4 SHARED ${SOURCE})
46 set_module_type(rpcrt4 win32dll)
47 target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
48
49 add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32)
50 add_importlibs(rpcrt4 msvcrt advapi32 ws2_32 kernel32 ntdll)
51 add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32 FOR all)
52 add_importlib_target(rpcrt4.spec)