mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-03 15:43:09 +00:00
Cmake: more use of SUBSURFACE_TARGET and more complete macdepoyqt args
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7c095419f7
commit
88d5fc0fbc
1 changed files with 4 additions and 5 deletions
|
@ -321,16 +321,15 @@ if(ANDROID)
|
||||||
# Android template directory
|
# Android template directory
|
||||||
include(${QT_ANDROID_CMAKE})
|
include(${QT_ANDROID_CMAKE})
|
||||||
set(ANDROID_PACKAGE_SOURCE_DIR, ${CMAKE_BINARY_DIR}/android-mobile)
|
set(ANDROID_PACKAGE_SOURCE_DIR, ${CMAKE_BINARY_DIR}/android-mobile)
|
||||||
add_qt_android_apk(subsurface-mobile.apk ${SUBSURFACE_TARGET}
|
add_qt_android_apk(${SUBSURFACE_TARGET}.apk ${SUBSURFACE_TARGET}
|
||||||
PACKAGE_SOURCES ${CMAKE_CURRENT_LIST_DIR}/android-mobile
|
PACKAGE_SOURCES ${CMAKE_CURRENT_LIST_DIR}/android-mobile
|
||||||
)
|
)
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
|
set(APP_BUNDLE_DIR "${SUBSURFACE_TARGET}.app")
|
||||||
if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable")
|
if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable")
|
||||||
set(APP_BUNDLE_DIR Subsurface-mobile.app)
|
set(EXTRA_MACDEPLOY_ARGS "-qmldir=${APP_BUNDLE_DIR}/Contents/Frameworks/qml ")
|
||||||
set(MACDEPLOY_ARGS "-qmldir=${APP_BUNDLE_DIR}/Contents/Frameworks/qml")
|
|
||||||
else()
|
|
||||||
set(APP_BUNDLE_DIR Subsurface.app)
|
|
||||||
endif()
|
endif()
|
||||||
|
set(MACDEPLOY_ARGS "${EXTRA_MACDEPLOY_ARGS}-executable=${APP_BUNDLE_DIR}/Contents/MacOS/${SUBSURFACE_TARGET} -always-overwrite")
|
||||||
set(RESOURCEDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Resources)
|
set(RESOURCEDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/Resources)
|
||||||
set(PLUGINDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/PlugIns)
|
set(PLUGINDIR ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/PlugIns)
|
||||||
install(DIRECTORY marbledata/maps DESTINATION ${RESOURCEDIR}/data)
|
install(DIRECTORY marbledata/maps DESTINATION ${RESOURCEDIR}/data)
|
||||||
|
|
Loading…
Reference in a new issue