mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
fd5ef6b1c1
- add macros add_cab and add_cab_target to add files to reactos.dff - add bootcd target - make use of these macros to create bootcd and livecd Bootcd works and install things, but 2nd stage fails booting. We need debug symbols!!! svn path=/branches/cmake-bringup/; revision=49347
38 lines
No EOL
925 B
CMake
38 lines
No EOL
925 B
CMake
|
|
|
|
|
|
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
|
|
-lntoskrnl
|
|
-lhal)
|
|
|
|
add_pch(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.h ${SOURCE})
|
|
add_dependencies(videoprt videoprt_def psdk bugcodes buildno_header)
|
|
add_cab_target(videoprt 2) |