-
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 #722 from mapbox/geometry-2.0.0
Added geometry hpp 2.0.0
- Loading branch information
Showing
2 changed files
with
45 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,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=geometry | ||
MASON_VERSION=2.0.0 | ||
MASON_HEADER_ONLY=true | ||
|
||
. ${MASON_DIR}/mason.sh | ||
|
||
function mason_load_source { | ||
mason_download \ | ||
https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ | ||
95d139d736e160d9b7016723d8c7ad9ae4a00d51 | ||
|
||
mason_extract_tar_gz | ||
|
||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} | ||
} | ||
|
||
function mason_compile { | ||
mkdir -p ${MASON_PREFIX}/include/ | ||
cp -r include/mapbox ${MASON_PREFIX}/include/mapbox | ||
} | ||
|
||
function mason_cflags { | ||
echo "-I${MASON_PREFIX}/include" | ||
} | ||
|
||
function mason_ldflags { | ||
: | ||
} | ||
|
||
|
||
mason_run "$@" |