-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #473 from mapbox/vtzero-fa6682b
Latest libosmium, osmium-tool, protozero, vtzero
- Loading branch information
Showing
8 changed files
with
232 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: generic | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
compiler: clang | ||
sudo: false | ||
|
||
script: | ||
- ./mason build ${MASON_NAME} ${MASON_VERSION} | ||
- ./mason publish ${MASON_NAME} ${MASON_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
MASON_NAME=libosmium | ||
MASON_VERSION=2.13.1 | ||
MASON_HEADER_ONLY=true | ||
|
||
. ${MASON_DIR}/mason.sh | ||
|
||
function mason_load_source { | ||
mason_download \ | ||
https://github.com/osmcode/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ | ||
2679dacd3f9b8b70fe81f0fc30bd0559875ad424 | ||
|
||
mason_extract_tar_gz | ||
|
||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} | ||
} | ||
|
||
function mason_compile { | ||
mkdir -p ${MASON_PREFIX}/include/ | ||
cp -r include/osmium ${MASON_PREFIX}/include/osmium | ||
} | ||
|
||
function mason_cflags { | ||
echo "-I${MASON_PREFIX}/include" | ||
} | ||
|
||
function mason_ldflags { | ||
: | ||
} | ||
|
||
mason_run "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
language: generic | ||
|
||
matrix: | ||
include: | ||
- os: osx | ||
osx_image: xcode8 | ||
compiler: clang | ||
- os: linux | ||
sudo: false | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- libstdc++-5-dev | ||
- pandoc | ||
|
||
script: | ||
- if [[ $(uname -s) == 'Darwin' ]]; then brew install pandoc || true; fi; | ||
- ./mason build ${MASON_NAME} ${MASON_VERSION} | ||
- ./mason publish ${MASON_NAME} ${MASON_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#!/usr/bin/env bash | ||
|
||
MASON_NAME=osmium-tool | ||
MASON_VERSION=1.7.1 | ||
MASON_LIB_FILE=bin/osmium | ||
|
||
. ${MASON_DIR}/mason.sh | ||
|
||
function mason_load_source { | ||
mason_download \ | ||
https://github.com/osmcode/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ | ||
029e54fc2e232d596cd5b12cc452b5045be08d18 | ||
|
||
mason_extract_tar_gz | ||
|
||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} | ||
} | ||
|
||
function mason_prepare_compile { | ||
CCACHE_VERSION=3.3.1 | ||
${MASON_DIR}/mason install ccache ${CCACHE_VERSION} | ||
MASON_CCACHE=$(${MASON_DIR}/mason prefix ccache ${CCACHE_VERSION}) | ||
${MASON_DIR}/mason install cmake 3.7.1 | ||
${MASON_DIR}/mason link cmake 3.7.1 | ||
${MASON_DIR}/mason install utfcpp 2.3.4 | ||
${MASON_DIR}/mason link utfcpp 2.3.4 | ||
${MASON_DIR}/mason install protozero 1.5.2 | ||
${MASON_DIR}/mason link protozero 1.5.2 | ||
${MASON_DIR}/mason install rapidjson 2016-07-20-369de87 | ||
${MASON_DIR}/mason link rapidjson 2016-07-20-369de87 | ||
${MASON_DIR}/mason install libosmium 2.13.1 | ||
${MASON_DIR}/mason link libosmium 2.13.1 | ||
BOOST_VERSION=1.65.1 | ||
${MASON_DIR}/mason install boost ${BOOST_VERSION} | ||
${MASON_DIR}/mason link boost ${BOOST_VERSION} | ||
${MASON_DIR}/mason install boost_libprogram_options ${BOOST_VERSION} | ||
${MASON_DIR}/mason link boost_libprogram_options ${BOOST_VERSION} | ||
${MASON_DIR}/mason install zlib 1.2.8 | ||
${MASON_DIR}/mason link zlib 1.2.8 | ||
${MASON_DIR}/mason install expat 2.2.0 | ||
${MASON_DIR}/mason link expat 2.2.0 | ||
${MASON_DIR}/mason install bzip2 1.0.6 | ||
${MASON_DIR}/mason link bzip2 1.0.6 | ||
} | ||
|
||
function mason_compile { | ||
rm -rf build | ||
mkdir -p build | ||
cd build | ||
CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ | ||
${MASON_ROOT}/.link/bin/cmake \ | ||
-DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER="${MASON_CCACHE}/bin/ccache" \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBoost_NO_SYSTEM_PATHS=ON \ | ||
-DBoost_USE_STATIC_LIBS=ON \ | ||
.. | ||
# limit concurrency on travis to avoid heavy jobs being killed | ||
if [[ ${TRAVIS_OS_NAME:-} ]]; then | ||
make VERBOSE=1 -j4 | ||
else | ||
make VERBOSE=1 -j${MASON_CONCURRENCY} | ||
fi | ||
make install | ||
|
||
} | ||
|
||
function mason_cflags { | ||
: | ||
} | ||
|
||
function mason_ldflags { | ||
: | ||
} | ||
|
||
function mason_static_libs { | ||
: | ||
} | ||
|
||
mason_run "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
language: generic | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
compiler: clang | ||
sudo: false | ||
|
||
script: | ||
- ./mason build ${MASON_NAME} ${MASON_VERSION} | ||
- ./mason publish ${MASON_NAME} ${MASON_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
MASON_NAME=protozero | ||
MASON_VERSION=a0e9109 | ||
MASON_HEADER_ONLY=true | ||
|
||
. ${MASON_DIR}/mason.sh | ||
|
||
function mason_load_source { | ||
mason_download \ | ||
https://github.com/mapbox/protozero/tarball/${MASON_VERSION} \ | ||
7bf99f7572f236196aa79ae509e00c49d516b1b4 | ||
|
||
mason_extract_tar_gz | ||
|
||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-protozero-${MASON_VERSION} | ||
} | ||
|
||
function mason_compile { | ||
mkdir -p ${MASON_PREFIX}/include/ | ||
cp -r include/protozero ${MASON_PREFIX}/include/protozero | ||
} | ||
|
||
function mason_cflags { | ||
echo "-I${MASON_PREFIX}/include" | ||
} | ||
|
||
function mason_ldflags { | ||
: | ||
} | ||
|
||
mason_run "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
language: generic | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
sudo: false | ||
|
||
script: | ||
- ./mason build ${MASON_NAME} ${MASON_VERSION} | ||
|
||
after_success: | ||
- ./mason publish ${MASON_NAME} ${MASON_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
MASON_NAME=vtzero | ||
MASON_VERSION=fa6682b | ||
MASON_HEADER_ONLY=true | ||
|
||
. ${MASON_DIR}/mason.sh | ||
|
||
function mason_load_source { | ||
mason_download \ | ||
https://github.com/mapbox/vtzero/tarball/${MASON_VERSION} \ | ||
61fc0225374d2ce43e3dde7bd772b74de965275e | ||
|
||
mason_extract_tar_gz | ||
|
||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-vtzero-${MASON_VERSION} | ||
} | ||
|
||
function mason_compile { | ||
mkdir -p ${MASON_PREFIX}/include/ | ||
cp -r include/vtzero ${MASON_PREFIX}/include/vtzero | ||
} | ||
|
||
function mason_cflags { | ||
echo "-I${MASON_PREFIX}/include" | ||
} | ||
|
||
function mason_ldflags { | ||
: | ||
} | ||
|
||
|
||
mason_run "$@" |