Merge commit 'ce1141982b4f7acf581d62a379f8fb49ac63f6b8' into mason07

This commit is contained in:
Daniel J. Hofmann
2017-02-15 11:48:43 +01:00
155 changed files with 3916 additions and 336 deletions
+13
View File
@@ -0,0 +1,13 @@
language: generic
matrix:
include:
- os: osx
osx_image: xcode8.2
compiler: clang
- os: linux
sudo: false
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
MASON_NAME=protobuf
MASON_VERSION=3.2.0
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/v${MASON_VERSION}/protobuf-cpp-${MASON_VERSION}.tar.gz \
29792bf4d86237e41118d692dc11ca03dbe796d8
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
}
function mason_compile {
# note CFLAGS overrides defaults (-O2 -g -DNDEBUG) so we need to add optimization flags back
export CFLAGS="${CFLAGS} -O3 -DNDEBUG"
export CXXFLAGS="${CXXFLAGS} -O3 -DNDEBUG"
./configure \
--prefix=${MASON_PREFIX} \
${MASON_HOST_ARG} \
--enable-static --disable-shared \
--disable-debug --without-zlib \
--disable-dependency-tracking
make V=1 -j${MASON_CONCURRENCY}
make install -j${MASON_CONCURRENCY}
}
function mason_clean {
make clean
}
mason_run "$@"