2011-05-16 13:12:07 +00:00
|
|
|
|
2015-11-17 10:08:00 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2019-01-30 11:31:33 +00:00
|
|
|
add_definitions(
|
|
|
|
-D__WINESRC__
|
|
|
|
-D_RPCRT4_
|
|
|
|
-DCOM_NO_WINDOWS_H
|
|
|
|
-DMSWMSG)
|
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(rpcrt4.dll rpcrt4.spec ADD_IMPORTLIB)
|
2019-01-30 11:31:33 +00:00
|
|
|
|
2011-08-07 00:53:19 +00:00
|
|
|
add_rpc_files(client epm.idl)
|
2019-01-30 11:31:33 +00:00
|
|
|
add_idl_headers(ndr_types_header ndr_types.idl)
|
|
|
|
|
2019-02-02 18:03:40 +00:00
|
|
|
set(OLD_IDL_FLAGS ${IDL_FLAGS})
|
2019-01-30 11:31:33 +00:00
|
|
|
set(IDL_FLAGS ${IDL_FLAGS} -Oicf)
|
|
|
|
add_rpcproxy_files(ndr_types.idl)
|
2019-02-02 18:03:40 +00:00
|
|
|
set(IDL_FLAGS ${OLD_IDL_FLAGS})
|
2011-08-07 00:53:19 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
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_main.c
|
|
|
|
rpc_server.c
|
|
|
|
rpc_transport.c
|
|
|
|
unix_func.c
|
2014-02-10 12:19:56 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/epm_c.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2021-09-09 15:56:32 +00:00
|
|
|
if(MSVC)
|
2013-01-08 20:33:08 +00:00
|
|
|
add_asm_files(rpcrt4_asm msvc.S)
|
|
|
|
endif()
|
|
|
|
|
2020-05-09 21:37:40 +00:00
|
|
|
list(APPEND PCH_SKIP_SOURCE
|
2019-01-30 11:31:33 +00:00
|
|
|
ndr_typelib.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ndr_types_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
|
2020-05-09 21:37:40 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/rpcrt4_stubs.c)
|
|
|
|
|
|
|
|
add_library(rpcrt4 MODULE
|
|
|
|
${SOURCE}
|
2013-01-08 20:33:08 +00:00
|
|
|
${rpcrt4_asm}
|
2020-05-09 21:37:40 +00:00
|
|
|
${PCH_SKIP_SOURCE}
|
2014-02-10 12:19:56 +00:00
|
|
|
rpcrt4.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/rpcrt4.def)
|
2012-03-12 12:39:51 +00:00
|
|
|
|
2021-06-29 08:03:28 +00:00
|
|
|
if(MSVC)
|
|
|
|
# Disable warning C4267: '=': conversion from 'size_t' to 'short', possible loss of data
|
|
|
|
target_compile_options(rpcrt4 PRIVATE /wd4267)
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
set_module_type(rpcrt4 win32dll)
|
2011-09-04 00:52:28 +00:00
|
|
|
target_link_libraries(rpcrt4 wine uuid ${PSEH_LIB})
|
2019-01-30 11:31:33 +00:00
|
|
|
add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32 oleaut32)
|
2016-11-22 13:11:44 +00:00
|
|
|
add_importlibs(rpcrt4 advapi32 advapi32_vista kernel32_vista ws2_32 msvcrt kernel32 ntdll)
|
2019-01-30 11:31:33 +00:00
|
|
|
add_dependencies(rpcrt4 ndr_types_header)
|
2020-05-09 21:37:40 +00:00
|
|
|
add_pch(rpcrt4 precomp.h "${PCH_SKIP_SOURCE}")
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32 FOR all)
|