mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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
74 lines
1.2 KiB
CMake
74 lines
1.2 KiB
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
add_definitions(
|
|
-D__WINESRC__
|
|
-DENTRY_PREFIX=QUARTZ_
|
|
-DREGISTER_PROXY_DLL
|
|
-DPROXY_DELEGATION
|
|
-D_DLL
|
|
-D__USE_CRTIMP)
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
spec2def(quartz.dll quartz.spec)
|
|
|
|
add_rpcproxy_library(quartzproxy quartz_strmif.idl)
|
|
|
|
list(APPEND SOURCE
|
|
avidec.c
|
|
acmwrapper.c
|
|
waveparser.c
|
|
videorenderer.c
|
|
transform.c
|
|
systemclock.c
|
|
regsvr.c
|
|
pin.c
|
|
parser.c
|
|
nullrenderer.c
|
|
mpegsplit.c
|
|
memallocator.c
|
|
main.c
|
|
filtermapper.c
|
|
filtergraph.c
|
|
filesource.c
|
|
enumregfilters.c
|
|
enumpins.c
|
|
enummoniker.c
|
|
enumfilters.c
|
|
dsoundrender.c
|
|
enummedia.c
|
|
control.c
|
|
avisplit.c
|
|
version.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/quartz.def)
|
|
|
|
add_library(quartz SHARED ${SOURCE})
|
|
|
|
set_module_type(quartz win32dll)
|
|
|
|
target_link_libraries(quartz
|
|
quartzproxy
|
|
strmiids
|
|
uuid
|
|
wine
|
|
${PSEH_LIB})
|
|
|
|
add_importlibs(quartz
|
|
msvcrt
|
|
advapi32
|
|
dsound
|
|
ole32
|
|
oleaut32
|
|
shlwapi
|
|
user32
|
|
gdi32
|
|
advapi32
|
|
msvfw32
|
|
msacm32
|
|
rpcrt4
|
|
kernel32
|
|
ntdll)
|
|
|
|
add_cab_target(quartz 1)
|