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
+23
View File
@@ -0,0 +1,23 @@
language: generic
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.7
packages:
- clang-3.7
matrix:
include:
- os: linux
compiler: clang
env: CXX=clang++-3.7 CC=clang-3.7
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+45
View File
@@ -0,0 +1,45 @@
#!/usr/bin/env bash
MASON_NAME=binutils
MASON_VERSION=2.26
MASON_LIB_FILE=bin/ld
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
http://ftp.gnu.org/gnu/binutils/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \
05b22d6ef8003e76f7d05500363a3ee8cc66a7ae
mason_extract_tar_bz2
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
make -j${MASON_CONCURRENCY}
make install
}
function mason_strip_ldflags {
shift # -L...
shift # -lpng16
echo "$@"
}
function mason_ldflags {
mason_strip_ldflags $(`mason_pkgconfig` --static --libs)
}
function mason_clean {
make clean
}
mason_run "$@"
+20
View File
@@ -0,0 +1,20 @@
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
- bison
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+42
View File
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
MASON_NAME=binutils
MASON_VERSION=2.27
MASON_LIB_FILE=bin/ld
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
http://ftp.gnu.org/gnu/binutils/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \
7e62c56ea660080882af2c8644d566765a77a0b8
mason_extract_tar_bz2
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
}
function mason_compile {
# we unset CFLAGS otherwise they will clobber defaults inside binutils
unset CFLAGS
./configure \
--prefix=${MASON_PREFIX} \
--enable-gold \
--enable-plugins \
--enable-static \
--disable-shared \
--disable-dependency-tracking
make -j${MASON_CONCURRENCY}
make install
}
function mason_ldflags {
:
}
function mason_clean {
make clean
}
mason_run "$@"
@@ -0,0 +1,21 @@
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
- bison
- texinfo
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+41
View File
@@ -0,0 +1,41 @@
#!/usr/bin/env bash
MASON_NAME=binutils
MASON_VERSION=f0e9390be
MASON_LIB_FILE=bin/ld
. ${MASON_DIR}/mason.sh
function mason_load_source {
export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
git clone git://sourceware.org/git/binutils-gdb.git ${MASON_BUILD_PATH}
cd ${MASON_BUILD_PATH}
git checkout f0e9390be5bbfa3ee777d81dacfccd713ebddb68
cd ../
}
function mason_compile {
# we unset CFLAGS otherwise they will clobber defaults inside binutils
unset CFLAGS
./configure \
--prefix=${MASON_PREFIX} \
--enable-gold \
--enable-plugins \
--enable-static \
--disable-shared \
--disable-werror \
--disable-dependency-tracking
make -j${MASON_CONCURRENCY}
make install
}
function mason_ldflags {
:
}
function mason_clean {
make clean
}
mason_run "$@"