Remove old mason

This commit is contained in:
Patrick Niklaus
2016-12-15 09:39:46 +00:00
parent 38b2ad298d
commit 708ac04562
733 changed files with 0 additions and 30715 deletions
@@ -1,27 +0,0 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
compiler: clang
- os: linux
compiler: clang
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ARCH=arm
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ARCH=x86
env:
global:
- secure: "clCFM3prHnDocZ8lXlimPxAogvFirD1Zx8cMcFJ/XpkTA/0pCgnhpArM4y/NzLHR57pNZTSCr3p6XZI1c1iTG4Zm8x0sK2A4aTFRahypXNy/e+LzAbtd1y1+dEEDwlJvNNGxizQX4frhOgSNQFDFnWLtmF3stlft5YWyc2kI+FI="
- secure: "jKJErCng8Sk8YJ0IN2FX3lhv7G1LeudMfFBAXViZaXn8w/gWPs+SlfXQmIJ5SruU7U2GQKnAhzbjwXjVAgAh8OAblzny0DDm5Lh5WmwkgAP8JH1LpsBwCYx2S/v8qyR4DX1RVhHS8mQu298180ZDVgGccw+hd8xrE/S5TEQcNfQ="
before_install:
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
@@ -1,11 +0,0 @@
--- update_gypi_and_asm.py_ 2015-01-22 11:13:43.000000000 -0800
+++ update_gypi_and_asm.py 2015-01-22 11:13:59.000000000 -0800
@@ -15,7 +15,7 @@
OS_ARCH_COMBOS = [
('linux', 'arm', 'elf', [''], 'S'),
('linux', 'x86', 'elf', ['-fPIC'], 'S'),
- ('linux', 'x86_64', 'elf', [''], 'S'),
+ ('linux', 'x86_64', 'elf', ['-fPIC'], 'S'),
('mac', 'x86', 'macosx', ['-fPIC'], 'S'),
('mac', 'x86_64', 'macosx', [''], 'S'),
('win', 'x86_64', 'masm', [''], 'asm'),
@@ -1,80 +0,0 @@
#!/usr/bin/env bash
MASON_NAME=boringssl
MASON_VERSION=a6aabff2e6e95a71b2f966447eebd53e57d8bf83
MASON_LIB_FILE=lib/libboringssl.a
. ${MASON_DIR}/mason.sh
MASON_PWD=$(pwd)
function mason_load_source {
# get gyp build scripts
URL=https://chromium.googlesource.com/experimental/chromium/src/+archive/master/third_party/boringssl.tar.gz
# we don't use `mason_download` here because the hash changes every download (google must be generating on the fly)
mkdir -p "${MASON_ROOT}/.cache"
cd "${MASON_ROOT}/.cache"
if [ ! -f ${MASON_SLUG} ] ; then
mason_step "Downloading ${URL}..."
curl --retry 3 -f -# -L "${URL}" -o ${MASON_SLUG}
fi
mason_extract_tar_gz
export MASON_BUILD_PATH=${MASON_ROOT}/.build/
}
function mason_compile {
# get code
git clone --depth 1 https://boringssl.googlesource.com/boringssl src
# get gyp
git clone --depth 1 https://chromium.googlesource.com/external/gyp.git
# TODO - download this patch from remote to be able to work non-locally
patch ./update_gypi_and_asm.py < ${MASON_PWD}/boringssl_asm_x86_64_fPIC.diff
# regenerate gyp configs
python update_gypi_and_asm.py
if [[ "${MASON_PLATFORM}" == "android" ]]; then
if [[ "${MASON_ANDROID_ARCH}" == "arm" ]]; then
export GYP_DEFINES="component=static_library OS=android target_arch=arm"
elif [[ "${MASON_ANDROID_ARCH}" == "x86" ]]; then
export GYP_DEFINES="component=static_library OS=android target_arch=ia32"
else
# Note: mips will be arch "mipsel"
export GYP_DEFINES="component=static_library OS=android target_arch=${MASON_ANDROID_ARCH}"
fi
else
export GYP_DEFINES="component=static_library target_arch=`uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/"`"
fi
# generate makefiles
echo "{ 'target_defaults': { 'standalone_static_library': 1 } }" > config.gypi
./gyp/gyp boringssl.gyp --depth=. -Iconfig.gypi --generator-output=./build --format=make -Dcomponent=static_library -Dtarget_arch=x64
# compile
make -j${MASON_CONCURRENCY} -C build V=1
# install
mkdir -p ${MASON_PREFIX}/lib
if [[ "${MASON_PLATFORM}" == "osx" ]]; then
cp build/out/Default/libboringssl.a ${MASON_PREFIX}/lib/libboringssl.a
else
cp build/out/Default/obj.target/libboringssl.a ${MASON_PREFIX}/lib/libboringssl.a
fi
(cd ${MASON_PREFIX}/lib/ && ln -s libboringssl.a libssl.a && ln -s libboringssl.a libcrypto.a)
cp -r src/include ${MASON_PREFIX}/include
}
function mason_cflags {
echo -I${MASON_PREFIX}/include
}
function mason_ldflags {
echo -L${MASON_PREFIX}/lib -lboringssl
}
function mason_clean {
make clean
}
mason_run "$@"