Skip to content

Commit

Permalink
libnghttp2 1.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivovandongen committed Feb 6, 2018
1 parent 0115843 commit 95e7022
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
36 changes: 36 additions & 0 deletions scripts/libnghttp2/1.26.0/.travis.yml
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}
38 changes: 38 additions & 0 deletions scripts/libnghttp2/1.26.0/script.sh
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 "$@"

0 comments on commit 95e7022

Please sign in to comment.