Android.mk: add webpdemux target

Change-Id: I2fbbefbee59a96c52f5addcfc5bfe1216caad5cc
This commit is contained in:
James Zern 2015-02-24 18:38:58 -08:00
parent 8697a3bcc8
commit 21852a00a1

View File

@ -31,6 +31,9 @@ dec_srcs := \
src/dec/vp8l.c \
src/dec/webp.c \
demux_srcs := \
src/demux/demux.c \
dsp_dec_srcs := \
src/dsp/alpha_processing.c \
src/dsp/alpha_processing_mips_dsp_r2.c \
@ -174,6 +177,29 @@ else
include $(BUILD_STATIC_LIBRARY)
endif
################################################################################
# libwebpdemux
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(demux_srcs)
LOCAL_CFLAGS := $(WEBP_CFLAGS)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
# prefer arm over thumb mode for performance gains
LOCAL_ARM_MODE := arm
LOCAL_MODULE := webpdemux
ifeq ($(ENABLE_SHARED),1)
LOCAL_SHARED_LIBRARIES := webp
include $(BUILD_SHARED_LIBRARY)
else
LOCAL_STATIC_LIBRARIES := webp
include $(BUILD_STATIC_LIBRARY)
endif
################################################################################
include $(LOCAL_PATH)/examples/Android.mk