1 2spec2def(bootvid.dll bootvid.spec ADD_IMPORTLIB) 3 4if((ARCH STREQUAL "i386") OR (ARCH STREQUAL "amd64")) 5 if(SARCH STREQUAL "pc98") 6 list(APPEND SOURCE 7 i386/pc98/pc98.h 8 i386/pc98/bootvid.c) 9 elseif(SARCH STREQUAL "xbox") 10 list(APPEND SOURCE 11 i386/xbox/nv2a.h 12 i386/xbox/bootvid.c) 13 else() 14 list(APPEND SOURCE 15 i386/pc/pc.h 16 i386/pc/cmdcnst.h 17 i386/pc/bootvid.c 18 i386/pc/bootdata.c 19 i386/pc/vga.h 20 i386/pc/vga.c) 21 endif() 22elseif(ARCH STREQUAL "arm") 23 list(APPEND SOURCE 24 arm/arm.h 25 arm/bootvid.c) 26endif() 27 28list(APPEND SOURCE 29 common.c 30 fontdata.c 31 precomp.h) 32 33add_library(bootvid MODULE 34 ${SOURCE} 35 bootvid.rc 36 ${CMAKE_CURRENT_BINARY_DIR}/bootvid.def) 37 38set_module_type(bootvid kerneldll ENTRYPOINT 0) 39add_importlibs(bootvid ntoskrnl hal) 40add_pch(bootvid precomp.h SOURCE) 41add_dependencies(bootvid psdk) 42add_cd_file(TARGET bootvid DESTINATION reactos/system32 NO_CAB FOR all) 43