1
2set_cpp()
3
4remove_definitions(-D_WIN32_WINNT=0x502)
5add_definitions(-D_WIN32_WINNT=0x600)
6
7spec2def(portcls.sys portcls.spec ADD_IMPORTLIB)
8
9list(APPEND SOURCE
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    interrupt.cpp
24    irp.cpp
25    irpstream.cpp
26    miniport.cpp
27    miniport_dmus.cpp
28    miniport_fmsynth.cpp
29    pin_dmus.cpp
30    pin_wavecyclic.cpp
31    pin_wavepci.cpp
32    pin_wavert.cpp
33    pool.cpp
34    port.cpp
35    port_dmus.cpp
36    port_topology.cpp
37    port_wavecyclic.cpp
38    port_wavepci.cpp
39    port_wavert.cpp
40    port_wavertstream.cpp
41    power.cpp
42    propertyhandler.cpp
43    purecall.cpp
44    registry.cpp
45    resource.cpp
46    service_group.cpp
47    undoc.cpp
48    unregister.cpp
49    version.cpp)
50
51list(APPEND PCH_SKIP_SOURCE
52    guid.cpp)
53
54add_library(portcls MODULE
55    ${SOURCE}
56    ${PCH_SKIP_SOURCE}
57    portcls.rc
58    ${CMAKE_CURRENT_BINARY_DIR}/portcls.def)
59
60if(USE_CLANG_CL)
61    target_compile_options(portcls PRIVATE "-Wno-missing-braces")
62endif()
63
64target_link_libraries(portcls libcntpr ${PSEH_LIB})
65set_module_type(portcls kernelmodedriver ENTRYPOINT 0 )
66add_pch(portcls private.hpp "${PCH_SKIP_SOURCE}")
67add_importlibs(portcls ntoskrnl ks drmk hal)
68add_cd_file(TARGET portcls DESTINATION reactos/system32/drivers FOR all)
69