Skip to content

Commit

Permalink
Issue #936: fix build for Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
tcaduser committed Sep 25, 2024
1 parent ff420e5 commit 3c4b0fd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kivy_ios/recipes/libffi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def prebuild_platform(self, plat):
"-i.bak",
"s/build_target(ios_simulator_i386_platform, platform_headers)/print('Skipping i386')/g",
"generate-darwin-source-and-headers.py")
shprint(sh.sed,
"-i.bak",
"s/ -fembed-bitcode//g",
"generate-darwin-source-and-headers.py")
self.set_marker("patched")

def build_platform(self, plat):
Expand Down
8 changes: 8 additions & 0 deletions kivy_ios/recipes/sdl2_ttf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ class LibSDL2TTFRecipe(Recipe):
include_dir = "SDL_ttf.h"
depends = ["libpng", "sdl2"]

def prebuild_platform(self, plat):
if self.has_marker("patched"):
return

self.apply_patch("harfbuzz.patch")

self.set_marker("patched")

def build_platform(self, plat):
shprint(sh.xcodebuild, self.ctx.concurrent_xcodebuild,
"ONLY_ACTIVE_ARCH=NO",
Expand Down
13 changes: 13 additions & 0 deletions kivy_ios/recipes/sdl2_ttf/harfbuzz.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

diff -Naur SDL2_ttf-2.20.2.orig/external/harfbuzz/src/hb-ft.cc SDL2_ttf-2.20.2/external/harfbuzz/src/hb-ft.cc
--- SDL2_ttf-2.20.2.orig/external/harfbuzz/src/hb-ft.cc 2022-05-25 12:51:24
+++ SDL2_ttf-2.20.2/external/harfbuzz/src/hb-ft.cc 2024-09-24 21:33:24
@@ -41,6 +41,8 @@
#include FT_MULTIPLE_MASTERS_H
#include FT_TRUETYPE_TABLES_H

+/** function pointer warning with XCode 16 */
+#pragma clang diagnostic ignored "-Wcast-function-type-strict"

/**
* SECTION:hb-ft

0 comments on commit 3c4b0fd

Please sign in to comment.