aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/ios
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2023-03-03 14:10:15 +0300
committerlevlam <levlam@telegram.org>2023-03-03 14:10:15 +0300
commit15944f2a00ef2ae00d2b33a048047ecaf37f1487 (patch)
tree53c1bf51db232bbed4641559847b5a7fc683573a /example/ios
parentdff135fa6c949a3ed3436957b48fa02aa54b3f71 (diff)
Add ARM64 support for watchOS.
Diffstat (limited to 'example/ios')
-rw-r--r--example/ios/Python-Apple-support.patch7
-rw-r--r--example/ios/README.md2
2 files changed, 5 insertions, 4 deletions
diff --git a/example/ios/Python-Apple-support.patch b/example/ios/Python-Apple-support.patch
index cb551bf70..3650d008b 100644
--- a/example/ios/Python-Apple-support.patch
+++ b/example/ios/Python-Apple-support.patch
@@ -14,7 +14,7 @@ index 695be54..eda7b0d 100644
# - BZip2-macOS - build BZip2 for macOS
# - BZip2-iOS - build BZip2 for iOS
# - BZip2-tvOS - build BZip2 for tvOS
-@@ -30,37 +33,51 @@ PYTHON_VERSION=2.7.14
+@@ -30,37 +33,52 @@ PYTHON_VERSION=2.7.14
PYTHON_VER=$(basename $(PYTHON_VERSION))
OPENSSL_VERSION_NUMBER=1.0.2
@@ -63,11 +63,12 @@ index 695be54..eda7b0d 100644
+
# watchOS targets
-TARGETS-watchOS=watchsimulator.i386 watchos.armv7k
-+TARGETS-watchOS=watchos.armv7k watchos.arm64_32
++TARGETS-watchOS=watchos.armv7k watchos.arm64_32 watchos.arm64
CFLAGS-watchOS=-mwatchos-version-min=4.0
-CFLAGS-watchos.armv7k=-fembed-bitcode
+CFLAGS-watchos.armv7k=
+CFLAGS-watchos.arm64_32=
++CFLAGS-watchos.arm64=
PYTHON_CONFIGURE-watchOS=ac_cv_func_sigaltstack=no
+# watchOS-simulator targets
@@ -77,7 +78,7 @@ index 695be54..eda7b0d 100644
# override machine types for arm64
MACHINE_DETAILED-arm64=aarch64
MACHINE_SIMPLE-arm64=arm
-@@ -194,9 +211,11 @@ endif
+@@ -194,9 +212,11 @@ endif
# Configure the build
ifeq ($2,macOS)
diff --git a/example/ios/README.md b/example/ios/README.md
index 00d4312be..e8a2f8d18 100644
--- a/example/ios/README.md
+++ b/example/ios/README.md
@@ -8,7 +8,7 @@ For example of usage take a look at our [Swift example](https://github.com/tdlib
To compile `TDLib` you will need to:
* Install the latest Xcode via `xcode-select --install` or downloading it from [Xcode website](https://developer.apple.com/xcode/).
- It is not enough to install only command line developer tools to build `TDLib` for iOS.
+ It is not enough to install only command line developer tools to build `TDLib` for iOS. Xcode >= 14.0 is required to build TDLib for watchOS.
* Install other build dependencies using [Homebrew](https://brew.sh):
```
brew install gperf cmake coreutils