From 5ba61e1529775bf8f688c3f30794a63755b32e78 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Thu, 31 Jul 2025 20:28:21 +0200 Subject: [PATCH] Require c++ stl for Kivy when sdl3 is used (Kivy 3.0.0) --- pythonforandroid/recipes/kivy/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pythonforandroid/recipes/kivy/__init__.py b/pythonforandroid/recipes/kivy/__init__.py index f80024155f..2311da6cc5 100644 --- a/pythonforandroid/recipes/kivy/__init__.py +++ b/pythonforandroid/recipes/kivy/__init__.py @@ -34,6 +34,13 @@ class KivyRecipe(PyProjectRecipe): # WARNING: Remove this patch when a new Kivy version is released. patches = [("sdl-gl-swapwindow-nogil.patch", is_kivy_affected_by_deadlock_issue), "use_cython.patch"] + @property + def need_stl_shared(self): + if "sdl3" in self.ctx.recipe_build_order: + return True + else: + return False + def get_recipe_env(self, arch, **kwargs): env = super().get_recipe_env(arch, **kwargs)