summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/xcode.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/common/xcode.conf')
-rw-r--r--mkspecs/common/xcode.conf13
1 files changed, 13 insertions, 0 deletions
diff --git a/mkspecs/common/xcode.conf b/mkspecs/common/xcode.conf
new file mode 100644
index 0000000000..800e2e849c
--- /dev/null
+++ b/mkspecs/common/xcode.conf
@@ -0,0 +1,13 @@
+#
+# qmake configuration for Xcode
+#
+
+# Get path of Xcode's Developer directory
+QMAKE_XCODE_DEVELOPER_PATH = $$system(xcode-select --print-path)
+isEmpty(QMAKE_XCODE_DEVELOPER_PATH): \
+ error("Xcode path is not set. Please use xcode-select to choose Xcode installation path.")
+
+# Make sure Xcode path is valid
+!exists($$QMAKE_XCODE_DEVELOPER_PATH): \
+ error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.")
+