Skip to content

Commit f8eb278

Browse files
committed
Added temporary jpg disable for sdl_image x86
1 parent cb45693 commit f8eb278

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

pythonforandroid/recipes/sdl2_image/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def prebuild_arch(self, arch):
1414
info('SDL2_image already patched, skipping')
1515
return
1616
self.apply_patch('disable_webp.patch', arch.arch)
17+
self.apply_patch('disable_jpg.patch', arch.arch)
1718
shprint(sh.touch, join(build_dir, '.patched'))
1819

1920
recipe = LibSDL2Image()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Android.mk b/Android.mk
2+
index 31e2118..8cd2cb9 100644
3+
--- a/Android.mk
4+
+++ b/Android.mk
5+
@@ -6,7 +6,7 @@ LOCAL_MODULE := SDL2_image
6+
7+
# Enable this if you want to support loading JPEG images
8+
# The library path should be a relative path to this directory.
9+
-SUPPORT_JPG := true
10+
+SUPPORT_JPG := false
11+
JPG_LIBRARY_PATH := external/jpeg-9
12+
13+
# Enable this if you want to support loading PNG images

0 commit comments

Comments
 (0)