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 private.hpp) 51 52add_library(portcls SHARED 53 ${SOURCE} 54 guid.cpp 55 portcls.rc 56 ${CMAKE_CURRENT_BINARY_DIR}/portcls.def) 57 58if(USE_CLANG_CL) 59 add_target_compile_flags(portcls "-Wno-missing-braces") 60endif() 61 62target_link_libraries(portcls libcntpr ${PSEH_LIB}) 63set_module_type(portcls kernelmodedriver ENTRYPOINT 0 ) 64add_pch(portcls private.hpp SOURCE) 65add_importlibs(portcls ntoskrnl ks drmk hal) 66add_cd_file(TARGET portcls DESTINATION reactos/system32/drivers FOR all) 67