summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2015-02-24 17:26:07 -0800
committerJames Zern <jzern@google.com>2015-03-03 17:53:48 -0800
commita6d485972589c8b362de87e7a54aee9077908bb3 (patch)
treec8c43e2fb174882b496ade8ce1399ee251ef8f7e
parent77544d5f5b4736f6708492b507bf982cbf2ada79 (diff)
downloadlibwebp-a6d485972589c8b362de87e7a54aee9077908bb3.tar.gz
Android.mk: split source lists per-directory
will allow reuse in future targets (cherry picked from commit 4a670491130af846950fb92d3f7eb3a4df3f0a3c) Conflicts: Android.mk Change-Id: Iededc19d954226e62f2d2383a2b80f268d613647
-rw-r--r--Android.mk43
1 files changed, 32 insertions, 11 deletions
diff --git a/Android.mk b/Android.mk
index 12fdd94b..83f41023 100644
--- a/Android.mk
+++ b/Android.mk
@@ -10,8 +10,6 @@ ifeq ($(APP_OPTIM),release)
endif
endif
-include $(CLEAR_VARS)
-
ifneq ($(findstring armeabi-v7a, $(TARGET_ARCH_ABI)),)
# Setting LOCAL_ARM_NEON will enable -mfpu=neon which may cause illegal
# instructions to be generated for armv7a code. Instead target the neon code
@@ -21,7 +19,7 @@ else
NEON := c
endif
-LOCAL_SRC_FILES := \
+dec_srcs := \
src/dec/alpha.c \
src/dec/buffer.c \
src/dec/frame.c \
@@ -32,6 +30,8 @@ LOCAL_SRC_FILES := \
src/dec/vp8.c \
src/dec/vp8l.c \
src/dec/webp.c \
+
+dsp_dec_srcs := \
src/dsp/alpha_processing.c \
src/dsp/alpha_processing_sse2.c \
src/dsp/cpu.c \
@@ -40,11 +40,6 @@ LOCAL_SRC_FILES := \
src/dsp/dec_mips32.c \
src/dsp/dec_neon.$(NEON) \
src/dsp/dec_sse2.c \
- src/dsp/enc.c \
- src/dsp/enc_avx2.c \
- src/dsp/enc_mips32.c \
- src/dsp/enc_neon.$(NEON) \
- src/dsp/enc_sse2.c \
src/dsp/lossless.c \
src/dsp/lossless_mips32.c \
src/dsp/lossless_neon.$(NEON) \
@@ -55,6 +50,15 @@ LOCAL_SRC_FILES := \
src/dsp/yuv.c \
src/dsp/yuv_mips32.c \
src/dsp/yuv_sse2.c \
+
+dsp_enc_srcs := \
+ src/dsp/enc.c \
+ src/dsp/enc_avx2.c \
+ src/dsp/enc_mips32.c \
+ src/dsp/enc_neon.$(NEON) \
+ src/dsp/enc_sse2.c \
+
+enc_srcs := \
src/enc/alpha.c \
src/enc/analysis.c \
src/enc/backward_references.c \
@@ -75,19 +79,34 @@ LOCAL_SRC_FILES := \
src/enc/tree.c \
src/enc/vp8l.c \
src/enc/webpenc.c \
+
+utils_dec_srcs := \
src/utils/bit_reader.c \
- src/utils/bit_writer.c \
src/utils/color_cache.c \
src/utils/filters.c \
src/utils/huffman.c \
- src/utils/huffman_encode.c \
- src/utils/quant_levels.c \
src/utils/quant_levels_dec.c \
src/utils/random.c \
src/utils/rescaler.c \
src/utils/thread.c \
src/utils/utils.c \
+utils_enc_srcs := \
+ src/utils/bit_writer.c \
+ src/utils/huffman_encode.c \
+ src/utils/quant_levels.c \
+
+################################################################################
+# libwebp
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := \
+ $(dec_srcs) \
+ $(dsp_dec_srcs) $(dsp_enc_srcs) \
+ $(enc_srcs) \
+ $(utils_dec_srcs) $(utils_enc_srcs) \
+
LOCAL_CFLAGS := $(WEBP_CFLAGS)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
@@ -104,6 +123,8 @@ else
include $(BUILD_STATIC_LIBRARY)
endif
+################################################################################
+
include $(LOCAL_PATH)/examples/Android.mk
$(call import-module,android/cpufeatures)