update architectures for watchOS in example/ios
This commit is contained in:
parent
c6dec21cb6
commit
f866729415
@ -197,9 +197,9 @@ if (IOS_PLATFORM STREQUAL "OS")
|
||||
elseif (IOS_PLATFORM STREQUAL "SIMULATOR")
|
||||
set (IOS_ARCH "i386;x86_64")
|
||||
elseif (IOS_PLATFORM STREQUAL "WATCHOS")
|
||||
set (IOS_ARCH "armv7k")
|
||||
set (IOS_ARCH "armv7k;arm64_32")
|
||||
elseif (IOS_PLATFORM STREQUAL "WATCHSIMULATOR")
|
||||
set (IOS_ARCH "i386")
|
||||
set (IOS_ARCH "i386;x86_64")
|
||||
elseif (IOS_PLATFORM STREQUAL "TVOS")
|
||||
set (IOS_ARCH "arm64")
|
||||
elseif (IOS_PLATFORM STREQUAL "TVSIMULATOR")
|
||||
|
16
example/ios/Python-Apple-support.patch
Normal file
16
example/ios/Python-Apple-support.patch
Normal file
@ -0,0 +1,16 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 695be54..bce31b9 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -56,9 +56,10 @@ CFLAGS-appletvos.arm64=-fembed-bitcode
|
||||
PYTHON_CONFIGURE-tvOS=ac_cv_func_sigaltstack=no
|
||||
|
||||
# watchOS targets
|
||||
-TARGETS-watchOS=watchsimulator.i386 watchos.armv7k
|
||||
+TARGETS-watchOS=watchsimulator.i386 watchsimulator.x86_64 watchos.armv7k watchos.arm64_32
|
||||
CFLAGS-watchOS=-mwatchos-version-min=4.0
|
||||
CFLAGS-watchos.armv7k=-fembed-bitcode
|
||||
+CFLAGS-watchos.arm64_32=-fembed-bitcode
|
||||
PYTHON_CONFIGURE-watchOS=ac_cv_func_sigaltstack=no
|
||||
|
||||
# override machine types for arm64
|
@ -3,10 +3,12 @@
|
||||
git clone https://github.com/pybee/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"
|
||||
#platforms="watchOS"
|
||||
for platform in $platforms;
|
||||
do
|
||||
echo $platform
|
||||
|
@ -6,6 +6,7 @@ mkdir -p build
|
||||
cd build
|
||||
|
||||
platforms="macOS iOS watchOS tvOS"
|
||||
#platforms="watchOS"
|
||||
for platform in $platforms;
|
||||
do
|
||||
echo "Platform = ${platform} Simulator = ${simulator}"
|
||||
|
Loading…
Reference in New Issue
Block a user