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