Skip to content

Commit 3ae53ef

Browse files
Xi ShenXi Shen
Xi Shen
authored and
Xi Shen
committed
Merge remote-tracking branch 'upstream/master'
2 parents 9a346ee + 8f5d3db commit 3ae53ef

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ tools/*-android-toolchain
88
tools/curl*
99
tools/openssl*
1010
tools/protobuf*
11+
output/

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
## English
1414

15+
## Downloads
16+
17+
If you do not want to build it by yourself, you could download our prebuilt library from [there](https://github.com/leenjewel/openssl_for_ios_and_android/releases/tag/20170105)
18+
1519
## OpenSSL Version
1620

1721
This a static library compile from openssl and cURL for iOS and Android.
@@ -193,6 +197,10 @@ target_link_libraries( # Specifies the target library.
193197
194198
后来又加入了适用于 iOS 平台和 Android 平台且支持 SSL 的 cURL 静态链接库。基于 curl-7.47.1 版本编译生成。
195199
200+
## 下载
201+
202+
如果你不想自己构建,那么你可以使用我们已经预先构建好的版本,[请在这里下载](https://github.com/leenjewel/openssl_for_ios_and_android/releases/tag/20170105)
203+
196204
## 在 iOS 工程中使用
197205
198206
将 `lib/libcrypto.a` 和 `lib/libssl.a` 还有 `lib/libcurl.a` 三个静态链接库文件拷贝到你的 iOS 工程下面合适的位置。

tools/build-openssl4ios.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PLATFORMS=("iPhoneOS" "iPhoneOS" "iPhoneOS" "iPhoneSimulator" "iPhoneSimulator")
3131
DEVELOPER=`xcode-select -print-path`
3232
SDK_VERSION=""10.2""
3333
LIB_NAME="openssl-1.1.0c"
34-
LIB_DEST_DIR="lib"
34+
LIB_DEST_DIR="${pwd_path}/../output/ios/openssl-ios-universal"
3535
HEADER_DEST_DIR="include"
3636
rm -rf "${HEADER_DEST_DIR}" "${LIB_DEST_DIR}" "${LIB_NAME}"
3737

@@ -56,7 +56,7 @@ configure_make()
5656
export TOOLS="${DEVELOPER}"
5757
export CC="${TOOLS}/usr/bin/gcc -arch ${ARCH}"
5858

59-
PREFIX_DIR="${pwd_path}/openssl-ios-${ARCH}"
59+
PREFIX_DIR="${pwd_path}/../output/ios/openssl-ios-${ARCH}"
6060
if [ -d "${PREFIX_DIR}" ]; then
6161
rm -fr "${PREFIX_DIR}"
6262
fi
@@ -89,7 +89,7 @@ done
8989
create_lib()
9090
{
9191
LIB_SRC=$1; LIB_DST=$2;
92-
LIB_PATHS=( "${ARCHS[@]/#/${pwd_path}/openssl-ios-}" )
92+
LIB_PATHS=( "${ARCHS[@]/#/${pwd_path}/../output/ios/openssl-ios-}" )
9393
LIB_PATHS=( "${LIB_PATHS[@]/%//lib/${LIB_SRC}}" )
9494
lipo ${LIB_PATHS[@]} -create -output "${LIB_DST}"
9595
}

0 commit comments

Comments
 (0)