summaryrefslogtreecommitdiffstats
path: root/qmake/generators/unix/unixmake2.cpp
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2019-04-16 08:32:33 +0200
committerAndy Shaw <andy.shaw@qt.io>2020-07-22 00:42:36 +0200
commit64491c9b72258fb16bf7d9c0eb1877a1b5c1c320 (patch)
tree5241a8f03083f09502d8f6b3d2fdb3d794825c60 /qmake/generators/unix/unixmake2.cpp
parentd25589e0529732996e405aaff8d6c46b012e1601 (diff)
iOS: Add a variable to customize where the launch image is taken from
For those who are providing their own launch images for their iOS projects then QMAKE_IOS_LAUNCH_SCREEN can be set to point to the location where the launch image to be used over the default. [ChangeLog][Platform Specific Changes][iOS] Added support for specifying a launch image to be used for an iOS project. This can be achieved by using QMAKE_IOS_LAUNCH_SCREEN. Change-Id: Ibb236655b282132ab5eee747986a93abb9802200 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'qmake/generators/unix/unixmake2.cpp')
-rw-r--r--qmake/generators/unix/unixmake2.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp
index 48352c0c47..190f5e355a 100644
--- a/qmake/generators/unix/unixmake2.cpp
+++ b/qmake/generators/unix/unixmake2.cpp
@@ -798,6 +798,13 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
commonSedArgs << "-e \"s,\\$${WATCHOS_DEPLOYMENT_TARGET},"
<< project->first("QMAKE_WATCHOS_DEPLOYMENT_TARGET").toQString() << ",g\" ";
+ QString launchScreen = var("QMAKE_IOS_LAUNCH_SCREEN");
+ if (launchScreen.isEmpty())
+ launchScreen = QLatin1String("LaunchScreen");
+ else
+ launchScreen = QFileInfo(launchScreen).baseName();
+ commonSedArgs << "-e \"s,\\$${IOS_LAUNCH_SCREEN}," << launchScreen << ",g\" ";
+
if (!isFramework) {
ProString app_bundle_name = var("QMAKE_APPLICATION_BUNDLE_NAME");
if (app_bundle_name.isEmpty())