summaryrefslogtreecommitdiffstats
path: root/mkspecs
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-07-27 15:27:07 +0200
committerRichard Moe Gustavsen <richard.gustavsen@theqtcompany.com>2015-07-28 11:02:13 +0000
commit8d6ef359c82424fed03f9d6663d91aaf758d2b62 (patch)
treecf1a020182693f22430ca2672e3def3b815ca40b /mkspecs
parent56a4a34eb3a69fe2740f06324e73b547ca4c4f50 (diff)
iOS: ensure we don't overwrite a projects qmake variables
Consider a project that does the following: launch_images.files = $$PWD/LaunchImage.xib QMAKE_BUNDLE_DATA += launch_images In that case we end up overwriting launch_images.files in default_post, and at the same time, add launch_images a second time to QMAKE_BUNDLE_DATA. The result will be that we copy our own launch image twize into the bundle. To prevent this, prepend our internal variables with qmake_ Change-Id: I24f870874017b5388248e3bfadecd461422ffe35 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'mkspecs')
-rw-r--r--mkspecs/macx-ios-clang/features/default_post.prf26
1 files changed, 13 insertions, 13 deletions
diff --git a/mkspecs/macx-ios-clang/features/default_post.prf b/mkspecs/macx-ios-clang/features/default_post.prf
index c9d3a5d85b..172e34bac5 100644
--- a/mkspecs/macx-ios-clang/features/default_post.prf
+++ b/mkspecs/macx-ios-clang/features/default_post.prf
@@ -196,24 +196,24 @@ macx-xcode {
# Set up default 4-inch iPhone/iPod launch image so that our apps
# support the full screen resolution of those devices.
- launch_image = Default-568h@2x.png
- copy_image.input = $$QMAKESPEC/$$launch_image
- copy_image.output = $$OUT_PWD/$${TARGET}.xcodeproj/$$launch_image
- copy_image.CONFIG = verbatim
- QMAKE_SUBSTITUTES += copy_image
- launch_images.files = $$copy_image.output
- QMAKE_BUNDLE_DATA += launch_images
+ qmake_launch_image = Default-568h@2x.png
+ qmake_copy_image.input = $$QMAKESPEC/$$qmake_launch_image
+ qmake_copy_image.output = $$OUT_PWD/$${TARGET}.xcodeproj/$$qmake_launch_image
+ qmake_copy_image.CONFIG = verbatim
+ QMAKE_SUBSTITUTES += qmake_copy_image
+ qmake_launch_images.files = $$qmake_copy_image.output
+ QMAKE_BUNDLE_DATA += qmake_launch_images
lessThan(QMAKE_XCODE_VERSION, "6.0") {
warning("You need to update Xcode to version 6 or newer to fully support iPhone6/6+")
} else {
# Set up default LaunchScreen to support iPhone6/6+
- launch_screen = LaunchScreen.xib
- copy_launch_screen.input = $$QMAKESPEC/$$launch_screen
- copy_launch_screen.output = $$OUT_PWD/$${TARGET}.xcodeproj/$$launch_screen
- QMAKE_SUBSTITUTES += copy_launch_screen
- launch_screens.files = $$copy_launch_screen.output
- QMAKE_BUNDLE_DATA += launch_screens
+ qmake_launch_screen = LaunchScreen.xib
+ qmake_copy_launch_screen.input = $$QMAKESPEC/$$qmake_launch_screen
+ qmake_copy_launch_screen.output = $$OUT_PWD/$${TARGET}.xcodeproj/$$qmake_launch_screen
+ QMAKE_SUBSTITUTES += qmake_copy_launch_screen
+ qmake_launch_screens.files = $$qmake_copy_launch_screen.output
+ QMAKE_BUNDLE_DATA += qmake_launch_screens
}
}