From 7c381ca64dd80992f3bb9bd491c07567c63c2b00 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 30 May 2019 12:17:42 +0200 Subject: [PATCH] Add an build script This way one doesn't need to follow the instructions in the README and can just run the build script. It also dumps the contents in the same folder. --- build.sh | 6 ++++++ build_openssl_dist.sh | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..aee2e79 --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +curl -O https://www.openssl.org/source/openssl-1.1.1b.tar.gz +tar xf openssl-1.1.1b.tar.gz +cd openssl-1.1.1b +../build_openssl_dist.sh diff --git a/build_openssl_dist.sh b/build_openssl_dist.sh index 5cc378b..0761de9 100755 --- a/build_openssl_dist.sh +++ b/build_openssl_dist.sh @@ -1,6 +1,8 @@ #!/bin/bash -TMP_DIR=/tmp/build_openssl_$$ +set -x + +TMP_DIR=../build_openssl CROSS_TOP_SIM="`xcode-select --print-path`/Platforms/iPhoneSimulator.platform/Developer" CROSS_SDK_SIM="iPhoneSimulator.sdk" @@ -38,9 +40,7 @@ function pack_for () -output ${TMP_DIR}/lib/lib${LIBNAME}.a -create } -curl -O https://raw.githubusercontent.com/sinofool/build-openssl-ios/master/patch-conf.patch -#cp ../patch-conf.patch . -patch Configurations/10-main.conf < patch-conf.patch +patch Configurations/10-main.conf < ../patch-conf.patch build_for ios64sim-cross x86_64 SIM || exit 2 build_for ios-cross armv7s IOS || exit 4