ab4736df28
* Support Arm64 simulator targets (M1) * Combine dylibs to xcframework * Update Python-Apple-support urls * Update Readme
37 lines
1001 B
Bash
Executable File
37 lines
1001 B
Bash
Executable File
#!/bin/sh
|
|
|
|
git clone https://github.com/beeware/Python-Apple-support
|
|
cd Python-Apple-support
|
|
git checkout 60b990128d5f1f04c336ff66594574515ab56604
|
|
git apply ../Python-Apple-support.patch
|
|
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
|
|
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
|
|
done
|