-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0115843
commit 95e7022
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
language: generic | ||
|
||
matrix: | ||
include: | ||
- os: osx | ||
osx_image: xcode8.2 | ||
compiler: clang | ||
- os: linux | ||
env: MASON_PLATFORM=linux | ||
compiler: clang | ||
sudo: false | ||
- os: linux | ||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 | ||
sudo: false | ||
- os: linux | ||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 | ||
sudo: false | ||
- os: linux | ||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 | ||
sudo: false | ||
- os: linux | ||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 | ||
sudo: false | ||
- os: linux | ||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 | ||
sudo: false | ||
- os: linux | ||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips | ||
sudo: false | ||
- os: linux | ||
env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 | ||
sudo: false | ||
|
||
script: | ||
- ./mason build ${MASON_NAME} ${MASON_VERSION} | ||
- ./mason publish ${MASON_NAME} ${MASON_VERSION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
MASON_NAME=libnghttp2 | ||
MASON_VERSION=1.26.0 | ||
MASON_LIB_FILE=lib/libnghttp2.a | ||
MASON_PKGCONFIG_FILE=lib/pkgconfig/libnghttp2.pc | ||
|
||
. ${MASON_DIR}/mason.sh | ||
|
||
|
||
function mason_load_source { | ||
mason_download \ | ||
https://github.com/nghttp2/nghttp2/releases/download/v${MASON_VERSION}/nghttp2-${MASON_VERSION}.tar.gz \ | ||
49b166e603a056900a5febc2681de3bc4b65675e | ||
|
||
mason_extract_tar_gz | ||
|
||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/nghttp2-${MASON_VERSION} | ||
} | ||
|
||
function mason_compile { | ||
./configure \ | ||
--prefix=${MASON_PREFIX} \ | ||
${MASON_HOST_ARG} \ | ||
--enable-static \ | ||
--disable-shared \ | ||
--disable-dependency-tracking \ | ||
--enable-lib-only | ||
|
||
make -j${MASON_CONCURRENCY} | ||
make install | ||
} | ||
|
||
function mason_clean { | ||
make clean | ||
} | ||
|
||
mason_run "$@" |