flatten 20260225
This commit is contained in:
38
resources/packages/mapbox/prepare
Executable file
38
resources/packages/mapbox/prepare
Executable file
@@ -0,0 +1,38 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user