2010-09-13 13:48:29 +00:00
|
|
|
|
2010-09-18 15:22:08 +00:00
|
|
|
|
2010-09-13 13:48:29 +00:00
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
|
|
|
|
|
|
|
|
add_definitions(-D_VIDEOPORT_)
|
|
|
|
|
|
|
|
spec2def(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.spec ${CMAKE_CURRENT_BINARY_DIR}/videoprt.def)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
agp.c
|
|
|
|
ddc.c
|
|
|
|
dispatch.c
|
|
|
|
dma.c
|
|
|
|
event.c
|
|
|
|
funclist.c
|
|
|
|
int10.c
|
|
|
|
interrupt.c
|
|
|
|
resource.c
|
|
|
|
services.c
|
|
|
|
spinlock.c
|
|
|
|
stubs.c
|
|
|
|
timer.c
|
|
|
|
videoprt.c
|
|
|
|
videoprt.rc)
|
|
|
|
|
|
|
|
add_library(videoprt SHARED ${CMAKE_CURRENT_BINARY_DIR}/videoprt_videoprt.h.gch ${SOURCE})
|
|
|
|
|
|
|
|
set_target_properties(videoprt PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
|
|
|
|
|
|
|
|
target_link_libraries(videoprt
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/videoprt.def
|
2010-09-17 20:27:01 +00:00
|
|
|
-lntoskrnl
|
|
|
|
-lhal)
|
2010-09-13 13:48:29 +00:00
|
|
|
|
|
|
|
add_pch(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.h ${SOURCE})
|
|
|
|
add_dependencies(videoprt videoprt_def psdk bugcodes buildno_header)
|
2010-10-22 13:46:11 +00:00
|
|
|
add_livecd_target(videoprt reactos/system32/drivers)
|