summaryrefslogtreecommitdiff
path: root/utils/mbgl-config/build.sh
blob: fe7cbdf60a5fc9a706063bf10dfb6080fc51fb1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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