2018-07-12 15:28:59 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-07-29 15:24:36 +02:00
|
|
|
#
|
2018-07-12 15:28:59 +02:00
|
|
|
# This script is executed inside the builder image
|
|
|
|
|
2018-08-27 15:33:59 +02:00
|
|
|
export LC_ALL=C.UTF-8
|
2020-07-29 15:24:36 +02:00
|
|
|
|
2018-07-12 15:28:59 +02:00
|
|
|
set -e
|
|
|
|
|
|
|
|
source ./ci/matrix.sh
|
|
|
|
|
|
|
|
unset CC; unset CXX
|
|
|
|
unset DISPLAY
|
|
|
|
|
|
|
|
mkdir -p $CACHE_DIR/depends
|
|
|
|
mkdir -p $CACHE_DIR/sdk-sources
|
|
|
|
|
|
|
|
ln -s $CACHE_DIR/depends depends/built
|
|
|
|
ln -s $CACHE_DIR/sdk-sources depends/sdk-sources
|
|
|
|
|
|
|
|
mkdir -p depends/SDKs
|
|
|
|
|
2021-08-26 09:46:53 +02:00
|
|
|
if [ -n "$XCODE_VERSION" ]; then
|
|
|
|
OSX_SDK_BASENAME="Xcode-${XCODE_VERSION}-${XCODE_BUILD_ID}-extracted-SDK-with-libcxx-headers.tar.gz"
|
|
|
|
OSX_SDK_PATH="depends/sdk-sources/${OSX_SDK_BASENAME}"
|
|
|
|
if [ ! -f "$OSX_SDK_PATH" ]; then
|
|
|
|
curl --location --fail "${SDK_URL}/${OSX_SDK_BASENAME}" -o "$OSX_SDK_PATH"
|
2018-07-12 15:28:59 +02:00
|
|
|
fi
|
2021-08-26 09:46:53 +02:00
|
|
|
if [ -f "$OSX_SDK_PATH" ]; then
|
|
|
|
tar -C depends/SDKs -xf "$OSX_SDK_PATH"
|
2018-07-12 15:28:59 +02:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS
|