a5a96aacad
Custom build variables (e.g. CXX_STD or CXX) read from mapnik-settings.env have to be provided as command line arguments because SCons does not respect the environment variables.
20 lines
555 B
Bash
Executable file
20 lines
555 B
Bash
Executable file
#! /bin/sh
|
|
|
|
set -eu
|
|
|
|
: ${PYTHON:=python}
|
|
|
|
# mapnik-settings.env is an optional file to store
|
|
# environment variables that should be used before
|
|
# running tests like PROJ_LIB, GDAL_DATA, and ICU_DATA
|
|
# These do not normally need to be set except when
|
|
# building against binary versions of dependencies like
|
|
# done via bootstrap.sh
|
|
if [ -f mapnik-settings.env ]; then
|
|
echo "Inheriting from mapnik-settings.env"
|
|
. ./mapnik-settings.env
|
|
fi
|
|
|
|
VARS=( $(cat mapnik-settings.env) )
|
|
|
|
$PYTHON scons/scons.py --implicit-deps-changed configure ${VARS[*]} "$@"
|