1f9009893dee2ab2537779e175759447f6059b0c
[reactos.git] / drivers / base / bootvid / CMakeLists.txt
1
2 spec2def(bootvid.dll bootvid.spec)
3
4 list(APPEND SOURCE
5 bootvid.rc
6 ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
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 -lntoskrnl
25 -lhal)
26
27 add_pch(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
28 add_dependencies(bootvid psdk buildno_header bugcodes)
29 add_minicd_target(bootvid reactos bootvid.dll)
30 add_cab_target(bootvid 1)