-
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
95e7022
commit 3e30ab7
Showing
2 changed files
with
117 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,33 @@ | ||
language: generic | ||
|
||
matrix: | ||
include: | ||
- 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,84 @@ | ||
#!/usr/bin/env bash | ||
|
||
MASON_NAME=libcurl | ||
MASON_VERSION=7.50.2 | ||
MASON_LIB_FILE=lib/libcurl.a | ||
MASON_PKGCONFIG_FILE=lib/pkgconfig/libcurl.pc | ||
|
||
OPENSSL_VERSION=1.0.2 | ||
|
||
. ${MASON_DIR}/mason.sh | ||
|
||
|
||
function mason_load_source { | ||
mason_download \ | ||
http://curl.haxx.se/download/curl-${MASON_VERSION}.tar.gz \ | ||
35d5c0d1dba88989961b3e95843c6b26a2d4fba8 | ||
|
||
mason_extract_tar_gz | ||
|
||
export MASON_BUILD_PATH=${MASON_ROOT}/.build/curl-${MASON_VERSION} | ||
} | ||
|
||
function mason_prepare_compile { | ||
${MASON_DIR}/mason install openssl ${OPENSSL_VERSION} | ||
MASON_OPENSSL=`${MASON_DIR}/mason prefix openssl ${OPENSSL_VERSION}` | ||
|
||
if [ ${MASON_PLATFORM} = 'linux' ]; then | ||
LIBS="-ldl ${LIBS=}" | ||
fi | ||
} | ||
|
||
function mason_compile { | ||
LIBS="${LIBS=}" ./configure \ | ||
--prefix=${MASON_PREFIX} \ | ||
${MASON_HOST_ARG} \ | ||
--enable-static \ | ||
--disable-shared \ | ||
--with-pic \ | ||
--enable-manual \ | ||
--with-ssl=${MASON_OPENSSL} \ | ||
--without-ca-bundle \ | ||
--without-ca-path \ | ||
--without-darwinssl \ | ||
--without-gnutls \ | ||
--without-polarssl \ | ||
--without-cyassl \ | ||
--without-nss \ | ||
--without-axtls \ | ||
--without-libmetalink \ | ||
--without-libssh2 \ | ||
--without-librtmp \ | ||
--without-winidn \ | ||
--without-libidn \ | ||
--without-nghttp2 \ | ||
--disable-ldap \ | ||
--disable-ldaps \ | ||
--disable-ldap \ | ||
--disable-ftp \ | ||
--disable-file \ | ||
--disable-rtsp \ | ||
--disable-proxy \ | ||
--disable-dict \ | ||
--disable-telnet \ | ||
--disable-tftp \ | ||
--disable-pop3 \ | ||
--disable-imap \ | ||
--disable-smtp \ | ||
--disable-gopher \ | ||
--disable-libcurl-option \ | ||
--disable-sspi \ | ||
--disable-crypto-auth \ | ||
--disable-ntlm-wb \ | ||
--disable-tls-srp \ | ||
--disable-cookies | ||
|
||
make -j${MASON_CONCURRENCY} | ||
make install | ||
} | ||
|
||
function mason_clean { | ||
make clean | ||
} | ||
|
||
mason_run "$@" |