[CD_EXTRAS]: Add the possibility to have different "extras" files for the different CD targets (in addition to the hybridcd) we have (useful for testers, for ReactOS shows, etc...). By Mark Jansen.

CORE-9527 #resolve #comment Added, thanks!

svn path=/trunk/; revision=67211
This commit is contained in:
Hermès Bélusca-Maïto 2015-04-15 21:29:53 +00:00
parent 60e0daa326
commit 5e36ff31c0

View file

@ -11,8 +11,20 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpapers/)
add_subdirectory(wallpapers)
endif()
## Extra files for Hybrid CD. You need to put them under hybridcd_extras
## Extra files for Boot/Live/Hybrid CD. You need to put them under [boot|live|hybrid]cd_extras
## in the same layout as you want them to be in the CD.
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/)
file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/*)
foreach(item ${EXTRA_FILES})
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/bootcd_extras/${item} DESTINATION extras NAME_ON_CD ${item} FOR bootcd regtest)
endforeach(item)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/)
file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/*)
foreach(item ${EXTRA_FILES})
add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/livecd_extras/${item} DESTINATION extras NAME_ON_CD ${item} FOR livecd)
endforeach(item)
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/)
file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/*)
foreach(item ${EXTRA_FILES})