From c3991c483aecc7f5b9852528b79fedffe0b9dfad Mon Sep 17 00:00:00 2001 From: Carol Hansen Date: Fri, 27 Oct 2017 15:45:44 +0200 Subject: [PATCH] Vtzero 07fe353 (#503) * Add vtzero 07fe353 --- scripts/vtzero/07fe353/.travis.yml | 12 +++++++++++ scripts/vtzero/07fe353/script.sh | 33 ++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 scripts/vtzero/07fe353/.travis.yml create mode 100755 scripts/vtzero/07fe353/script.sh diff --git a/scripts/vtzero/07fe353/.travis.yml b/scripts/vtzero/07fe353/.travis.yml new file mode 100644 index 000000000..db27cb38e --- /dev/null +++ b/scripts/vtzero/07fe353/.travis.yml @@ -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} diff --git a/scripts/vtzero/07fe353/script.sh b/scripts/vtzero/07fe353/script.sh new file mode 100755 index 000000000..de23a931c --- /dev/null +++ b/scripts/vtzero/07fe353/script.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +MASON_NAME=vtzero +MASON_VERSION=07fe353 +MASON_HEADER_ONLY=true + +. ${MASON_DIR}/mason.sh + +function mason_load_source { + mason_download \ + https://github.com/mapbox/vtzero/tarball/${MASON_VERSION} \ + e2987367cc80a3e202ad0e7e27d3367d2c2a4bab + + 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 "$@"