Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL2_image update to 2.0.4 and set kivy's version to master #1692

Merged
merged 2 commits into from
Feb 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pythonforandroid/recipes/kivy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@


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

Expand Down
4 changes: 2 additions & 2 deletions pythonforandroid/recipes/sdl2_image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@


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

patches = ['toggle_jpg_png_webp.patch',
('disable_jpg.patch', is_arch('x86')),
'extra_cflags.patch',
'fix_with_ndk_15_plus.patch']
]


recipe = LibSDL2Image()
20 changes: 10 additions & 10 deletions pythonforandroid/recipes/sdl2_image/extra_cflags.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- orig/Android.mk 2016-01-03 06:52:28.000000000 +0100
+++ patch/Android.mk 2016-04-15 21:03:18.547379710 +0200
@@ -25,7 +25,7 @@
LOCAL_C_INCLUDES := $(LOCAL_PATH)
--- SDL2_image-2.0.4/Android.mk.orig 2018-10-31 15:58:52.000000000 +0100
+++ SDL2_image-2.0.4/Android.mk 2019-02-07 21:57:29.552365123 +0100
@@ -61,6 +61,8 @@ LOCAL_SRC_FILES := \

LOCAL_CFLAGS := -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM \
-DLOAD_TGA -DLOAD_XCF -DLOAD_XPM -DLOAD_XV
-LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays
+LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays $(EXTRA_CFLAGS)

LOCAL_SRC_FILES := $(notdir $(filter-out %/showimage.c, $(wildcard $(LOCAL_PATH)/*.c)))

-DLOAD_SVG -DLOAD_TGA -DLOAD_XCF -DLOAD_XPM -DLOAD_XV
+LOCAL_CFLAGS += $(EXTRA_CFLAGS)
+
LOCAL_LDLIBS :=
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := SDL2
50 changes: 0 additions & 50 deletions pythonforandroid/recipes/sdl2_image/fix_with_ndk_15_plus.patch

This file was deleted.

30 changes: 15 additions & 15 deletions pythonforandroid/recipes/sdl2_image/toggle_jpg_png_webp.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
--- orig/Android.mk 2016-01-03 06:52:28.000000000 +0100
+++ patch/Android.mk 2016-04-15 21:14:23.906688966 +0200
@@ -6,19 +6,19 @@
--- SDL2_image-2.0.4/Android.mk.orig 2018-10-31 15:58:52.000000000 +0100
+++ SDL2_image-2.0.4/Android.mk 2019-02-07 23:51:51.740299680 +0100
@@ -3,18 +3,18 @@ SDL_IMAGE_LOCAL_PATH := $(call my-dir)

# Enable this if you want to support loading JPEG images
# The library path should be a relative path to this directory.
-SUPPORT_JPG ?= true
+SUPPORT_JPG := true
JPG_LIBRARY_PATH := external/jpeg-9
JPG_LIBRARY_PATH := external/jpeg-9b

# Enable this if you want to support loading PNG images
# The library path should be a relative path to this directory.
-SUPPORT_PNG ?= true
+SUPPORT_PNG := true
PNG_LIBRARY_PATH := external/libpng-1.6.2
PNG_LIBRARY_PATH := external/libpng-1.6.32

# Enable this if you want to support loading WebP images
# The library path should be a relative path to this directory.
#
# IMPORTANT: In order to enable this must have a symlink in your jni directory to external/libwebp-0.3.0.
-SUPPORT_WEBP ?= false
+SUPPORT_WEBP := false
WEBP_LIBRARY_PATH := external/libwebp-0.3.0

-SUPPORT_WEBP ?= true
-WEBP_LIBRARY_PATH := external/libwebp-0.6.0
+SUPPORT_WEBP := true
+WEBP_LIBRARY_PATH := external/libwebp-1.0.0


# Build the library