reactos/dll/win32/rpcrt4/CMakeLists.txt
Timo Kreuzer 0d54e35b94 [CMAKE]
Refactor IDL compilation:
- Move all macros to idl-support.cmake
- Make rpc proxy a static library, instead of fiddeling with SOURCE variable
- Merge client and server rpc libraries into one library
- Reorder global makelist file a little
- Improve configure script
- Improve naming, use add_* when a target is added, generate_* when only a file is generated
- Don't compile wbemcli.idl on MSVC (temp hack)
- Don't compile rossym on MSVC, we don't use it
- Use ml64 as assembler when compiling for amd64
- fix spec2def invocation

svn path=/branches/cmake-bringup/; revision=50478
2011-01-24 18:13:40 +00:00

53 lines
1 KiB
CMake

list(APPEND SOURCE
cproxy.c
cpsf.c
cstub.c
ndr_clientserver.c
ndr_contexthandle.c
ndr_es.c
ndr_fullpointer.c
ndr_marshall.c
ndr_ole.c
ndr_stubless.c
rpc_assoc.c
rpc_async.c
rpc_binding.c
rpc_epmap.c
rpc_message.c
rpcrt4.rc
rpcrt4_main.c
rpc_server.c
rpc_transport.c
unix_func.c
${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(
-D_RPCRT4_
-DCOM_NO_WINDOWS_H
-DMSWMSG)
spec2def(rpcrt4.dll rpcrt4.spec)
add_library(rpcrt4 SHARED ${SOURCE})
set_module_type(rpcrt4 win32dll)
include_directories(
${REACTOS_SOURCE_DIR}/include/reactos/wine
${REACTOS_BINARY_DIR}/include/reactos/wine)
target_link_libraries(rpcrt4
wine
uuid
epmrpc
${PSEH_LIB})
add_importlibs(rpcrt4 msvcrt user32 advapi32 secur32 iphlpapi ws2_32 kernel32 ntdll)
add_dependencies(rpcrt4 winesdk)
add_cab_target(rpcrt4 1)
add_importlib_target(rpcrt4.spec)