Merge commit 'f8dd96543542220181c76afb8c084f4908213fb5' as 'third_party/mason'

This commit is contained in:
Patrick Niklaus
2016-12-15 10:31:15 +00:00
796 changed files with 30230 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
osx_image: xcode6
compiler: clang
- os: osx
osx_image: xcode7
compiler: clang
- os: linux
compiler: clang
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+35
View File
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
MASON_NAME=protobuf
MASON_VERSION=2.6.1
MASON_LIB_FILE=lib/libprotobuf-lite.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/protobuf-lite.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2 \
823368b46eee836243c20f0c358b15280b0f8cf9
mason_extract_tar_bz2
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
}
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 "$@"
+19
View File
@@ -0,0 +1,19 @@
language: generic
matrix:
include:
- os: osx
osx_image: xcode7.3
compiler: clang
- os: linux
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++-5-dev
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
MASON_NAME=protobuf
MASON_VERSION=3.0.0
MASON_LIB_FILE=lib/libprotobuf.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/protobuf.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/google/${MASON_NAME}/releases/download/v${MASON_VERSION}/${MASON_NAME}-cpp-${MASON_VERSION}.tar.gz \
88f03530236797ee1a51748cb9a1fe43cc952b7c
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
}
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 "$@"