dash/ci/build_depends.sh

32 lines
743 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2020-07-29 15:24:36 +02:00
#
# This script is executed inside the builder image
2020-07-29 15:24:36 +02:00
export LC_ALL=C
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
if [ -n "$OSX_SDK" ]; then
if [ ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then
curl --location --fail $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -o depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz
fi
if [ -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then
tar -C depends/SDKs -xf depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz
fi
fi
make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS