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
@@ -0,0 +1,24 @@
sudo: required
dist: trusty
language: cpp
os:
- linux
before_install:
- "if [[ `lsb_release -r` =~ '14.04' ]]; then sudo apt-get install -y software-properties-common; fi"
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update -y
- sudo apt-get install -y gcc-4.9 g++-4.9 automake pkg-config libtool
- export CXX="g++-4.9"
- export CC="gcc-4.9"
- sudo apt-get install -y flex bison python-pip libdrm-dev x11proto-gl-dev x11proto-dri2-dev x11proto-dri3-dev x11proto-present-dev libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxcb-sync-dev libxshmfence-dev libudev-dev libexpat1-dev libva-dev gettext libnuma-dev llvm-3.6 mesa-utils
- sudo -H pip install mako
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
@@ -0,0 +1,25 @@
machine:
environment:
CXX: g++-4.9
CC: gcc-4.9
dependencies:
pre:
- "if [[ `lsb_release -r` =~ '14.04' ]]; then sudo apt-get install -y software-properties-common; fi"
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository --yes ppa:xorg-edgers/ppa
- sudo apt-get update -y
- sudo apt-get install -y gcc-4.9 g++-4.9 automake pkg-config libtool
- sudo apt-get install -y python-pip flex bison libdrm-dev x11proto-gl-dev x11proto-dri2-dev x11proto-dri3-dev x11proto-present-dev libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxcb-sync-dev libxshmfence-dev libudev-dev libexpat1-dev libdrm-intel1 libva-dev gettext libnuma-dev llvm-3.6 mesa-utils
- sudo pip install mako
test:
override:
- ldd --version
- ./mason build ${MASON_NAME} ${MASON_VERSION}
deployment:
publish:
branch: /.*/
commands:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+46
View File
@@ -0,0 +1,46 @@
#!/usr/bin/env bash
MASON_NAME=openswr-mesa
MASON_VERSION=11.0-openswr
MASON_LIB_FILE=lib/libGL.so
MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/OpenSWR/openswr-mesa/archive/11.0-openswr.tar.gz \
bf76df16a495d1fdd9f03fd301f325503d087c20
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
}
function mason_compile {
CXXFLAGS=-std=c++14 ./autogen.sh \
--prefix=${MASON_PREFIX} \
${MASON_HOST_ARG} \
--with-gallium-drivers=swr,swrast \
--enable-swr-native \
--enable-glx-tls \
--with-llvm-prefix=/usr/lib/llvm-3.6
make install
}
function mason_strip_ldflags {
shift # -L...
shift # -luv
echo "$@"
}
function mason_ldflags {
mason_strip_ldflags $(`mason_pkgconfig` --static --libs)
}
function mason_clean {
make clean
}
mason_run "$@"