2012-11-20 14:25:34 +00:00
|
|
|
#
|
|
|
|
# qmake configuration for Xcode
|
|
|
|
#
|
|
|
|
|
|
|
|
# Get path of Xcode's Developer directory
|
2013-03-02 17:28:57 +00:00
|
|
|
QMAKE_XCODE_DEVELOPER_PATH = $$system("xcode-select --print-path")
|
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-03-02 14:35:45 +00:00
|
|
|
# Extract Xcode version using xcodebuild
|
|
|
|
xcode_version = $$system("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)
|