From 21852a00a1b659378480a65be9836e2c6ff564be Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 24 Feb 2015 18:38:58 -0800 Subject: [PATCH] Android.mk: add webpdemux target Change-Id: I2fbbefbee59a96c52f5addcfc5bfe1216caad5cc --- Android.mk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Android.mk b/Android.mk index bafab597..03d29ba6 100644 --- a/Android.mk +++ b/Android.mk @@ -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