From 53c16ff047f73a3b5fded1a459b746b1996ff9b1 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 24 Feb 2015 18:49:31 -0800 Subject: [PATCH] Android.mk: add webpmux target Change-Id: I60fc898fd804e23f08d760694192c5d04adcae91 --- Android.mk | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Android.mk b/Android.mk index 03d29ba6..6872060e 100644 --- a/Android.mk +++ b/Android.mk @@ -103,6 +103,12 @@ enc_srcs := \ src/enc/vp8l.c \ src/enc/webpenc.c \ +mux_srcs := \ + src/mux/anim_encode.c \ + src/mux/muxedit.c \ + src/mux/muxinternal.c \ + src/mux/muxread.c \ + utils_dec_srcs := \ src/utils/bit_reader.c \ src/utils/color_cache.c \ @@ -200,6 +206,29 @@ else include $(BUILD_STATIC_LIBRARY) endif +################################################################################ +# libwebpmux + +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(mux_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 := webpmux + +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