libsdl-org / SDL_image

Image decoding for many popular formats for Simple Directmedia Layer.
zlib License
572 stars 186 forks source link

Android: add path to "pnglibconf.h" for compilation with libpng #466

Closed 1bsyl closed 2 months ago

1bsyl commented 2 months ago

Android: add path to "pnglibconf.h" for compilation with libpng

sezero commented 2 months ago

You want to do the same for jpg too, like:

diff --git a/Android.mk b/Android.mk
index f63afcd..d0a78f9 100644
--- a/Android.mk
+++ b/Android.mk
@@ -113,7 +113,8 @@ ifeq ($(SUPPORT_AVIF),true)
 endif

 ifeq ($(SUPPORT_JPG),true)
-    LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(JPG_LIBRARY_PATH)
+    LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(JPG_LIBRARY_PATH)             \
+                        $(LOCAL_PATH)/$(JPG_LIBRARY_PATH)/android
     LOCAL_CFLAGS += -DLOAD_JPG
     LOCAL_STATIC_LIBRARIES += jpeg
 ifeq ($(SUPPORT_SAVE_JPG),true)

And these should go into SDL2 branch, too.

1bsyl commented 2 months ago

thanks @sezero done !

sezero commented 2 months ago

Just cherry picked to SDL2 branch too.