diff options
author | George Hazan <george.hazan@gmail.com> | 2023-06-04 19:24:05 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-06-04 19:24:05 +0300 |
commit | efc336e60cf1331bf5f3213d296981b87b8b2a6c (patch) | |
tree | ea59ea1a324f45f6e8a06cc0887b376bfba90ca9 /protocols/Telegram/tdlib/td/example/ios/build-openssl.sh | |
parent | 6e83622d2af1cec3c759f4cff6efe4df2fe3328c (diff) |
fixes #3537 (Telegram: 32-разрядная версия падает в 64-разрядной Windows) + update to the fresh TDLIB
Diffstat (limited to 'protocols/Telegram/tdlib/td/example/ios/build-openssl.sh')
-rw-r--r-- | protocols/Telegram/tdlib/td/example/ios/build-openssl.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/protocols/Telegram/tdlib/td/example/ios/build-openssl.sh b/protocols/Telegram/tdlib/td/example/ios/build-openssl.sh new file mode 100644 index 0000000000..e31f565691 --- /dev/null +++ b/protocols/Telegram/tdlib/td/example/ios/build-openssl.sh @@ -0,0 +1,38 @@ +#!/bin/sh +cd $(dirname $0) + +git clone https://github.com/beeware/Python-Apple-support +cd Python-Apple-support +git checkout 60b990128d5f1f04c336ff66594574515ab56604 || exit 1 +git reset --hard || exit 1 +git apply ../Python-Apple-support.patch || exit 1 +cd .. + +#TODO: change openssl version +platforms="macOS iOS watchOS tvOS" + +for platform in $platforms; +do + if [[ $platform = "macOS" ]]; then + simulators="0" + else + simulators="0 1" + fi + + for simulator in $simulators; + do + if [[ $simulator = "1" ]]; then + platform="${platform}-simulator" + fi + echo $platform + cd Python-Apple-support + #NB: -j will fail + make OpenSSL-$platform || exit 1 + cd .. + rm -rf third_party/openssl/$platform || exit 1 + mkdir -p third_party/openssl/$platform/lib || exit 1 + cp ./Python-Apple-support/build/$platform/libcrypto.a third_party/openssl/$platform/lib/ || exit 1 + cp ./Python-Apple-support/build/$platform/libssl.a third_party/openssl/$platform/lib/ || exit 1 + cp -r ./Python-Apple-support/build/$platform/openssl/include/ third_party/openssl/$platform/include || exit 1 + done +done |