xref: /reactos/dll/directx/wine/quartz/CMakeLists.txt (revision ebaf247c)
1
2remove_definitions(-D_WIN32_WINNT=0x502)
3add_definitions(-D_WIN32_WINNT=0x600)
4
5add_definitions(
6    -D__WINESRC__
7    -DENTRY_PREFIX=QUARTZ_
8    -DWINE_REGISTER_DLL
9    -DPROXY_DELEGATION)
10
11include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
12spec2def(quartz.dll quartz.spec)
13add_rpcproxy_files(quartz_strmif.idl)
14
15list(APPEND SOURCE
16    acmwrapper.c
17    avidec.c
18    avisplit.c
19    dsoundrender.c
20    enumfilters.c
21    enummedia.c
22    enummoniker.c
23    enumregfilters.c
24    filesource.c
25    filtergraph.c
26    filtermapper.c
27    main.c
28    memallocator.c
29    mpegsplit.c
30    nullrenderer.c
31    parser.c
32    pin.c
33    regsvr.c
34    systemclock.c
35    videorenderer.c
36    vmr9.c
37    waveparser.c
38    precomp.h)
39
40add_library(quartz MODULE
41    ${SOURCE}
42    ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c
43    ${CMAKE_CURRENT_BINARY_DIR}/quartz_strmif_p.c
44    ${CMAKE_CURRENT_BINARY_DIR}/quartz.def
45    version.rc)
46
47add_idl_headers(quartz_idlheader fil_data.idl)
48add_typelib(control_tlb.idl)
49
50list(APPEND quartz_rc_deps
51    ${CMAKE_CURRENT_BINARY_DIR}/control_tlb.tlb
52    ${CMAKE_CURRENT_SOURCE_DIR}/control_tlb.rgs
53    ${CMAKE_CURRENT_SOURCE_DIR}/quartz_strmif.rgs)
54
55set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${quartz_rc_deps}")
56set_module_type(quartz win32dll)
57target_link_libraries(quartz strmbase strmiids uuid dxguid wine ${PSEH_LIB})
58add_importlibs(quartz dsound msacm32 msvfw32 ole32 oleaut32 rpcrt4 user32 gdi32 advapi32 advapi32_vista shlwapi msvcrt kernel32 ntdll)
59add_dependencies(quartz dxsdk quartz_idlheader stdole2)
60add_pch(quartz precomp.h SOURCE)
61add_cd_file(TARGET quartz DESTINATION reactos/system32 FOR all)
62