aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Seither <[email protected]>2015-10-13 14:23:34 +0200
committerDaniel Seither <[email protected]>2015-10-13 14:23:34 +0200
commit2fb36225d40f46f02f0bb0f0e40e665c96b5b5a1 (patch)
tree6a9d5ead2b6546feb69c225478fb3d4880335fd6 /src
parent29b560eba79631436fa475dde1f18ece434befed (diff)
Travis CI: Enable 64 bit builds for iOS
* Update Xcode from 6.4 to 7, which also updates the iOS SDK from 8 to 9 * Remove iOS shared library build, which is not very useful * Add 64 bit iOS static library build * Refactor build script to use xcrun instead of manually specifying a sysroot
Diffstat (limited to 'src')
-rwxr-xr-xsrc/scripts/ci/travis/build.sh22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh
index 8bb8c9380..6834b6ae0 100755
--- a/src/scripts/ci/travis/build.sh
+++ b/src/scripts/ci/travis/build.sh
@@ -23,7 +23,7 @@ if [ "$CXX" = "g++" ]; then
export CXX="/usr/bin/g++-4.8"
fi
-#enable ccache
+# enable ccache
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
ccache --max-size=30M
ccache --show-stats
@@ -31,10 +31,17 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
export CXX="ccache $CXX"
fi
-if [ "$TARGETOS" = "ios" ]; then
+# configure
+if [ "$TARGETOS" = "ios32" ]; then
./configure.py "${CFG_FLAGS[@]}" --cpu=armv7 --cc=clang \
- --cc-abi-flags="-arch armv7 -arch armv7s -stdlib=libc++ --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/" \
+ --cc-abi-flags="-arch armv7 -arch armv7s -stdlib=libc++" \
--prefix=/tmp/botan-installation
+
+elif [ "$TARGETOS" = "ios64" ]; then
+ ./configure.py "${CFG_FLAGS[@]}" --cpu=armv8-a --cc=clang \
+ --cc-abi-flags="-arch arm64 -stdlib=libc++" \
+ --prefix=/tmp/botan-installation
+
else
$CXX --version
./configure.py "${CFG_FLAGS[@]}" --cc="$CC" --cc-bin="$CXX" \
@@ -42,9 +49,14 @@ else
--prefix=/tmp/botan-installation
fi
-make -j 2
+# build
+if [ "${TARGETOS:0:3}" = "ios" ]; then
+ xcrun --sdk iphoneos make -j 2
+else
+ make -j 2
+fi
-if [ "$MODULES" != "min" ] && [ "$TARGETOS" != "ios" ]; then
+if [ "$MODULES" != "min" ] && [ "${TARGETOS:0:3}" != "ios" ]; then
./botan-test
fi