Author: hbelusca
Date: Wed Apr 15 21:29:53 2015
New Revision: 67211
URL:
http://svn.reactos.org/svn/reactos?rev=67211&view=rev
Log:
[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!
Modified:
trunk/reactos/modules/CMakeLists.txt
Modified: trunk/reactos/modules/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/modules/CMakeLists.txt?rev…
==============================================================================
--- trunk/reactos/modules/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/modules/CMakeLists.txt [iso-8859-1] Wed Apr 15 21:29:53 2015
@@ -11,8 +11,20 @@
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})