[FREELDR] Abstract VGA BIOS specific code (#1736)
[reactos.git] / drivers / base / bootvid / CMakeLists.txt
1
2 spec2def(bootvid.dll bootvid.spec ADD_IMPORTLIB)
3
4 if((ARCH STREQUAL "i386") OR (ARCH STREQUAL "amd64"))
5 list(APPEND SOURCE
6 i386/bootvid.c
7 i386/bootdata.c
8 i386/vga.c)
9 elseif(ARCH STREQUAL "arm")
10 list(APPEND SOURCE
11 arm/bootvid.c
12 arm/bootdata.c)
13 endif()
14
15 list(APPEND SOURCE precomp.h)
16
17 add_library(bootvid MODULE
18 ${SOURCE}
19 bootvid.rc
20 ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
21
22 set_module_type(bootvid kerneldll ENTRYPOINT 0)
23 add_importlibs(bootvid ntoskrnl hal)
24 add_pch(bootvid precomp.h SOURCE)
25 add_dependencies(bootvid psdk)
26 add_cd_file(TARGET bootvid DESTINATION reactos/system32 NO_CAB FOR all)