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 39list(APPEND PCH_SKIP_SOURCE 40 ${CMAKE_CURRENT_BINARY_DIR}/proxy.dlldata.c 41 ${CMAKE_CURRENT_BINARY_DIR}/quartz_strmif_p.c) 42 43add_library(quartz MODULE 44 ${SOURCE} 45 ${PCH_SKIP_SOURCE} 46 ${CMAKE_CURRENT_BINARY_DIR}/quartz.def 47 version.rc) 48 49add_idl_headers(quartz_idlheader fil_data.idl) 50add_typelib(control_tlb.idl) 51 52list(APPEND quartz_rc_deps 53 ${CMAKE_CURRENT_BINARY_DIR}/control_tlb.tlb 54 ${CMAKE_CURRENT_SOURCE_DIR}/control_tlb.rgs 55 ${CMAKE_CURRENT_SOURCE_DIR}/quartz_strmif.rgs) 56 57set_source_files_properties(version.rc PROPERTIES OBJECT_DEPENDS "${quartz_rc_deps}") 58set_module_type(quartz win32dll) 59target_link_libraries(quartz strmbase strmiids uuid dxguid wine ${PSEH_LIB}) 60add_importlibs(quartz dsound msacm32 msvfw32 ole32 oleaut32 rpcrt4 user32 gdi32 advapi32 advapi32_vista shlwapi msvcrt kernel32 ntdll) 61add_dependencies(quartz dxsdk quartz_idlheader stdole2) 62add_pch(quartz precomp.h "${PCH_SKIP_SOURCE}") 63add_cd_file(TARGET quartz DESTINATION reactos/system32 FOR all) 64