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.
This commit is contained in:
Vishesh Handa 2019-05-30 12:17:42 +02:00
parent 84f7f3387b
commit 7c381ca64d
2 changed files with 10 additions and 4 deletions

6
build.sh Normal file
View file

@ -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

View file

@ -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