mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
51 lines
2.3 KiB
CMake
51 lines
2.3 KiB
CMake
|
|
add_subdirectory(packages)
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/txtsetup.sif DESTINATION reactos NO_CAB FOR bootcd regtest)
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hivecls_${ARCH}.inf DESTINATION reactos NO_CAB NAME_ON_CD hivecls.inf FOR bootcd regtest)
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hivedef_${ARCH}.inf DESTINATION reactos NO_CAB NAME_ON_CD hivedef.inf FOR bootcd regtest)
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hivesft_${ARCH}.inf DESTINATION reactos NO_CAB NAME_ON_CD hivesft.inf FOR bootcd regtest)
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hivesys_${ARCH}.inf DESTINATION reactos NO_CAB NAME_ON_CD hivesys.inf FOR bootcd regtest)
|
|
|
|
# livecd hives
|
|
list(APPEND CD_HIVES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/livecd.inf
|
|
${CMAKE_CURRENT_SOURCE_DIR}/hiveinst_${ARCH}.inf)
|
|
|
|
add_custom_command(
|
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/sam
|
|
${CMAKE_CURRENT_BINARY_DIR}/default
|
|
${CMAKE_CURRENT_BINARY_DIR}/security
|
|
${CMAKE_CURRENT_BINARY_DIR}/software
|
|
${CMAKE_CURRENT_BINARY_DIR}/system
|
|
COMMAND native-mkhive ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${ARCH} ${CD_HIVES}
|
|
DEPENDS native-mkhive ${CD_HIVES})
|
|
|
|
add_custom_target(livecd_hives
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/sam
|
|
${CMAKE_CURRENT_BINARY_DIR}/default
|
|
${CMAKE_CURRENT_BINARY_DIR}/security
|
|
${CMAKE_CURRENT_BINARY_DIR}/software
|
|
${CMAKE_CURRENT_BINARY_DIR}/system)
|
|
|
|
add_cd_file(
|
|
FILE ${CMAKE_CURRENT_BINARY_DIR}/sam
|
|
${CMAKE_CURRENT_BINARY_DIR}/default
|
|
${CMAKE_CURRENT_BINARY_DIR}/security
|
|
${CMAKE_CURRENT_BINARY_DIR}/software
|
|
${CMAKE_CURRENT_BINARY_DIR}/system
|
|
TARGET livecd_hives
|
|
DESTINATION reactos/system32/config
|
|
FOR livecd)
|
|
|
|
#regtest
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcdregtest/regtest.cmd DESTINATION reactos/bin FOR all)
|
|
|
|
#freeldr.ini
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd.ini DESTINATION root NO_CAB NAME_ON_CD freeldr.ini FOR bootcd regtest)
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd.ini DESTINATION root NAME_ON_CD freeldr.ini FOR livecd)
|
|
|
|
#unattend
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcdregtest/unattend.inf DESTINATION reactos NO_CAB FOR regtest)
|
|
#uncomment this for unattend bootcd
|
|
#add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd/unattend.inf DESTINATION reactos NO_CAB FOR bootcd) |