forked from mavlink/qgroundcontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2248ad
commit c999cb9
Showing
5 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
XCODEVER=`xcodebuild -version 2>&1 | (head -n1) | awk '{print $2}'` | ||
echo "Testing Xcode version: $XCODEVER" | ||
IOSDIR=/tmp/ios | ||
OSXDIR=/tmp/$QT_DIR | ||
if [ X"$TRAVIS_BUILD_DIR" == "X" ]; then | ||
echo "missing TRAVIS_BUILD_DIR" | ||
exit 1 | ||
fi | ||
#IOSDIR=/Applications/Qt/5.5/ios | ||
#OSXDIR=/Applications/Qt/5.5/clang_64 | ||
#TRAVIS_BUILD_DIR=/Users/gus/github/work/qgroundcontrol | ||
if [ "$XCODEVER" == "8.0" ]; then | ||
if [ -d $OSXDIR/bin ]; then | ||
QTVER=`$OSXDIR/bin/qmake -version | grep "Using Qt" | awk '{print $4}'` | ||
echo "Testing Qt Version: $QTVER" | ||
if [ "$QTVER" == "5.5.1" ]; then | ||
echo "Found Xcode $XCODEVER for OSX. Applying patch:" | ||
cd $OSXDIR 2> /dev/null && \ | ||
patch -N -p7 < ${TRAVIS_BUILD_DIR}/tools/qt_macos_xcode8.patch # 2>&1 > /dev/null | ||
fi | ||
fi | ||
if [ -d $IOSDIR/bin ]; then | ||
QTVER=`$IOSDIR/bin/qmake -version | grep "Using Qt" | awk '{print $4}'` | ||
echo "Testing Qt Version: $QTVER" | ||
if [ "$QTVER" == "5.5.1" ]; then | ||
echo "Found Xcode $XCODEVER for iOS. Applying patch:" | ||
cd $IOSDIR 2> /dev/null && \ | ||
patch -N -p7 < ${TRAVIS_BUILD_DIR}/tools/qt_ios_xcode8.patch # 2>&1 > /dev/null | ||
fi | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff -Naur /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/features/mac/default_pre.prf mkspecs/features/mac/default_pre.prf | ||
--- /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/features/mac/default_pre.prf 2015-10-12 18:59:25.000000000 -0400 | ||
+++ mkspecs/features/mac/default_pre.prf 2016-09-18 19:53:59.000000000 -0400 | ||
@@ -12,7 +12,7 @@ | ||
error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.") | ||
|
||
# Make sure Xcode is set up properly | ||
- isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \ | ||
+ isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \ | ||
error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.") | ||
} | ||
|
||
diff -Naur /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/macx-ios-clang/features/sdk.prf mkspecs/macx-ios-clang/features/sdk.prf | ||
--- /Volumes/BootCopy/Applications/Qt/5.5/ios/mkspecs/macx-ios-clang/features/sdk.prf 2015-10-12 18:59:26.000000000 -0400 | ||
+++ mkspecs/macx-ios-clang/features/sdk.prf 2016-09-18 19:53:57.000000000 -0400 | ||
@@ -11,8 +11,9 @@ | ||
|
||
load(sdk) | ||
|
||
-lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \ | ||
- error("Current $$QMAKE_MAC_SDK SDK version ($$QMAKE_MAC_SDK_VERSION) is too old. Please upgrade Xcode.") | ||
+#-- This is a string compare and "10.0" is less then "8.0" | ||
+#lessThan(QMAKE_MAC_SDK_VERSION, "8.0"): \ | ||
+# error("Current $$QMAKE_MAC_SDK SDK version ($$QMAKE_MAC_SDK_VERSION) is too old. Please upgrade Xcode.") | ||
|
||
macx-xcode { | ||
sdk_path_iphoneos.name = "QMAKE_MAC_SDK_PATH[sdk=iphoneos*]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -Naur /Volumes/BootCopy/Applications/Qt/5.5/clang_64/mkspecs/features/mac/default_pre.prf mkspecs/features/mac/default_pre.prf | ||
--- /Volumes/BootCopy/Applications/Qt/5.5/clang_64/mkspecs/features/mac/default_pre.prf 2015-10-12 19:40:39.000000000 -0400 | ||
+++ mkspecs/features/mac/default_pre.prf 2016-09-18 19:54:02.000000000 -0400 | ||
@@ -12,7 +12,7 @@ | ||
error("Xcode is not installed in $${QMAKE_XCODE_DEVELOPER_PATH}. Please use xcode-select to choose Xcode installation path.") | ||
|
||
# Make sure Xcode is set up properly | ||
- isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null"))): \ | ||
+ isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \ | ||
error("Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.") | ||
} | ||
|