Synchronize up to trunk's revision r57756.
[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 ${CMAKE_CURRENT_BINARY_DIR}/epm_c.c
27 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4_stubs.c
28 ${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
29
30 if(MSVC)
31 list(APPEND SOURCE msvc.S)
32 endif()
33
34 remove_definitions(-D_WIN32_WINNT=0x502)
35 add_definitions(-D_WIN32_WINNT=0x600)
36
37 add_definitions(
38 -D_RPCRT4_
39 -DCOM_NO_WINDOWS_H
40 -DMSWMSG)
41
42 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
43
44 add_library(rpcrt4 SHARED
45 ${SOURCE}
46 rpcrt4.rc)
47
48 set_module_type(rpcrt4 win32dll)
49 target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
50
51 add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32)
52 add_importlibs(rpcrt4 msvcrt advapi32 ws2_32 kernel32 ntdll)
53 add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32 FOR all)
54
55
56 if(NOT MSVC)
57 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
58 #allow_warnings(rpcrt4)
59 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-Wno-error")
60 endif()