summaryrefslogtreecommitdiff
path: root/utils/mbgl-config/build.sh
blob: f5e6c5d482d6826800a400b864f4b21b045f06cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

PREFIX=$1
LDFLAGS=$2

VARIABLES="#!/bin/bash

## variables

CONFIG_MBGL_PREFIX=$PREFIX
CONFIG_MBGL_LDFLAGS=\"`cat $LDFLAGS`\"
"

echo "$VARIABLES" | cat - utils/mbgl-config/mbgl-config.template.sh \
    > $PREFIX/bin/mbgl-config

chmod 755 $PREFIX/bin/mbgl-config