This repository has been archived on 2020-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
tdlib-fork/example/ios/build-openssl.sh
levlam 3347a5e2da Fix OpenSSL armv7 build in iOS example.
GitOrigin-RevId: 078d669b11f1aafc2d6ea26088d663e2bd4b06a0
2018-12-02 22:26:27 +03:00

23 lines
722 B
Bash
Executable File

#!/bin/sh
git clone https://github.com/pybee/Python-Apple-support
cd Python-Apple-support
git checkout 60b990128d5f1f04c336ff66594574515ab56604
cd ..
#TODO: change openssl version
platforms="macOS iOS watchOS tvOS"
for platform in $platforms;
do
echo $platform
cd Python-Apple-support
#NB: -j will fail
make OpenSSL-$platform
cd ..
rm -rf third_party/openssl/$platform
mkdir -p third_party/openssl/$platform/lib
cp ./Python-Apple-support/build/$platform/libcrypto.a third_party/openssl/$platform/lib/
cp ./Python-Apple-support/build/$platform/libssl.a third_party/openssl/$platform/lib/
cp -r ./Python-Apple-support/build/$platform/Support/OpenSSL/Headers/ third_party/openssl/$platform/include
done