mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00

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
41 lines
672 B
CMake
41 lines
672 B
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-DENTRY_PREFIX=STI_
|
|
-DPROXY_DELEGATION
|
|
-DREGISTER_PROXY_DLL)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(sti.dll sti.spec)
|
|
|
|
list(APPEND SOURCE
|
|
regsvr.c
|
|
sti.c
|
|
sti_main.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/sti.def)
|
|
|
|
add_rpcproxy_library(stiproxy sti_wia.idl)
|
|
|
|
add_library(sti SHARED ${SOURCE})
|
|
|
|
set_entrypoint(sti 0)
|
|
|
|
target_link_libraries(sti
|
|
stiproxy
|
|
wine
|
|
uuid
|
|
${PSEH_LIB})
|
|
|
|
add_importlibs(sti
|
|
ole32
|
|
oleaut32
|
|
rpcrt4
|
|
advapi32
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_cab_target(sti 1)
|