[CMAKE]
[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_entrypoint(bootvid 0)
22 set_subsystem(bootvid native)
23 set_image_base(bootvid 0x00010000)
24
25 add_importlibs(bootvid ntoskrnl hal)
26 add_pch(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
27 add_dependencies(bootvid psdk bugcodes)
28 add_cd_file(TARGET bootvid DESTINATION reactos/system32 NO_CAB FOR all)
29 add_importlib_target(bootvid.spec)