Merge commit 'f8dd96543542220181c76afb8c084f4908213fb5' as 'third_party/mason'
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
language: cpp
|
||||
|
||||
sudo: false
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: osx
|
||||
compiler: clang
|
||||
- os: linux
|
||||
compiler: clang
|
||||
- os: linux
|
||||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5
|
||||
- os: linux
|
||||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7
|
||||
- os: linux
|
||||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8
|
||||
- os: linux
|
||||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86
|
||||
- os: linux
|
||||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64
|
||||
- os: linux
|
||||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips
|
||||
- os: linux
|
||||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64
|
||||
|
||||
script:
|
||||
- ./mason build ${MASON_NAME} ${MASON_VERSION}
|
||||
|
||||
after_success:
|
||||
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
MASON_NAME=jpeg
|
||||
MASON_VERSION=v9a
|
||||
MASON_LIB_FILE=lib/libjpeg.a
|
||||
|
||||
. ${MASON_DIR}/mason.sh
|
||||
|
||||
function mason_load_source {
|
||||
mason_download \
|
||||
http://www.ijg.org/files/jpegsrc.v9a.tar.gz \
|
||||
fc3b1eefda3d8a193f9f92a16a1b0c9f56304b6d
|
||||
|
||||
mason_extract_tar_gz
|
||||
|
||||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/jpeg-9a
|
||||
}
|
||||
|
||||
|
||||
function mason_compile {
|
||||
export CFLAGS="${CFLAGS:-} -O3"
|
||||
./configure \
|
||||
--prefix=${MASON_PREFIX} \
|
||||
${MASON_HOST_ARG} \
|
||||
--enable-static \
|
||||
--with-pic \
|
||||
--disable-shared \
|
||||
--disable-dependency-tracking
|
||||
|
||||
V=1 make install -j${MASON_CONCURRENCY}
|
||||
rm -rf ${MASON_PREFIX}/bin
|
||||
}
|
||||
|
||||
function mason_cflags {
|
||||
echo -I${MASON_PREFIX}/include
|
||||
}
|
||||
|
||||
function mason_ldflags {
|
||||
: # We're only using the full path to the archive, which is output in static_libs
|
||||
}
|
||||
|
||||
function mason_clean {
|
||||
make clean
|
||||
}
|
||||
|
||||
mason_run "$@"
|
||||
Reference in New Issue
Block a user