WIP for ticket 1047 Automate creation of Base app for MacOS
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7179 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: f992b78bd5e4aae50457fbd9575e917eda8bcf31 Former-commit-id: d215b7d6f3325cd4fa0c1e463c4489978f22b3bf
This commit is contained in:
parent
df4c12be6d
commit
9790c04868
2 changed files with 40 additions and 0 deletions
|
@ -199,6 +199,10 @@ IF(APPLE)
|
||||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/packaging/OSX/findersettings.scpt.in"
|
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/packaging/OSX/findersettings.scpt.in"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/${DMG_FINDER_SCRIPT}" @ONLY)
|
"${CMAKE_CURRENT_BINARY_DIR}/${DMG_FINDER_SCRIPT}" @ONLY)
|
||||||
|
|
||||||
|
# Create a script to create the base bundle from the full bundle
|
||||||
|
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/packaging/OSX/createbaseapp.cmake.in"
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/createbaseapp.cmake" @ONLY)
|
||||||
|
|
||||||
ENDIF(APPLE)
|
ENDIF(APPLE)
|
||||||
|
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
|
|
36
packaging/OSX/createbaseapp.cmake.in
Normal file
36
packaging/OSX/createbaseapp.cmake.in
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
#==============================================================================
|
||||||
|
#
|
||||||
|
# Generated Script file for creating the the base app bundle
|
||||||
|
# Apple only
|
||||||
|
#
|
||||||
|
#==============================================================================
|
||||||
|
|
||||||
|
# Create the base.app
|
||||||
|
|
||||||
|
message(STATUS "Creating @SD_BASE_BUNDLE_NAME@ bundle...")
|
||||||
|
|
||||||
|
file(COPY "@CMAKE_INSTALL_PREFIX@/"
|
||||||
|
DESTINATION "@SD_BASE_BUNDLE_NAME@"
|
||||||
|
PATTERN "@SD_DATADIR@/tracks/*" EXCLUDE
|
||||||
|
PATTERN "@SD_DATADIR@/cars/models/*" EXCLUDE)
|
||||||
|
|
||||||
|
|
||||||
|
file(GLOB SC_CARS
|
||||||
|
LIST_DIRECTORIES TRUE
|
||||||
|
"@CMAKE_INSTALL_PREFIX@/@SD_DATADIR@/cars/models/sc-*")
|
||||||
|
|
||||||
|
foreach(_CAR ${SC_CARS})
|
||||||
|
#message(STATUS "_CAR = ${_CAR}")
|
||||||
|
file(COPY "${_CAR}"
|
||||||
|
DESTINATION "@SD_BASE_BUNDLE_NAME@/@SD_DATADIR@/cars/models")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
file(GLOB SC_TRACKS
|
||||||
|
LIST_DIRECTORIES TRUE
|
||||||
|
"@CMAKE_INSTALL_PREFIX@/@SD_DATADIR@/tracks/circuit/espie")
|
||||||
|
|
||||||
|
foreach(_TRACK ${SC_TRACKS})
|
||||||
|
#message(STATUS "_TRACK = ${_TRACK}")
|
||||||
|
file(COPY "${_TRACK}"
|
||||||
|
DESTINATION "@SD_BASE_BUNDLE_NAME@/@SD_DATADIR@/tracks/circuit")
|
||||||
|
endforeach()
|
Loading…
Reference in a new issue