Skip to content

Commit 51e783c

Browse files
authored
Merge pull request kivy#1692 from opacam/update-sdl2-image
SDL2_image update to 2.0.4 and set kivy's version to master
2 parents 282e43d + 999df75 commit 51e783c

File tree

5 files changed

+29
-79
lines changed

5 files changed

+29
-79
lines changed

pythonforandroid/recipes/kivy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77

88
class KivyRecipe(CythonRecipe):
9-
# post kivy==1.10.1 with SDL 2.0.9 fixes
10-
version = 'b47f669'
9+
# post kivy==1.10.1, `fixes SDL2 image loading (jpg)`
10+
version = 'a95d67f'
1111
url = 'https://github.com/kivy/kivy/archive/{version}.zip'
1212
name = 'kivy'
1313

pythonforandroid/recipes/sdl2_image/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44

55
class LibSDL2Image(BootstrapNDKRecipe):
6-
version = '2.0.1'
6+
version = '2.0.4'
77
url = 'https://www.libsdl.org/projects/SDL_image/release/SDL2_image-{version}.tar.gz'
88
dir_name = 'SDL2_image'
99

1010
patches = ['toggle_jpg_png_webp.patch',
1111
('disable_jpg.patch', is_arch('x86')),
1212
'extra_cflags.patch',
13-
'fix_with_ndk_15_plus.patch']
13+
]
1414

1515

1616
recipe = LibSDL2Image()
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
--- orig/Android.mk 2016-01-03 06:52:28.000000000 +0100
2-
+++ patch/Android.mk 2016-04-15 21:03:18.547379710 +0200
3-
@@ -25,7 +25,7 @@
4-
LOCAL_C_INCLUDES := $(LOCAL_PATH)
1+
--- SDL2_image-2.0.4/Android.mk.orig 2018-10-31 15:58:52.000000000 +0100
2+
+++ SDL2_image-2.0.4/Android.mk 2019-02-07 21:57:29.552365123 +0100
3+
@@ -61,6 +61,8 @@ LOCAL_SRC_FILES := \
4+
55
LOCAL_CFLAGS := -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM \
6-
-DLOAD_TGA -DLOAD_XCF -DLOAD_XPM -DLOAD_XV
7-
-LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
8-
+LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays $(EXTRA_CFLAGS)
9-
10-
LOCAL_SRC_FILES := $(notdir $(filter-out %/showimage.c, $(wildcard $(LOCAL_PATH)/*.c)))
11-
6+
-DLOAD_SVG -DLOAD_TGA -DLOAD_XCF -DLOAD_XPM -DLOAD_XV
7+
+LOCAL_CFLAGS += $(EXTRA_CFLAGS)
8+
+
9+
LOCAL_LDLIBS :=
10+
LOCAL_STATIC_LIBRARIES :=
11+
LOCAL_SHARED_LIBRARIES := SDL2

pythonforandroid/recipes/sdl2_image/fix_with_ndk_15_plus.patch

Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
--- orig/Android.mk 2016-01-03 06:52:28.000000000 +0100
2-
+++ patch/Android.mk 2016-04-15 21:14:23.906688966 +0200
3-
@@ -6,19 +6,19 @@
4-
1+
--- SDL2_image-2.0.4/Android.mk.orig 2018-10-31 15:58:52.000000000 +0100
2+
+++ SDL2_image-2.0.4/Android.mk 2019-02-07 23:51:51.740299680 +0100
3+
@@ -3,18 +3,18 @@ SDL_IMAGE_LOCAL_PATH := $(call my-dir)
4+
55
# Enable this if you want to support loading JPEG images
66
# The library path should be a relative path to this directory.
77
-SUPPORT_JPG ?= true
88
+SUPPORT_JPG := true
9-
JPG_LIBRARY_PATH := external/jpeg-9
10-
9+
JPG_LIBRARY_PATH := external/jpeg-9b
10+
1111
# Enable this if you want to support loading PNG images
1212
# The library path should be a relative path to this directory.
1313
-SUPPORT_PNG ?= true
1414
+SUPPORT_PNG := true
15-
PNG_LIBRARY_PATH := external/libpng-1.6.2
16-
15+
PNG_LIBRARY_PATH := external/libpng-1.6.32
16+
1717
# Enable this if you want to support loading WebP images
1818
# The library path should be a relative path to this directory.
19-
#
20-
# IMPORTANT: In order to enable this must have a symlink in your jni directory to external/libwebp-0.3.0.
21-
-SUPPORT_WEBP ?= false
22-
+SUPPORT_WEBP := false
23-
WEBP_LIBRARY_PATH := external/libwebp-0.3.0
24-
25-
19+
-SUPPORT_WEBP ?= true
20+
-WEBP_LIBRARY_PATH := external/libwebp-0.6.0
21+
+SUPPORT_WEBP := true
22+
+WEBP_LIBRARY_PATH := external/libwebp-1.0.0
23+
24+
25+
# Build the library

0 commit comments

Comments
 (0)