Skip to content

Commit 1aadfc7

Browse files
author
DiligentGraphics
authored
Enabled ios build in travis
1 parent 0416276 commit 1aadfc7

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.travis.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,24 @@ matrix:
5050
env: CONFIG=Release
5151
- os: osx
5252
compiler: clang
53-
env: CONFIG=Release
53+
env:
54+
- CONFIG=Release
55+
- IOS=false
5456
- os: osx
5557
compiler: clang
56-
env: CONFIG=Debug
58+
env:
59+
- CONFIG=Debug
60+
- IOS=false
61+
- os: osx
62+
compiler: clang
63+
env:
64+
- CONFIG=Release
65+
- IOS=true
66+
- os: osx
67+
compiler: clang
68+
env:
69+
- CONFIG=Debug
70+
- IOS=true
5771

5872
script:
5973

@@ -67,6 +81,10 @@ script:
6781
fi
6882
- |
6983
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
70-
cmake .. -G "Xcode"
84+
if [ "$IOS" = "true" ]
85+
cmake .. -DCMAKE_TOOLCHAIN_FILE=../DiligentCore/ios.toolchain.cmake -DIOSPLATFORM=OS -G "Xcode"
86+
else
87+
cmake .. -G "Xcode"
88+
fi
7189
cmake --build . --config ${CONFIG}
7290
fi

0 commit comments

Comments
 (0)