2012-11-20 14:25:34 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for Xcode
|
|
|
|
#
|
|
|
|
|
|
|
|
# Get path of Xcode's Developer directory
|
2013-04-08 14:41:27 +00:00
|
|
|
QMAKE_XCODE_DEVELOPER_PATH = $$system("/usr/bin/xcode-select --print-path 2>/dev/null")
|
2012-11-20 14:25:34 +00:00
|
|
|
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.")
|
|
|
|
|
2013-04-08 14:41:27 +00:00
|
|
|
# Make sure Xcode is set up properly
|
|
|
|
isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \
|
|
|
|
error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.")
|
|
|
|
|
2013-03-02 14:35:45 +00:00
|
|
|
# Extract Xcode version using xcodebuild
|
2013-04-08 14:34:33 +00:00
|
|
|
xcode_version = $$system("/usr/bin/xcodebuild -version")
|
2013-03-05 17:45:27 +00:00
|
|
|
QMAKE_XCODE_VERSION = $$member(xcode_version, 1)
|
2013-03-02 14:35:45 +00:00
|
|
|
unset(xcode_version)
|