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