Skip to content

Commit f659c0c

Browse files
committed
fix recipes build
1 parent 7183fd6 commit f659c0c

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

pythonforandroid/recipes/kivy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class KivyRecipe(PyProjectRecipe):
3434
# WARNING: Remove this patch when a new Kivy version is released.
3535
patches = [
3636
("sdl-gl-swapwindow-nogil.patch", is_kivy_affected_by_deadlock_issue),
37-
"use_cython.patch",
3837
"no-ast-str.patch"
3938
]
4039

@@ -59,6 +58,7 @@ def get_recipe_env(self, arch, **kwargs):
5958

6059
# NDKPLATFORM is our switch for detecting Android platform, so can't be None
6160
env['NDKPLATFORM'] = "NOTNONE"
61+
env['KIVY_CROSS_PLATFORM'] = 'android'
6262
if 'sdl2' in self.ctx.recipe_build_order:
6363
env['USE_SDL2'] = '1'
6464
env['KIVY_SPLIT_EXAMPLES'] = '1'

pythonforandroid/recipes/kivy/use_cython.patch

Lines changed: 0 additions & 11 deletions
This file was deleted.

pythonforandroid/recipes/sdl3_image/enable-webp.patch

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
diff -Naur SDL2_image.orig/Android.mk SDL2_image/Android.mk
2-
--- SDL2_image.orig/Android.mk 2022-10-03 20:51:52.000000000 +0200
3-
+++ SDL2_image/Android.mk 2022-10-03 20:52:48.000000000 +0200
4-
@@ -32,7 +32,7 @@
1+
diff --git a/Android.mk b/Android.mk
2+
index ad6d0f40..133379c8 100644
3+
--- a/Android.mk
4+
+++ b/Android.mk
5+
@@ -33,7 +33,7 @@ PNG_LIBRARY_PATH := external/libpng
56

67
# Enable this if you want to support loading WebP images
78
# The library path should be a relative path to this directory.
89
-SUPPORT_WEBP ?= false
910
+SUPPORT_WEBP := true
11+
SUPPORT_SAVE_WEBP ?= true
1012
WEBP_LIBRARY_PATH := external/libwebp
1113

12-

0 commit comments

Comments
 (0)