summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/ios/default_pre.prf
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2012-11-23 13:26:50 +0100
committerTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-02-27 13:07:21 +0100
commit77168c03ffb2d8eeef231766e4322601495778c9 (patch)
treee6ba8cc74b4a745eb440b752630381026769bd80 /mkspecs/features/ios/default_pre.prf
parentc3278e33534fe937fe367dfbf648282ceba68c7f (diff)
iOS: Make Xcode output the default for GUI applications
As long as Qt Creator does not provide any iOS integration, and the app bundle we create using the Makefile generator is not good enough to deploy to a device anyways, producing Xcode projects make the most sense. We base the decicion on whether or not the project depends on QtGui and has app_bundles enabled. This prevents configure tests and other tools from having Xcode projects, but allows examples and demos to build out of the box. Instead of setting the generator unconditionally we unset it in default_pre so that we can detect if the user set it manually. This means the user won't be able to inspect the MAKEFILE_GENERATOR variable from the pro file, but this is less of a use-case then overriding the generator from the command line or prooject file. Change-Id: I881cf3e29631445f83ea4ff0979f7a566e4810f5 Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com>
Diffstat (limited to 'mkspecs/features/ios/default_pre.prf')
-rw-r--r--mkspecs/features/ios/default_pre.prf4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkspecs/features/ios/default_pre.prf b/mkspecs/features/ios/default_pre.prf
new file mode 100644
index 0000000000..e2956bd77d
--- /dev/null
+++ b/mkspecs/features/ios/default_pre.prf
@@ -0,0 +1,4 @@
+# Unset makefile generator, so we can auto-detect value in default_post
+unset(MAKEFILE_GENERATOR)
+
+load(default_pre)