[CMAKE]
[reactos.git] / drivers / wdm / audio / backpln / portcls / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 spec2def(portcls.sys portcls.spec)
6
7 add_library(portcls SHARED
8 adapter.cpp
9 api.cpp
10 connection.cpp
11 dispatcher.cpp
12 dll.cpp
13 dma_slave.cpp
14 drm.cpp
15 drm_port.cpp
16 filter_topology.cpp
17 filter_dmus.cpp
18 filter_wavecyclic.cpp
19 filter_wavepci.cpp
20 filter_wavert.cpp
21 guids.cpp
22 interrupt.cpp
23 irp.cpp
24 irpstream.cpp
25 miniport.cpp
26 miniport_dmus.cpp
27 miniport_fmsynth.cpp
28 pin_dmus.cpp
29 pin_wavecyclic.cpp
30 pin_wavepci.cpp
31 pin_wavert.cpp
32 pool.cpp
33 port.cpp
34 port_dmus.cpp
35 port_topology.cpp
36 port_wavecyclic.cpp
37 port_wavepci.cpp
38 port_wavert.cpp
39 port_wavertstream.cpp
40 power.cpp
41 propertyhandler.cpp
42 purecall.cpp
43 registry.cpp
44 resource.cpp
45 service_group.cpp
46 undoc.cpp
47 unregister.cpp
48 version.cpp
49 portcls.rc
50 ${CMAKE_CURRENT_BINARY_DIR}/portcls.def)
51
52 target_link_libraries(portcls
53 libcntpr
54 ${PSEH_LIB})
55
56 if(MSVC)
57 set_target_properties(portcls PROPERTIES COMPILE_FLAGS "/GR-")
58 else()
59 set_target_properties(portcls PROPERTIES COMPILE_FLAGS "-fno-exceptions -fno-rtti")
60 endif(MSVC)
61
62 set_entrypoint(portcls 0)
63 set_image_base(portcls 0x00010000)
64 set_subsystem(portcls native)
65 set_target_properties(portcls PROPERTIES SUFFIX ".sys")
66
67 add_importlibs(portcls ntoskrnl ks drmk hal stdc++ gcc msvcrt)
68
69 add_cab_target(portcls 2)