2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set_cpp()
|
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2013-04-02 15:25:49 +00:00
|
|
|
spec2def(portcls.sys portcls.spec ADD_IMPORTLIB)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2012-03-10 19:20:27 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
adapter.cpp
|
|
|
|
api.cpp
|
|
|
|
connection.cpp
|
|
|
|
dispatcher.cpp
|
|
|
|
dll.cpp
|
|
|
|
dma_slave.cpp
|
|
|
|
drm.cpp
|
|
|
|
drm_port.cpp
|
|
|
|
filter_topology.cpp
|
|
|
|
filter_dmus.cpp
|
|
|
|
filter_wavecyclic.cpp
|
|
|
|
filter_wavepci.cpp
|
|
|
|
filter_wavert.cpp
|
|
|
|
interrupt.cpp
|
|
|
|
irp.cpp
|
|
|
|
irpstream.cpp
|
|
|
|
miniport.cpp
|
|
|
|
miniport_dmus.cpp
|
|
|
|
miniport_fmsynth.cpp
|
|
|
|
pin_dmus.cpp
|
|
|
|
pin_wavecyclic.cpp
|
|
|
|
pin_wavepci.cpp
|
|
|
|
pin_wavert.cpp
|
|
|
|
pool.cpp
|
|
|
|
port.cpp
|
|
|
|
port_dmus.cpp
|
|
|
|
port_topology.cpp
|
|
|
|
port_wavecyclic.cpp
|
|
|
|
port_wavepci.cpp
|
|
|
|
port_wavert.cpp
|
|
|
|
port_wavertstream.cpp
|
|
|
|
power.cpp
|
|
|
|
propertyhandler.cpp
|
|
|
|
purecall.cpp
|
|
|
|
registry.cpp
|
|
|
|
resource.cpp
|
|
|
|
service_group.cpp
|
|
|
|
undoc.cpp
|
|
|
|
unregister.cpp
|
|
|
|
version.cpp
|
2014-02-09 17:28:01 +00:00
|
|
|
private.hpp)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(portcls MODULE
|
2012-03-10 19:20:27 +00:00
|
|
|
${SOURCE}
|
2014-02-09 17:28:01 +00:00
|
|
|
guid.cpp
|
|
|
|
portcls.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/portcls.def)
|
2012-03-10 19:20:27 +00:00
|
|
|
|
2017-12-07 22:26:59 +00:00
|
|
|
if(USE_CLANG_CL)
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(portcls PRIVATE "-Wno-missing-braces")
|
2017-12-07 22:26:59 +00:00
|
|
|
endif()
|
|
|
|
|
2014-10-17 23:28:29 +00:00
|
|
|
target_link_libraries(portcls libcntpr ${PSEH_LIB})
|
2011-10-11 18:31:35 +00:00
|
|
|
set_module_type(portcls kernelmodedriver ENTRYPOINT 0 )
|
2014-02-09 17:28:01 +00:00
|
|
|
add_pch(portcls private.hpp SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_importlibs(portcls ntoskrnl ks drmk hal)
|
2011-10-11 18:31:35 +00:00
|
|
|
add_cd_file(TARGET portcls DESTINATION reactos/system32/drivers FOR all)
|