mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 13:01:40 +00:00
7b24d00ef1
It might be useful to have them on LiveCD/HybridCD as well.
24 lines
1 KiB
CMake
24 lines
1 KiB
CMake
|
|
#####################################
|
|
# Generate the FAT bootsector source files
|
|
#
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fat.c ${CMAKE_CURRENT_BINARY_DIR}/fat.h
|
|
COMMAND native-bin2c ${CMAKE_CURRENT_BINARY_DIR}/../bootsect/fat.bin ${CMAKE_CURRENT_BINARY_DIR}/fat.c ${CMAKE_CURRENT_BINARY_DIR}/fat.h BIN fat_data
|
|
DEPENDS native-bin2c fat)
|
|
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/fat32.c ${CMAKE_CURRENT_BINARY_DIR}/fat32.h
|
|
COMMAND native-bin2c ${CMAKE_CURRENT_BINARY_DIR}/../bootsect/fat32.bin ${CMAKE_CURRENT_BINARY_DIR}/fat32.c ${CMAKE_CURRENT_BINARY_DIR}/fat32.h BIN fat32_data
|
|
DEPENDS native-bin2c fat32)
|
|
#####################################
|
|
|
|
add_executable(installfreeldr EXCLUDE_FROM_ALL
|
|
install.c
|
|
volume.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/fat.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/fat32.c)
|
|
|
|
set_module_type(installfreeldr win32cui)
|
|
add_importlibs(installfreeldr msvcrt kernel32)
|
|
add_cd_file(TARGET installfreeldr DESTINATION loader NO_CAB NOT_IN_HYBRIDCD FOR bootcd livecd hybridcd)
|