Squashed 'third_party/mason/' content from commit 1b3085e

git-subtree-dir: third_party/mason
git-subtree-split: 1b3085e812b08ef092ba43945e3ab9f802632280
This commit is contained in:
Dane Springmeyer
2016-10-28 12:21:21 -07:00
commit a34a885031
707 changed files with 29942 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
compiler: clang
- os: linux
compiler: clang
env:
global:
- secure: "clCFM3prHnDocZ8lXlimPxAogvFirD1Zx8cMcFJ/XpkTA/0pCgnhpArM4y/NzLHR57pNZTSCr3p6XZI1c1iTG4Zm8x0sK2A4aTFRahypXNy/e+LzAbtd1y1+dEEDwlJvNNGxizQX4frhOgSNQFDFnWLtmF3stlft5YWyc2kI+FI="
- secure: "jKJErCng8Sk8YJ0IN2FX3lhv7G1LeudMfFBAXViZaXn8w/gWPs+SlfXQmIJ5SruU7U2GQKnAhzbjwXjVAgAh8OAblzny0DDm5Lh5WmwkgAP8JH1LpsBwCYx2S/v8qyR4DX1RVhHS8mQu298180ZDVgGccw+hd8xrE/S5TEQcNfQ="
before_install:
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+42
View File
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
MASON_NAME=protobuf_c
MASON_VERSION=1.1.0
MASON_LIB_FILE=lib/libprotobuf-c.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/protobuf-c.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/protobuf-c/protobuf-c/releases/download/v1.1.0/protobuf-c-1.1.0.tar.gz \
c7e30c4410e50a14f9eeffbc26dbc62ab4d3ebc5
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/protobuf-c-${MASON_VERSION}
}
function mason_prepare_compile {
cd $(dirname ${MASON_ROOT})
${MASON_DIR}/mason install protobuf 2.6.1
MASON_PROTOBUF=$(${MASON_DIR}/mason prefix protobuf 2.6.1)
export PKG_CONFIG_PATH=${MASON_PROTOBUF}/lib/pkgconfig:${PKG_CONFIG_PATH}
}
function mason_compile {
./configure \
--prefix=${MASON_PREFIX} \
${MASON_HOST_ARG} \
--enable-static --disable-shared \
--disable-debug --without-zlib \
--disable-dependency-tracking
make install -j${MASON_CONCURRENCY}
}
function mason_clean {
make clean
}
mason_run "$@"