diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-12-08 16:43:39 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-12-22 22:27:46 +0000 |
commit | 5574aa986b69277881fe5fc694d97514c668024f (patch) | |
tree | 2960e8768076356edea4004a6ee14792837049d7 /mkspecs | |
parent | 5319da1f6d3707ca1d1dca6a026d9a34f6e47b61 (diff) |
qmake: add support for launch images in asset catalogs
Task-number: QTBUG-57502
Change-Id: I566522052b7e668b46714138d2cd249505cb999d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'mkspecs')
-rw-r--r-- | mkspecs/features/mac/asset_catalogs.prf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mkspecs/features/mac/asset_catalogs.prf b/mkspecs/features/mac/asset_catalogs.prf index 87875136c2..123a0e0fcd 100644 --- a/mkspecs/features/mac/asset_catalogs.prf +++ b/mkspecs/features/mac/asset_catalogs.prf @@ -10,6 +10,9 @@ # Name of the icon resource in the asset catalogs that will be used as the app icon. # Defaults to AppIcon. # +# QMAKE_ASSET_CATALOGS_LAUNCH_IMAGE +# Name of the launch image resource in the asset catalogs that will be used as the launch image. +# # QMAKE_ASSET_CATALOGS_INSTALL_PATH # Base path to install files to. Falls back to a path relative to the target install path, # based on QMAKE_ASSET_CATALOGS_BUILD_PATH. @@ -40,6 +43,12 @@ QMAKE_MAC_XCODE_SETTINGS += asset_catalog_appicon } + !isEmpty(QMAKE_ASSET_CATALOGS_LAUNCH_IMAGE) { + asset_catalog_launchimage.name = "ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME" + asset_catalog_launchimage.value = $$QMAKE_ASSET_CATALOGS_LAUNCH_IMAGE + QMAKE_MAC_XCODE_SETTINGS += asset_catalog_launchimage + } + asset_catalog_compiler.files = $$QMAKE_ASSET_CATALOGS macos: asset_catalog_compiler.path = Contents/Resources QMAKE_BUNDLE_DATA += asset_catalog_compiler @@ -49,9 +58,15 @@ --app-icon $$shell_quote($$QMAKE_ASSET_CATALOGS_APP_ICON) } + !isEmpty(QMAKE_ASSET_CATALOGS_LAUNCH_IMAGE) { + asset_catalog_launch_image_arg = \ + --launch-image $$shell_quote($$QMAKE_ASSET_CATALOGS_LAUNCH_IMAGE) + } + asset_catalog_compiler.target = $$OUT_PWD/asset_catalog_compiler.Info.plist asset_catalog_compiler.commands = $$shell_quote($$QMAKE_ACTOOL) \ $$asset_catalog_app_icon_arg \ + $$asset_catalog_launch_image_arg \ --output-partial-info-plist $$shell_quote($$asset_catalog_compiler.target) \ --platform $${version_identifier} \ --minimum-deployment-target $${deployment_target} \ |