33b67af6661e82ccfd07c330d0e073ffa5c6f6e7
[reactos.git] / drivers / base / bootvid / CMakeLists.txt
1
2
3
4 spec2def(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/bootvid.spec ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
5
6 list(APPEND SOURCE bootvid.rc)
7
8 if(ARCH MATCHES i386 OR ARCH MATCHES amd64)
9 list(APPEND SOURCE
10 i386/bootvid.c
11 i386/bootdata.c
12 i386/vga.c)
13 elseif(ARCH MATCHES arm)
14 list(APPEND SOURCE
15 arm/bootvid.c
16 arm/bootdata.c)
17 endif(ARCH MATCHES i386 OR ARCH MATCHES amd64)
18
19 add_library(bootvid SHARED ${CMAKE_CURRENT_BINARY_DIR}/bootvid_precomp.h.gch ${SOURCE})
20
21 set_target_properties(bootvid PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
22
23 target_link_libraries(bootvid
24 ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def
25 -lntoskrnl
26 -lhal)
27
28 add_pch(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
29 add_dependencies(bootvid bootvid_def psdk buildno_header bugcodes)
30 add_minicd_target(bootvid reactos bootvid.dll)
31 add_livecd_target(bootvid reactos/system32)