2010-12-24 12:09:01 +00:00
|
|
|
|
2011-09-04 17:33:34 +00:00
|
|
|
remove_definitions(-DWINVER=0x502 -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502)
|
|
|
|
|
2017-09-17 22:57:43 +00:00
|
|
|
add_definitions(
|
|
|
|
-DUSE_WINE_TODOS
|
2019-02-02 13:11:36 +00:00
|
|
|
-DWINETEST_USE_DBGSTR_LONGLONG
|
|
|
|
-DPROXY_DELEGATION)
|
2017-09-17 22:57:43 +00:00
|
|
|
|
2011-08-30 21:26:11 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
2019-02-02 18:03:40 +00:00
|
|
|
set(OLD_IDL_FLAGS ${IDL_FLAGS})
|
2012-08-01 23:26:54 +00:00
|
|
|
set(IDL_FLAGS ${IDL_FLAGS} --prefix-server=s_)
|
2011-08-07 00:54:26 +00:00
|
|
|
add_rpc_files(client server.idl)
|
|
|
|
add_rpc_files(server server.idl)
|
2019-02-02 18:03:40 +00:00
|
|
|
set(IDL_FLAGS ${OLD_IDL_FLAGS})
|
2019-02-02 13:11:36 +00:00
|
|
|
add_rpcproxy_files(cstub.idl)
|
2010-12-24 12:09:01 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
cstub.c
|
2016-10-20 21:44:12 +00:00
|
|
|
generated.c
|
2010-12-24 12:09:01 +00:00
|
|
|
ndr_marshall.c
|
|
|
|
rpc.c
|
|
|
|
rpc_async.c
|
|
|
|
server.c
|
2011-08-07 00:54:26 +00:00
|
|
|
testlist.c
|
2019-02-02 13:11:36 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/cstub_p.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
|
2011-08-07 00:54:26 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/server_c.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/server_s.c)
|
2010-12-24 12:09:01 +00:00
|
|
|
|
2011-09-03 17:35:54 +00:00
|
|
|
if(MSVC)
|
|
|
|
# The nmake generator misses this dependency, so set it explicitly until this bug is fixed.
|
|
|
|
set_source_files_properties(server.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/server_s.h)
|
|
|
|
endif()
|
|
|
|
|
2010-12-24 12:09:01 +00:00
|
|
|
add_executable(rpcrt4_winetest ${SOURCE})
|
2017-12-03 22:30:10 +00:00
|
|
|
|
|
|
|
if(USE_CLANG_CL OR (NOT MSVC))
|
|
|
|
add_target_compile_flags(rpcrt4_winetest "-Wno-format")
|
|
|
|
if(USE_CLANG_CL)
|
|
|
|
add_target_compile_flags(rpcrt4_winetest "-Wno-cast-calling-convention")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2014-10-17 23:29:24 +00:00
|
|
|
target_link_libraries(rpcrt4_winetest uuid wine ${PSEH_LIB})
|
2010-12-24 12:09:01 +00:00
|
|
|
set_module_type(rpcrt4_winetest win32cui)
|
2017-03-05 20:43:17 +00:00
|
|
|
add_importlibs(rpcrt4_winetest oleaut32 ole32 rpcrt4 secur32 advapi32 msvcrt kernel32 ntdll)
|
2017-01-13 09:24:15 +00:00
|
|
|
add_rostests_file(TARGET rpcrt4_winetest)
|