mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
30 lines
725 B
Bash
30 lines
725 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
# This script is executed inside the builder image
|
||
|
|
||
|
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
|