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}
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
MASON_NAME=webp
MASON_VERSION=0.4.2
MASON_LIB_FILE=lib/libwebp.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/libwebp.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
http://downloads.webmproject.org/releases/webp/libwebp-0.4.2.tar.gz \
fdc496dcbcb03c9f26c2d9ce771545fa557a40c8
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/libwebp-${MASON_VERSION}
}
function mason_compile {
./configure \
--prefix=${MASON_PREFIX} \
${MASON_HOST_ARG} \
--enable-static \
--disable-shared \
--disable-dependency-tracking
make install -j${MASON_CONCURRENCY}
}
function mason_ldflags {
echo $(`mason_pkgconfig` --static --libs)
}
function mason_clean {
make clean
}
mason_run "$@"
+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}
+71
View File
@@ -0,0 +1,71 @@
#!/usr/bin/env bash
MASON_NAME=webp
MASON_VERSION=0.5.0
MASON_LIB_FILE=lib/libwebp.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/libwebp.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
http://downloads.webmproject.org/releases/webp/libwebp-$MASON_VERSION.tar.gz \
9e5a4130ff09d28f0217eba972dcca5a57525f03
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/libwebp-${MASON_VERSION}
}
function mason_compile {
export CFLAGS="${CFLAGS:-} -Os"
./configure \
--prefix=${MASON_PREFIX} \
${MASON_HOST_ARG} \
--enable-static \
--disable-shared \
--with-pic \
--enable-libwebpdecoder \
--disable-cwebp \
--disable-dwebp \
--enable-swap-16bit-csp \
--disable-gl \
--disable-png \
--disable-jpeg \
--disable-tiff \
--disable-gif \
--disable-wic \
--disable-dependency-tracking
make install -j${MASON_CONCURRENCY}
}
function mason_strip_ldflags {
ldflags=()
while [[ $1 ]]
do
case "$1" in
-lwebp)
shift
;;
-L*)
shift
;;
*)
ldflags+=("$1")
shift
;;
esac
done
echo "${ldflags[@]}"
}
function mason_ldflags {
mason_strip_ldflags $(`mason_pkgconfig` --static --libs)
}
function mason_clean {
make clean
}
mason_run "$@"
+22
View File
@@ -0,0 +1,22 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
osx_image: xcode7
compiler: clang
- os: linux
compiler: clang
sudo: false
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test' ]
packages: [ 'libstdc++-5-dev' ]
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+71
View File
@@ -0,0 +1,71 @@
#!/usr/bin/env bash
MASON_NAME=webp
MASON_VERSION=0.5.1
MASON_LIB_FILE=lib/libwebp.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/libwebp.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
http://downloads.webmproject.org/releases/webp/libwebp-$MASON_VERSION.tar.gz \
7c2350c6524e8419e6b541a9087607c91c957377
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/libwebp-${MASON_VERSION}
}
function mason_compile {
export CFLAGS="${CFLAGS:-} -Os"
./configure \
--prefix=${MASON_PREFIX} \
${MASON_HOST_ARG} \
--enable-static \
--disable-shared \
--with-pic \
--enable-libwebpdecoder \
--disable-cwebp \
--disable-dwebp \
--enable-swap-16bit-csp \
--disable-gl \
--disable-png \
--disable-jpeg \
--disable-tiff \
--disable-gif \
--disable-wic \
--disable-dependency-tracking
make install -j${MASON_CONCURRENCY}
}
function mason_strip_ldflags {
ldflags=()
while [[ $1 ]]
do
case "$1" in
-lwebp)
shift
;;
-L*)
shift
;;
*)
ldflags+=("$1")
shift
;;
esac
done
echo "${ldflags[@]}"
}
function mason_ldflags {
mason_strip_ldflags $(`mason_pkgconfig` --static --libs)
}
function mason_clean {
make clean
}
mason_run "$@"