mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-04 16:06:49 +02:00
Android.mk: add webpdecoder{,_static} targets
webpdecoder_static is reused to create libwebpdecoder.so and libwebp.{a,so} (cherry picked from commit 8697a3bcc80bad6ad8e2656a4698b466ba190216) Change-Id: I940293cb755040c0ea45dc13f22624de8f355867
This commit is contained in:
parent
a6d4859725
commit
a98757650a
39
Android.mk
39
Android.mk
@ -97,15 +97,14 @@ utils_enc_srcs := \
|
|||||||
src/utils/quant_levels.c \
|
src/utils/quant_levels.c \
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# libwebp
|
# libwebpdecoder
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
$(dec_srcs) \
|
$(dec_srcs) \
|
||||||
$(dsp_dec_srcs) $(dsp_enc_srcs) \
|
$(dsp_dec_srcs) \
|
||||||
$(enc_srcs) \
|
$(utils_dec_srcs) \
|
||||||
$(utils_dec_srcs) $(utils_enc_srcs) \
|
|
||||||
|
|
||||||
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
||||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
||||||
@ -115,6 +114,38 @@ LOCAL_ARM_MODE := arm
|
|||||||
|
|
||||||
LOCAL_STATIC_LIBRARIES := cpufeatures
|
LOCAL_STATIC_LIBRARIES := cpufeatures
|
||||||
|
|
||||||
|
LOCAL_MODULE := webpdecoder_static
|
||||||
|
|
||||||
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
|
ifeq ($(ENABLE_SHARED),1)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_WHOLE_STATIC_LIBRARIES := webpdecoder_static
|
||||||
|
|
||||||
|
LOCAL_MODULE := webpdecoder
|
||||||
|
|
||||||
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
endif # ENABLE_SHARED=1
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# libwebp
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
$(dsp_enc_srcs) \
|
||||||
|
$(enc_srcs) \
|
||||||
|
$(utils_enc_srcs) \
|
||||||
|
|
||||||
|
LOCAL_CFLAGS := $(WEBP_CFLAGS)
|
||||||
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
||||||
|
|
||||||
|
# prefer arm over thumb mode for performance gains
|
||||||
|
LOCAL_ARM_MODE := arm
|
||||||
|
|
||||||
|
LOCAL_WHOLE_STATIC_LIBRARIES := webpdecoder_static
|
||||||
|
|
||||||
LOCAL_MODULE := webp
|
LOCAL_MODULE := webp
|
||||||
|
|
||||||
ifeq ($(ENABLE_SHARED),1)
|
ifeq ($(ENABLE_SHARED),1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user