[CMAKE]
[reactos.git] / dll / directx / quartz / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(
6 -D__WINESRC__
7 -DENTRY_PREFIX=QUARTZ_
8 -DREGISTER_PROXY_DLL
9 -DPROXY_DELEGATION
10 -D_DLL
11 -D__USE_CRTIMP)
12
13 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
14
15 spec2def(quartz.dll quartz.spec)
16
17 add_rpcproxy_library(quartzproxy quartz_strmif.idl)
18
19 list(APPEND SOURCE
20 avidec.c
21 acmwrapper.c
22 waveparser.c
23 videorenderer.c
24 transform.c
25 systemclock.c
26 regsvr.c
27 pin.c
28 parser.c
29 nullrenderer.c
30 mpegsplit.c
31 memallocator.c
32 main.c
33 filtermapper.c
34 filtergraph.c
35 filesource.c
36 enumregfilters.c
37 enumpins.c
38 enummoniker.c
39 enumfilters.c
40 dsoundrender.c
41 enummedia.c
42 control.c
43 avisplit.c
44 version.rc
45 ${CMAKE_CURRENT_BINARY_DIR}/quartz.def)
46
47 add_library(quartz SHARED ${SOURCE})
48
49 set_module_type(quartz win32dll)
50
51 target_link_libraries(quartz
52 quartzproxy
53 strmiids
54 uuid
55 wine
56 ${PSEH_LIB})
57
58 add_importlibs(quartz
59 msvcrt
60 advapi32
61 dsound
62 ole32
63 oleaut32
64 shlwapi
65 user32
66 gdi32
67 advapi32
68 msvfw32
69 msacm32
70 rpcrt4
71 kernel32
72 ntdll)
73
74 add_cd_file(TARGET quartz DESTINATION reactos/system32 FOR all)