Files
core_libraries/resources/packages/mapbox/prepare
Timothy Prepscius b308a4c280 flatten 20260225
2026-02-25 13:00:25 -05:00

39 lines
856 B
Plaintext
Executable File

set -ex
export TAR_OPTIONS="--no-same-owner"
export MASON_SYMLINK=true
mkdir -p sdk/include
mkdir mapbox
pushd mapbox
git clone --depth 1 https://github.com/mapbox/earcut.hpp.git
git clone --depth 1 https://github.com/mapbox/vector-tile.git
pushd vector-tile
git submodule init
git submodule update
echo 'echo #1' > lscpu
chmod +x lscpu
here=`pwd`
PATH=$PATH:$HERE make deps
# make test
popd
popd
mkdir -p sdk/includes/mapbox
pushd sdk/includes/mapbox
ln -s ../../../mapbox/earcut.hpp/include earcut
ln -s ../../../mapbox/vector-tile/mason_packages/headers/geometry/*/include geometry
ln -s ../../../mapbox/vector-tile/mason_packages/headers/protozero/*/include protozero
ln -s ../../../mapbox/vector-tile/mason_packages/headers/variant/*/include variant
ln -s ../../../mapbox/vector-tile/include mapbox
popd