Updates vendored mason to v0.4 for LLVM 3.9.1
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
language: generic
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- os: osx
|
||||
osx_image: xcode8
|
||||
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}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
MASON_NAME=pixman
|
||||
MASON_VERSION=0.34.0
|
||||
MASON_LIB_FILE=lib/libpixman-1.a
|
||||
|
||||
. ${MASON_DIR}/mason.sh
|
||||
|
||||
function mason_load_source {
|
||||
mason_download \
|
||||
http://cairographics.org/releases/pixman-${MASON_VERSION}.tar.gz \
|
||||
022e9e5856f4c5a8c9bdea3996c6b199683fce78
|
||||
|
||||
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-dependency-tracking \
|
||||
--disable-mmx \
|
||||
--disable-ssse3 \
|
||||
--disable-libpng \
|
||||
--disable-gtk
|
||||
|
||||
# The -i and -k flags are to workaround osx bug in pixman tests: Undefined symbols for architecture x86_64: "_prng_state
|
||||
make -j${MASON_CONCURRENCY} -i -k
|
||||
make install -i -k
|
||||
}
|
||||
|
||||
function mason_cflags {
|
||||
echo -I${MASON_PREFIX}/include
|
||||
}
|
||||
|
||||
function mason_ldflags {
|
||||
echo -L${MASON_PREFIX}/lib -ljpeg
|
||||
}
|
||||
|
||||
function mason_clean {
|
||||
make clean
|
||||
}
|
||||
|
||||
mason_run "$@"
|
||||
Reference in New Issue
Block a user