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.
  • Loading branch information
1bsyl authored and sezero committed Sep 5, 2024
1 parent 0901204 commit 382b972
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 @@ -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)
Expand All @@ -131,7 +132,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 382b972

Please sign in to comment.