Skip to content

Commit

Permalink
Android: update when compiling with png support
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Nov 3, 2019
1 parent 0bc114b commit 766999a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Android.mk
Expand Up @@ -9,7 +9,6 @@ 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
PNG_LIBRARY_PATH := external/libpng-1.6.37

# Enable this if you want to support loading WebP images
# The library path should be a relative path to this directory.
Expand All @@ -22,11 +21,6 @@ ifeq ($(SUPPORT_JPG),true)
include $(SDL_IMAGE_LOCAL_PATH)/$(JPG_LIBRARY_PATH)/Android.mk
endif

# Build the library
ifeq ($(SUPPORT_PNG),true)
include $(SDL_IMAGE_LOCAL_PATH)/$(PNG_LIBRARY_PATH)/Android.mk
endif

# Build the library
ifeq ($(SUPPORT_WEBP),true)
include $(SDL_IMAGE_LOCAL_PATH)/$(WEBP_LIBRARY_PATH)/Android.mk
Expand Down Expand Up @@ -72,10 +66,7 @@ ifeq ($(SUPPORT_JPG),true)
endif

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

ifeq ($(SUPPORT_WEBP),true)
Expand Down

0 comments on commit 766999a

Please sign in to comment.