Skip to content

Commit

Permalink
Added geometry hpp 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
flippmoke committed Jul 15, 2020
1 parent b1582f5 commit a9ac796
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/geometry/2.0.0/.travis.yml
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}
33 changes: 33 additions & 0 deletions scripts/geometry/2.0.0/script.sh
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 "$@"

0 comments on commit a9ac796

Please sign in to comment.