Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions scripts/binutils/2.31/.travis.yml
Original file line number Diff line number Diff line change
@@ -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++-4.8-dev
- bison

script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
53 changes: 53 additions & 0 deletions scripts/binutils/2.31/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#!/usr/bin/env bash

MASON_NAME=binutils
MASON_VERSION=2.31
MASON_LIB_FILE=lib/libbfd.a

. ${MASON_DIR}/mason.sh

function mason_load_source {
mason_download \
http://ftp.gnu.org/gnu/binutils/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \
602856fd5af10a09a123ae25dfb86e3b436549cf

mason_extract_tar_bz2

export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}
}

function mason_compile {
# Add optimization flags since CFLAGS overrides the default (-g -O2)
export CFLAGS="${CFLAGS} -O3 -DNDEBUG -Wno-c++11-narrowing"
export CXXFLAGS="${CXXFLAGS} -O3 -DNDEBUG -Wno-c++11-narrowing"
./configure \
--prefix=${MASON_PREFIX} \
--enable-gold \
--enable-plugins \
--enable-static \
--disable-shared \
--disable-dependency-tracking

make -j${MASON_CONCURRENCY}
make install
cp include/libiberty.h ${MASON_PREFIX}/include/
cp libiberty/libiberty.a ${MASON_PREFIX}/lib/
}

function mason_cflags {
echo -I${MASON_PREFIX}/include
}

function mason_ldflags {
:
}

function mason_static_libs {
echo ${MASON_PREFIX}/${MASON_LIB_FILE}
}

function mason_clean {
make clean
}

mason_run "$@"
11 changes: 11 additions & 0 deletions scripts/clang++/6.0.1/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: generic

matrix:
include:
- os: osx
- os: linux
sudo: false

script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
19 changes: 19 additions & 0 deletions scripts/clang++/6.0.1/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# For context on this file see https://github.com/mapbox/mason/blob/master/scripts/llvm/base/README.md

# dynamically determine the path to this package
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"

# dynamically take name of package from directory
MASON_NAME=$(basename $(dirname $HERE))
# dynamically take the version of the package from directory
MASON_VERSION=$(basename $HERE)
MASON_LIB_FILE=bin/${MASON_NAME}

. ${MASON_DIR}/mason.sh

# inherit all functions from base
source ${HERE}/../../${MASON_NAME}/base/common.sh

mason_run "$@"
11 changes: 11 additions & 0 deletions scripts/clang-format/6.0.1/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: generic

matrix:
include:
- os: osx
- os: linux
sudo: false

script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
19 changes: 19 additions & 0 deletions scripts/clang-format/6.0.1/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# For context on this file see https://github.com/mapbox/mason/blob/master/scripts/llvm/base/README.md

# dynamically determine the path to this package
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"

# dynamically take name of package from directory
MASON_NAME=$(basename $(dirname $HERE))
# dynamically take the version of the package from directory
MASON_VERSION=$(basename $HERE)
MASON_LIB_FILE=bin/${MASON_NAME}

. ${MASON_DIR}/mason.sh

# inherit all functions from base
source ${HERE}/../../${MASON_NAME}/base/common.sh

mason_run "$@"
11 changes: 11 additions & 0 deletions scripts/clang-tidy/6.0.1/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: generic

matrix:
include:
- os: osx
- os: linux
sudo: false

script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
13 changes: 13 additions & 0 deletions scripts/clang-tidy/6.0.1/README-yaml.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This is a copy of `pyyaml-3.12` vendored on april 24, 2018 by @springmeyer.

https://github.com/mapbox/mason/issues/563 documents why.

The process to vendor was:

```
cd mason
pip install pyyaml --user
cp $(python -m site --user-site)/yaml scripts/clang-tidy/6.0.0/
```

Then the `clang-tidy` package was built and the `yaml` directory was copied beside the `share/run-clang-tidy.py` script (which depends on it).
19 changes: 19 additions & 0 deletions scripts/clang-tidy/6.0.1/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# For context on this file see https://github.com/mapbox/mason/blob/master/scripts/llvm/base/README.md

# dynamically determine the path to this package
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"

# dynamically take name of package from directory
MASON_NAME=$(basename $(dirname $HERE))
# dynamically take the version of the package from directory
MASON_VERSION=$(basename $HERE)
MASON_LIB_FILE=bin/${MASON_NAME}

. ${MASON_DIR}/mason.sh

# inherit all functions from base
source ${HERE}/../../${MASON_NAME}/base/common.sh

mason_run "$@"
Loading