Files
MapLibreParticleLab/utils/mbgl-config/build.sh
2014-10-29 22:16:44 -04:00

21 lines
309 B
Bash
Executable File

#!/bin/bash
PREFIX=$1
PLATFORM=$2
shift
shift
VARIABLES="#!/bin/bash
## variables
CONFIG_MBGL_PREFIX=$PREFIX
CONFIG_MBGL_PLATFORM=$PLATFORM
CONFIG_MBGL_LDFLAGS=\"$@\"
"
echo "$VARIABLES" | cat - utils/mbgl-config/mbgl-config.template.sh \
> $PREFIX/bin/mbgl-config
chmod 755 $PREFIX/bin/mbgl-config