From 75619881e6e88653861d4d4132aed775333b8b97 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 (cherry picked from commit 21852a00a1b659378480a65be9836e2c6ff564be) Change-Id: I2fbbefbee59a96c52f5addcfc5bfe1216caad5cc --- Android.mk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Android.mk b/Android.mk index ae03c2d1..898a2bd9 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_sse2.c \ @@ -154,6 +157,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