2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_subdirectory(packages)
|
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# Common hives
|
2014-05-27 19:42:15 +00:00
|
|
|
|
2011-05-19 21:55:57 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/txtsetup.sif DESTINATION reactos NO_CAB FOR bootcd regtest)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2018-02-24 17:01:58 +00:00
|
|
|
add_custom_target(converted_caroots_inf DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/caroots.inf)
|
|
|
|
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/caroots.inf
|
|
|
|
COMMAND native-utf16le "${CMAKE_CURRENT_SOURCE_DIR}/caroots.inf" "${CMAKE_CURRENT_BINARY_DIR}/caroots.inf"
|
|
|
|
DEPENDS native-utf16le ${CMAKE_CURRENT_SOURCE_DIR}/caroots.inf)
|
2021-08-30 11:07:12 +00:00
|
|
|
add_cd_file(TARGET converted_caroots_inf FILE ${CMAKE_CURRENT_BINARY_DIR}/caroots.inf DESTINATION reactos NO_CAB FOR bootcd regtest)
|
2018-02-24 17:01:58 +00:00
|
|
|
|
2015-03-29 11:38:05 +00:00
|
|
|
add_registry_inf(
|
|
|
|
hivecls.inf
|
|
|
|
hivedef.inf
|
|
|
|
hivesft.inf
|
2015-09-09 18:43:09 +00:00
|
|
|
hivesys.inf
|
|
|
|
hivebcd.inf)
|
2014-05-27 19:42:15 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# Regtest
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcdregtest/regtest.cmd DESTINATION reactos/bin FOR all)
|
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# autorun.inf
|
2016-05-16 11:11:22 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/autorun-bootcd.inf DESTINATION root NO_CAB NOT_IN_HYBRIDCD NAME_ON_CD autorun.inf FOR bootcd)
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/autorun-livecd.inf DESTINATION root NO_CAB NOT_IN_HYBRIDCD NAME_ON_CD autorun.inf FOR livecd)
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/autorun-hybridcd.inf DESTINATION root NO_CAB NOT_IN_HYBRIDCD NAME_ON_CD autorun.inf FOR hybridcd)
|
2012-11-25 19:35:56 +00:00
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# icon.ico
|
2015-01-26 21:19:21 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/icon.ico DESTINATION root NO_CAB NOT_IN_HYBRIDCD FOR all hybridcd)
|
2012-11-25 19:35:56 +00:00
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# readme.txt
|
2015-01-26 21:19:21 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/readme.txt DESTINATION root NO_CAB NOT_IN_HYBRIDCD FOR all hybridcd)
|
2013-03-03 17:16:29 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/readme.txt DESTINATION reactos FOR all)
|
2012-11-25 19:35:56 +00:00
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# Welcome.exe optional custom configuration (only for HybridCD)
|
|
|
|
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/welcome_config/)
|
|
|
|
# Copy the main configuration file
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/welcome_config/welcome.ini DESTINATION bootcd/reactos NO_CAB FOR hybridcd)
|
|
|
|
|
|
|
|
# Convert the translation files (name format: xx-YY.ini) into UTF-16
|
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/welcome_config)
|
|
|
|
file(GLOB I18N_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/welcome_config/ ${CMAKE_CURRENT_SOURCE_DIR}/welcome_config/*-*.ini)
|
|
|
|
foreach(_file ${I18N_FILES})
|
|
|
|
set(_converted_file ${CMAKE_CURRENT_BINARY_DIR}/welcome_config/${_file})
|
|
|
|
set(_source_file ${CMAKE_CURRENT_SOURCE_DIR}/welcome_config/${_file})
|
|
|
|
add_custom_command(OUTPUT "${_converted_file}"
|
|
|
|
COMMAND native-utf16le "${_source_file}" "${_converted_file}"
|
|
|
|
DEPENDS native-utf16le "${_source_file}")
|
|
|
|
add_cd_file(TARGET converted_welcome_i18n_files FILE ${_converted_file} DESTINATION bootcd/reactos/welcome NO_CAB NAME_ON_CD ${_file} FOR hybridcd)
|
|
|
|
list(APPEND _converted_welcome_i18n_files ${_converted_file})
|
|
|
|
endforeach(_file)
|
|
|
|
add_custom_target(converted_welcome_i18n_files DEPENDS ${_converted_welcome_i18n_files})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# freeldr.ini
|
2015-01-26 21:19:21 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd.ini DESTINATION root NO_CAB NOT_IN_HYBRIDCD NAME_ON_CD freeldr.ini FOR bootcd regtest)
|
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd.ini DESTINATION root NOT_IN_HYBRIDCD NAME_ON_CD freeldr.ini FOR livecd)
|
2015-01-18 13:55:23 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd.ini DESTINATION root NAME_ON_CD freeldr.ini FOR hybridcd)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# Unattend
|
2011-05-19 21:55:57 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcdregtest/unattend.inf DESTINATION reactos NO_CAB FOR regtest)
|
2020-10-26 17:11:55 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd/unattend.inf DESTINATION reactos NO_CAB FOR bootcd)
|
2020-05-03 18:18:30 +00:00
|
|
|
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd/unattend.inf DESTINATION reactos NO_CAB FOR livecd)
|
2011-11-27 19:59:14 +00:00
|
|
|
|
2017-02-01 03:12:56 +00:00
|
|
|
# LiveCD shortcuts
|
2011-11-27 19:59:14 +00:00
|
|
|
macro(add_livecd_shortcut name app dest)
|
2015-01-16 22:42:08 +00:00
|
|
|
add_link(NAME ${name} CMD_LINE_ARGS ${app} ICON ${app} PATH livecd_start.cmd GUID "{450D8FBA-AD25-11D0-98A8-0800361B1103}" MINIMIZE)
|
|
|
|
list(APPEND LIVECD_SHORTCUTS "${CMAKE_CURRENT_BINARY_DIR}/${name}.lnk")
|
|
|
|
add_cd_file(FILE "${CMAKE_CURRENT_BINARY_DIR}/${name}.lnk"
|
|
|
|
TARGET livecd_links
|
|
|
|
DESTINATION ${dest}
|
|
|
|
FOR livecd)
|
2011-11-27 19:59:14 +00:00
|
|
|
endmacro(add_livecd_shortcut)
|
|
|
|
|
2016-02-13 23:54:42 +00:00
|
|
|
## NOTE: What would be nice is to create this list using /media/inf/shortcuts.inf
|
|
|
|
## and taking their default english translation!
|
2011-11-27 19:59:14 +00:00
|
|
|
add_cd_file(FILE "${CMAKE_CURRENT_SOURCE_DIR}/livecd_start.cmd" DESTINATION "Profiles/Default User/My Documents" FOR livecd)
|
2016-05-27 01:06:35 +00:00
|
|
|
add_livecd_shortcut("Read Me" readme.txt "Profiles/All Users/Desktop")
|
2011-11-27 19:59:14 +00:00
|
|
|
add_livecd_shortcut("Command Prompt" cmd.exe "Profiles/All Users/Desktop")
|
|
|
|
add_livecd_shortcut("Device Manager" devmgmt.exe "Profiles/All Users/Start Menu/Programs/Administrative Tools")
|
|
|
|
add_livecd_shortcut("Event Viewer" eventvwr.exe "Profiles/All Users/Start Menu/Programs/Administrative Tools")
|
|
|
|
add_livecd_shortcut("Service Manager" servman.exe "Profiles/All Users/Start Menu/Programs/Administrative Tools")
|
|
|
|
add_livecd_shortcut("System Configuration" msconfig.exe "Profiles/All Users/Start Menu/Programs/Administrative Tools")
|
2021-02-01 22:37:37 +00:00
|
|
|
add_livecd_shortcut("Accessibility Utility Manager" utilman.exe "Profiles/All Users/Start Menu/Programs/Accessories/Accessibility")
|
2017-11-11 03:42:48 +00:00
|
|
|
add_livecd_shortcut("Magnify" magnify.exe "Profiles/All Users/Start Menu/Programs/Accessories/Accessibility")
|
|
|
|
add_livecd_shortcut("On-Screen Keyboard" osk.exe "Profiles/All Users/Start Menu/Programs/Accessories/Accessibility")
|
|
|
|
add_livecd_shortcut("Remote Desktop Connection" mstsc.exe "Profiles/All Users/Start Menu/Programs/Accessories/Communications")
|
|
|
|
add_livecd_shortcut("Multimedia Player" mplay32.exe "Profiles/All Users/Start Menu/Programs/Accessories/Entertainment")
|
|
|
|
add_livecd_shortcut("Sound Recorder" sndrec32.exe "Profiles/All Users/Start Menu/Programs/Accessories/Entertainment")
|
|
|
|
add_livecd_shortcut("Volume Control" sndvol32.exe "Profiles/All Users/Start Menu/Programs/Accessories/Entertainment")
|
|
|
|
add_livecd_shortcut("Character Map" charmap.exe "Profiles/All Users/Start Menu/Programs/Accessories/System Tools")
|
|
|
|
add_livecd_shortcut("Clipboard Viewer" clipbrd.exe "Profiles/All Users/Start Menu/Programs/Accessories/System Tools")
|
|
|
|
add_livecd_shortcut("Keyboard Layout Switcher" kbswitch.exe "Profiles/All Users/Start Menu/Programs/Accessories/System Tools")
|
|
|
|
add_livecd_shortcut("ReactX Diagnostic" dxdiag.exe "Profiles/All Users/Start Menu/Programs/Accessories/System Tools")
|
|
|
|
add_livecd_shortcut("Registry Editor" regedit.exe "Profiles/All Users/Start Menu/Programs/Accessories/System Tools")
|
|
|
|
add_livecd_shortcut("Task Manager" taskmgr.exe "Profiles/All Users/Start Menu/Programs/Accessories/System Tools")
|
2011-11-27 19:59:14 +00:00
|
|
|
add_livecd_shortcut("Calculator" calc.exe "Profiles/All Users/Start Menu/Programs/Accessories")
|
|
|
|
add_livecd_shortcut("Command Prompt" cmd.exe "Profiles/All Users/Start Menu/Programs/Accessories")
|
|
|
|
add_livecd_shortcut("Paint" mspaint.exe "Profiles/All Users/Start Menu/Programs/Accessories")
|
|
|
|
add_livecd_shortcut("Notepad" notepad.exe "Profiles/All Users/Start Menu/Programs/Accessories")
|
|
|
|
add_livecd_shortcut("WordPad" wordpad.exe "Profiles/All Users/Start Menu/Programs/Accessories")
|
|
|
|
add_livecd_shortcut("Solitaire" sol.exe "Profiles/All Users/Start Menu/Programs/Games")
|
|
|
|
add_livecd_shortcut("Spider Solitaire" spider.exe "Profiles/All Users/Start Menu/Programs/Games")
|
|
|
|
add_livecd_shortcut("WineMine" winmine.exe "Profiles/All Users/Start Menu/Programs/Games")
|
|
|
|
add_livecd_shortcut("ReactOS Explorer" explorer.exe "Profiles/All Users/Start Menu/Programs")
|
2017-11-01 19:54:53 +00:00
|
|
|
add_livecd_shortcut("Command Prompt" cmd.exe "Profiles/Default User/Application Data/Microsoft/Internet Explorer/Quick Launch")
|
|
|
|
add_livecd_shortcut("ReactOS Explorer" explorer.exe "Profiles/Default User/Application Data/Microsoft/Internet Explorer/Quick Launch")
|
2011-11-27 19:59:14 +00:00
|
|
|
|
|
|
|
add_custom_target(livecd_links DEPENDS ${LIVECD_SHORTCUTS})
|