tdlight/example/ios/build-openssl.sh
Arseny Smirnov f8429cf2b4 Ios build example
GitOrigin-RevId: fb1b29dbc054e6362272f4bda82a17866ee74770
2018-02-14 13:19:12 +03:00

22 lines
682 B
Bash
Executable File

#!/bin/sh
git clone https://github.com/pybee/Python-Apple-support
cd Python-Apple-support
git checkout 2.7
cd ..
#TODO: change openssl version
platforms="macOS iOS watchOS tvOS"
#platforms="macOS"
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