summaryrefslogtreecommitdiffstats
path: root/tests/manual/ios_assets/ios_assets.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/ios_assets/ios_assets.pro')
-rw-r--r--tests/manual/ios_assets/ios_assets.pro24
1 files changed, 14 insertions, 10 deletions
diff --git a/tests/manual/ios_assets/ios_assets.pro b/tests/manual/ios_assets/ios_assets.pro
index a6a610dcd8..a2aa348771 100644
--- a/tests/manual/ios_assets/ios_assets.pro
+++ b/tests/manual/ios_assets/ios_assets.pro
@@ -6,7 +6,12 @@ TARGET = tst_manual_ios_assets
# Custom Info.plist
ios {
- QMAKE_INFO_PLIST = Info.ios.qmake.plist
+ versionAtLeast(QMAKE_XCODE_VERSION, 14.0) {
+ plist_path = Info.ios.qmake.xcode.14.3.plist
+ } else {
+ plist_path = Info.ios.qmake.xcode.13.0.plist
+ }
+ QMAKE_INFO_PLIST = $$plist_path
}
# Custom resources
@@ -23,19 +28,18 @@ ios {
macos {
textFiles.path = Contents/Resources/textFiles
}
+textFiles.files -= CMakeLists.txt
QMAKE_BUNDLE_DATA += textFiles
-# App icons
+# Asset catalog with images and app icons
ios {
- ios_icon.files = $$files($$PWD/appicon/AppIcon*.png)
- QMAKE_BUNDLE_DATA += ios_icon
-}
-
-# Asset catalog with images
-ios {
- # The asset catalog needs to have an empty AppIcon.appiconset, otherwise Xcode refuses
+ # The asset catalog needs to have at least an empty AppIcon.appiconset, otherwise Xcode refuses
# to compile the asset catalog.
- QMAKE_ASSET_CATALOGS += Assets.xcassets
+ versionAtLeast(QMAKE_XCODE_VERSION, 14.0) {
+ QMAKE_ASSET_CATALOGS += AssetsXcode14.3.xcassets
+ } else {
+ QMAKE_ASSET_CATALOGS += AssetsXcode13.0.xcassets
+ }
SOURCES += utils.mm
LIBS += -framework UIKit
}