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