summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-07-06 17:19:52 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-07-28 11:57:42 +0200
commit000b710c54a60fc1fb852efb12c31b09beac7687 (patch)
tree7239334dc859281680e08627f1e79e6faaf170af /cmake
parent866d63f659edbcf96e08a791a70f4668e9c54ea3 (diff)
CMake: Add per-target support for iOS launch screens
To support per-target iOS launch screens we need a way to specify custom Info.plist entries without using cache variables, which we were forced to use due to the implicit configure_file done for MACOSX_BUNDLE_INFO_PLIST. We now introduce an extra configure_file call done in a finalizer, before we hand off the Info.plist file to MACOSX_BUNDLE_INFO_PLIST. This extra configure_file call allows us to insert / substitute additional Info.plist entries that CMake does not allow setting. If a custom Info.plist file is provided, the finalizer will simply skip the logic for creating a new one. Amends e5b3436255ce095af58608b03b913fc9bcb8e61f Fixes: QTBUG-101064 Change-Id: I65496da146c9430a949a8163817021d54da28386 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 578f4ba00c9fce9af922c9924ca104bc47e50f03)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBaseGlobalTargets.cmake2
-rw-r--r--cmake/ios/Info.plist.app.in (renamed from cmake/ios/MacOSXBundleInfo.plist.in)2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake
index facc800d18..fef43a53e9 100644
--- a/cmake/QtBaseGlobalTargets.cmake
+++ b/cmake/QtBaseGlobalTargets.cmake
@@ -383,7 +383,7 @@ if(MACOS)
)
elseif(IOS)
qt_copy_or_install(FILES
- cmake/ios/MacOSXBundleInfo.plist.in
+ cmake/ios/Info.plist.app.in
cmake/ios/LaunchScreen.storyboard
DESTINATION "${__GlobalConfig_install_dir}/ios"
)
diff --git a/cmake/ios/MacOSXBundleInfo.plist.in b/cmake/ios/Info.plist.app.in
index 0cecf4ba99..f2cbe593b2 100644
--- a/cmake/ios/MacOSXBundleInfo.plist.in
+++ b/cmake/ios/Info.plist.app.in
@@ -42,7 +42,7 @@
<string>This file was generated by Qt's default CMake support.</string>
<key>UILaunchStoryboardName</key>
- <string>${QT_INTERNAL_IOS_LAUNCH_SCREEN_PLIST_ENTRY}</string>
+ <string>@qt_ios_launch_screen_plist_entry@</string>
<key>UISupportedInterfaceOrientations</key>
<array>