blob: a22e91b76fa053cf410519b84ea5dcbf4605c527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
mkdir build
cd build
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
cmake .. -G "Unix Makefiles" $1 -DCMAKE_BUILD_TYPE=${CONFIG} &&
cmake --build .
# We must return now because otherwise the following if... command will reset the error code
return
fi
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
if [ "$IOS" = "true" ]; then
cmake .. -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 -DVULKAN_SDK="$VULKAN_SDK" $1 -G "Xcode" -T buildsystem=1 || return
XCODE_BUILD_SETTINGS="CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO"
else
cmake .. $1 -G "Xcode" -T buildsystem=1 || return
XCODE_BUILD_SETTINGS=""
fi
xcodebuild -configuration ${CONFIG} ${XCODE_BUILD_SETTINGS} | xcpretty && return ${PIPESTATUS[0]}
fi
|