Skip to content

iOS cross-compilation and macOS fixups #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
26 changes: 21 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
language: cpp
osx_image: xcode10.2

os:
- linux
- osx
matrix:
include:
- os: linux
env: CMAKE_OPTIONS=""
- os: osx
env: CMAKE_OPTIONS=""
- os: osx
env: >-
CMAKE_OPTIONS="-DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_ARCHITECTURES=arm64"
CROSS_TOP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
CROSS_SDK=iPhoneOS.sdk
- os: osx
env: >-
CMAKE_OPTIONS="-DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64"
CROSS_TOP=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer
CROSS_SDK=iPhoneSimulator.sdk

install: if [[ $TRAVIS_OS_NAME == osx ]]; then brew upgrade cmake; fi

before_script:
- wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
Expand All @@ -13,5 +29,5 @@ before_script:

script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- cmake --build . --config Release
- cmake -DCMAKE_BUILD_TYPE=Release $CMAKE_OPTIONS ..
- cmake --build . --config Release -- -j4
Loading