Updates vendored mason to v0.4 for LLVM 3.9.1
This commit is contained in:
@@ -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}
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
MASON_NAME=protozero
|
||||
MASON_VERSION=1.4.5
|
||||
MASON_HEADER_ONLY=true
|
||||
|
||||
. ${MASON_DIR}/mason.sh
|
||||
|
||||
function mason_load_source {
|
||||
mason_download \
|
||||
https://github.com/mapbox/protozero/archive/v${MASON_VERSION}.tar.gz \
|
||||
17958acf20ba7071a040135821afc17d196a33ba
|
||||
|
||||
mason_extract_tar_gz
|
||||
|
||||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/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 "$@"
|
||||
Reference in New Issue
Block a user