Skip to content

Commit

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

(cherry picked from commit 382b972)
  • Loading branch information
1bsyl authored and sezero committed Sep 5, 2024
1 parent 1cdf374 commit eca1fec
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 eca1fec

Please sign in to comment.