update to ios9/xcode7
upgrade curl to 7.44.0
This commit is contained in:
parent
0b43feca9f
commit
34b9aec08e
2 changed files with 26 additions and 13 deletions
27
README.md
27
README.md
|
@ -1,20 +1,33 @@
|
|||
build-libcurl-ios
|
||||
=================
|
||||
|
||||
Build libcurl for iOS development.
|
||||
Includes armv7 armv7s arm64 i386 and x86_64 support.
|
||||
This script will generate static library for armv7 armv7s arm64 i386 and x86_64.
|
||||
New Xcode7 bitcode feature supported.
|
||||
|
||||
Script only, please download libcurl from here: http://curl.haxx.se/download.html
|
||||
Tested iOS SDK 7.1 and MacOSX 10.9
|
||||
Tested curl 7.35.0
|
||||
Tested iOS SDK 9.0 and MacOSX 10.11
|
||||
Tested curl 7.44.0
|
||||
|
||||
Usage
|
||||
=================
|
||||
```
|
||||
curl -O http://curl.haxx.se/download/curl-7.35.0.tar.gz
|
||||
tar xf curl-7.35.0.tar.gz
|
||||
cd curl-7.35.0
|
||||
curl -O http://curl.haxx.se/download/curl-7.44.0.tar.gz
|
||||
tar xf curl-7.44.0.tar.gz
|
||||
cd curl-7.44.0
|
||||
curl https://raw.githubusercontent.com/sinofool/build-libcurl-ios/master/build_libcurl_dist.sh |bash
|
||||
......
|
||||
```
|
||||
Find the result libcurl-ios-dist on your desktop.
|
||||
|
||||
|
||||
Binary
|
||||
=================
|
||||
You can find a prebuild binary here: https://sinofool.net/dl/libcurl-ios-dist.tar.bz2
|
||||
|
||||
Double check the binary file before use:
|
||||
SHA1:
|
||||
993c9bb75d798a886749e7801d5f54c494dbf6fb libcurl-ios-dist.tar.bz2
|
||||
|
||||
GnuPG: (My Key ID: 9BE18853)
|
||||
https://sinofool.net/dl/libcurl-ios-dist.tar.bz2.sig
|
||||
|
||||
|
|
|
@ -9,18 +9,18 @@ function build_for_arch() {
|
|||
PREFIX=$4
|
||||
IPHONEOS_DEPLOYMENT_TARGET="6.0"
|
||||
export PATH="${DEVROOT}/usr/bin/:${PATH}"
|
||||
export CFLAGS="-arch ${ARCH} -pipe -Os -gdwarf-2 -isysroot ${SYSROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
|
||||
export CFLAGS="-arch ${ARCH} -pipe -Os -gdwarf-2 -isysroot ${SYSROOT} -miphoneos-version-min=${IPHONEOS_DEPLOYMENT_TARGET} -fembed-bitcode"
|
||||
export LDFLAGS="-arch ${ARCH} -isysroot ${SYSROOT}"
|
||||
./configure --disable-shared --enable-static --with-ssl=${HOME}/Desktop/openssl-ios-dist --host="${HOST}" --prefix=${PREFIX} && make -j8 && make install
|
||||
}
|
||||
|
||||
TMP_DIR=/tmp/build_libcurl_$$
|
||||
|
||||
build_for_arch i386 i386-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk ${TMP_DIR}/i386 || exit 1
|
||||
build_for_arch x86_64 x86_64-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk ${TMP_DIR}/x86_64 || exit 2
|
||||
build_for_arch arm64 arm-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk ${TMP_DIR}/arm64 || exit 3
|
||||
build_for_arch armv7s armv7s-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk ${TMP_DIR}/armv7s || exit 4
|
||||
build_for_arch armv7 armv7-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk ${TMP_DIR}/armv7 || exit 5
|
||||
build_for_arch i386 i386-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk ${TMP_DIR}/i386 || exit 1
|
||||
build_for_arch x86_64 x86_64-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk ${TMP_DIR}/x86_64 || exit 2
|
||||
build_for_arch arm64 arm-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk ${TMP_DIR}/arm64 || exit 3
|
||||
build_for_arch armv7s armv7s-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk ${TMP_DIR}/armv7s || exit 4
|
||||
build_for_arch armv7 armv7-apple-darwin /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk ${TMP_DIR}/armv7 || exit 5
|
||||
|
||||
mkdir -p ${TMP_DIR}/lib/
|
||||
${DEVROOT}/usr/bin/lipo \
|
||||
|
|
Loading…
Reference in a new issue