From 5574aa986b69277881fe5fc694d97514c668024f Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Thu, 8 Dec 2016 16:43:39 -0800 Subject: [PATCH] qmake: add support for launch images in asset catalogs Task-number: QTBUG-57502 Change-Id: I566522052b7e668b46714138d2cd249505cb999d Reviewed-by: Oswald Buddenhagen Reviewed-by: Jake Petroules --- mkspecs/features/mac/asset_catalogs.prf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/mkspecs/features/mac/asset_catalogs.prf b/mkspecs/features/mac/asset_catalogs.prf index 87875136c28..123a0e0fcd3 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} \