1
2
3remove_definitions(-D_WIN32_WINNT=0x502)
4add_definitions(-D_WIN32_WINNT=0x600)
5
6spec2def(portcls.sys portcls.spec ADD_IMPORTLIB)
7
8list(APPEND SOURCE
9    adapter.cpp
10    api.cpp
11    connection.cpp
12    dispatcher.cpp
13    dll.cpp
14    dma_slave.cpp
15    drm.cpp
16    drm_port.cpp
17    filter_topology.cpp
18    filter_dmus.cpp
19    filter_wavecyclic.cpp
20    filter_wavepci.cpp
21    filter_wavert.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
50list(APPEND PCH_SKIP_SOURCE
51    guid.cpp)
52
53add_library(portcls MODULE
54    ${SOURCE}
55    ${PCH_SKIP_SOURCE}
56    portcls.rc
57    ${CMAKE_CURRENT_BINARY_DIR}/portcls.def)
58
59if(USE_CLANG_CL)
60    target_compile_options(portcls PRIVATE "-Wno-missing-braces")
61endif()
62
63target_link_libraries(portcls libcntpr ${PSEH_LIB})
64set_module_type(portcls kernelmodedriver ENTRYPOINT 0 )
65add_pch(portcls private.hpp "${PCH_SKIP_SOURCE}")
66add_importlibs(portcls ntoskrnl ks drmk hal)
67add_cd_file(TARGET portcls DESTINATION reactos/system32/drivers FOR all)
68