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