1 2include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include) 3add_definitions(-D_VIDEOPORT_) 4spec2def(videoprt.sys videoprt.spec ADD_IMPORTLIB) 5 6# Embed RTC libs 7if (STACK_PROTECTOR) 8 target_sources(libvideoprt PRIVATE $<TARGET_OBJECTS:gcc_ssp_videoprt>) 9endif() 10 11list(APPEND SOURCE 12 agp.c 13 child.c 14 ddc.c 15 dispatch.c 16 dma.c 17 event.c 18 funclist.c 19 int10.c 20 interrupt.c 21 registry.c 22 resource.c 23 services.c 24 spinlock.c 25 stubs.c 26 timer.c 27 videoprt.c) 28 29list(APPEND PCH_SKIP_SOURCE 30 guid.c) 31 32add_library(videoprt MODULE 33 ${SOURCE} 34 ${PCH_SKIP_SOURCE} 35 videoprt.rc 36 ${CMAKE_CURRENT_BINARY_DIR}/videoprt.def) 37 38set_module_type(videoprt kernelmodedriver) 39target_link_libraries(videoprt ${PSEH_LIB}) 40add_importlibs(videoprt ntoskrnl hal) 41add_pch(videoprt videoprt.h "${PCH_SKIP_SOURCE}") 42add_cd_file(TARGET videoprt DESTINATION reactos/system32/drivers FOR all) 43