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
+30
View File
@@ -0,0 +1,30 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
compiler: clang
- os: linux
compiler: clang
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64
script:
- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
MASON_NAME=nunicode
MASON_VERSION=1.5.1
MASON_LIB_FILE=lib/libnu.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/nu.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://bitbucket.org/alekseyt/nunicode/get/1.5.1.tar.bz2 \
d85a6cd2d779db3503034762f56fd094ea6f5def
mason_extract_tar_bz2
export MASON_BUILD_PATH=${MASON_ROOT}/.build/alekseyt-nunicode-01c8e4ebc740
}
function mason_compile {
mkdir -p build-dir
cd build-dir
# patch CMakeLists file
cat ../CMakeLists.txt | sed -e '/find_package.Sqlite3/ s/^/#/' > ../CMakeLists.txt.new && cp ../CMakeLists.txt.new ../CMakeLists.txt
cmake \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \
${MASON_CMAKE_TOOLCHAIN} \
..
make install -j${MASON_CONCURRENCY}
}
function mason_cflags {
echo -I${MASON_PREFIX}/include
}
function mason_ldflags {
: # We're only using the full path to the archive, which is output in static_libs
}
function mason_clean {
make clean
}
mason_run "$@"
+34
View File
@@ -0,0 +1,34 @@
language: cpp
matrix:
include:
- os: osx
compiler: clang
- os: linux
compiler: clang
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64
before_install:
- "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:kubuntu-ppa/backports ; fi"
- "if [[ ${TRAVIS_OS_NAME:-linux} = 'linux' ]]; then sudo apt-get update -y ; fi"
- "if [[ ${TRAVIS_OS_NAME:-linux} = 'linux' ]]; then sudo apt-get -y install cmake ; fi"
script:
- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
MASON_NAME=nunicode
MASON_VERSION=1.6
MASON_LIB_FILE=lib/libnu.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/nu.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download https://bitbucket.org/alekseyt/nunicode/get/1.6.tar.bz2 \
3dd1b2487038823e6435ad9d44d76836577f0801
mason_extract_tar_bz2
export MASON_BUILD_PATH=${MASON_ROOT}/.build/alekseyt-nunicode-34f278da1e6a
}
function mason_compile {
mkdir -p build-dir
cd build-dir
# patch CMakeLists file
cat ../CMakeLists.txt | sed -e '/find_package.Sqlite3/ s/^/#/' > ../CMakeLists.txt.new && cp ../CMakeLists.txt.new ../CMakeLists.txt
cmake \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \
${MASON_CMAKE_TOOLCHAIN} \
..
make install -j${MASON_CONCURRENCY}
}
function mason_cflags {
echo -I${MASON_PREFIX}/include
}
function mason_ldflags {
: # We're only using the full path to the archive, which is output in static_libs
}
function mason_clean {
make clean
}
mason_run "$@"
+40
View File
@@ -0,0 +1,40 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
env: MASON_PLATFORM=osx
compiler: clang
- os: linux
env: MASON_PLATFORM=linux
compiler: clang
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips
- os: linux
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64
addons:
apt:
sources: [ 'ubuntu-toolchain-r-test', 'george-edison55-precise-backports' ]
packages: [ 'libstdc++-5-dev', 'cmake', 'cmake-data' ]
install:
- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+47
View File
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
MASON_NAME=nunicode
MASON_VERSION=1.7.1
MASON_LIB_FILE=lib/libnu.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/nu.pc
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download https://bitbucket.org/alekseyt/nunicode/get/1.7.1.tar.bz2 \
96e4b9893c88be4dacd2db7db154ec1727a757d1
mason_extract_tar_bz2
export MASON_BUILD_PATH=${MASON_ROOT}/.build/alekseyt-nunicode-263219737286
}
function mason_compile {
mkdir -p build-dir
cd build-dir
# patch CMakeLists file
cat ../CMakeLists.txt | sed -e '/find_package.Sqlite3/ s/^/#/' > ../CMakeLists.txt.new && cp ../CMakeLists.txt.new ../CMakeLists.txt
cmake \
-DCMAKE_BUILD_TYPE=RELEASE \
-DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \
${MASON_CMAKE_TOOLCHAIN} \
..
make install -j${MASON_CONCURRENCY}
}
function mason_cflags {
echo -I${MASON_PREFIX}/include
}
function mason_ldflags {
: # We're only using the full path to the archive, which is output in static_libs
}
function mason_clean {
make clean
}
mason_run "$@"