Skip to content

Commit

Permalink
Android: add path to "pnglibconf.h" for compilation with libpng, and …
Browse files Browse the repository at this point in the history
…path to "jconfig.h" for compilation with libjpeg.

(cherry picked from commit 382b972)
(cherry picked from commit eca1fec)
  • Loading branch information
1bsyl authored and sezero committed Dec 16, 2024
1 parent 297ab03 commit cf48503
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,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)
Expand All @@ -130,7 +131,8 @@ ifeq ($(SUPPORT_JXL),true)
endif

ifeq ($(SUPPORT_PNG),true)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(PNG_LIBRARY_PATH)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(PNG_LIBRARY_PATH) \
$(LOCAL_PATH)/$(PNG_LIBRARY_PATH)/android
LOCAL_CFLAGS += -DLOAD_PNG
LOCAL_STATIC_LIBRARIES += png
LOCAL_LDLIBS += -lz
Expand Down

0 comments on commit cf48503

Please sign in to comment.