mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
Android.mk: split source lists per-directory
will allow reuse in future targets Change-Id: Iededc19d954226e62f2d2383a2b80f268d613647
This commit is contained in:
parent
b5e79422d5
commit
4a67049113
53
Android.mk
53
Android.mk
@ -10,8 +10,6 @@ ifeq ($(APP_OPTIM),release)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
|
|
||||||
ifneq ($(findstring armeabi-v7a, $(TARGET_ARCH_ABI)),)
|
ifneq ($(findstring armeabi-v7a, $(TARGET_ARCH_ABI)),)
|
||||||
# Setting LOCAL_ARM_NEON will enable -mfpu=neon which may cause illegal
|
# Setting LOCAL_ARM_NEON will enable -mfpu=neon which may cause illegal
|
||||||
# instructions to be generated for armv7a code. Instead target the neon code
|
# instructions to be generated for armv7a code. Instead target the neon code
|
||||||
@ -21,7 +19,7 @@ else
|
|||||||
NEON := c
|
NEON := c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
dec_srcs := \
|
||||||
src/dec/alpha.c \
|
src/dec/alpha.c \
|
||||||
src/dec/buffer.c \
|
src/dec/buffer.c \
|
||||||
src/dec/frame.c \
|
src/dec/frame.c \
|
||||||
@ -32,16 +30,14 @@ LOCAL_SRC_FILES := \
|
|||||||
src/dec/vp8.c \
|
src/dec/vp8.c \
|
||||||
src/dec/vp8l.c \
|
src/dec/vp8l.c \
|
||||||
src/dec/webp.c \
|
src/dec/webp.c \
|
||||||
|
|
||||||
|
dsp_dec_srcs := \
|
||||||
src/dsp/alpha_processing.c \
|
src/dsp/alpha_processing.c \
|
||||||
src/dsp/alpha_processing_mips_dsp_r2.c \
|
src/dsp/alpha_processing_mips_dsp_r2.c \
|
||||||
src/dsp/alpha_processing_sse2.c \
|
src/dsp/alpha_processing_sse2.c \
|
||||||
src/dsp/argb.c \
|
src/dsp/argb.c \
|
||||||
src/dsp/argb_mips_dsp_r2.c \
|
src/dsp/argb_mips_dsp_r2.c \
|
||||||
src/dsp/argb_sse2.c \
|
src/dsp/argb_sse2.c \
|
||||||
src/dsp/cost.c \
|
|
||||||
src/dsp/cost_mips32.c \
|
|
||||||
src/dsp/cost_mips_dsp_r2.c \
|
|
||||||
src/dsp/cost_sse2.c \
|
|
||||||
src/dsp/cpu.c \
|
src/dsp/cpu.c \
|
||||||
src/dsp/dec.c \
|
src/dsp/dec.c \
|
||||||
src/dsp/dec_clip_tables.c \
|
src/dsp/dec_clip_tables.c \
|
||||||
@ -49,12 +45,6 @@ LOCAL_SRC_FILES := \
|
|||||||
src/dsp/dec_mips_dsp_r2.c \
|
src/dsp/dec_mips_dsp_r2.c \
|
||||||
src/dsp/dec_neon.$(NEON) \
|
src/dsp/dec_neon.$(NEON) \
|
||||||
src/dsp/dec_sse2.c \
|
src/dsp/dec_sse2.c \
|
||||||
src/dsp/enc.c \
|
|
||||||
src/dsp/enc_avx2.c \
|
|
||||||
src/dsp/enc_mips32.c \
|
|
||||||
src/dsp/enc_mips_dsp_r2.c \
|
|
||||||
src/dsp/enc_neon.$(NEON) \
|
|
||||||
src/dsp/enc_sse2.c \
|
|
||||||
src/dsp/filters.c \
|
src/dsp/filters.c \
|
||||||
src/dsp/filters_mips_dsp_r2.c \
|
src/dsp/filters_mips_dsp_r2.c \
|
||||||
src/dsp/filters_sse2.c \
|
src/dsp/filters_sse2.c \
|
||||||
@ -74,6 +64,20 @@ LOCAL_SRC_FILES := \
|
|||||||
src/dsp/yuv_mips32.c \
|
src/dsp/yuv_mips32.c \
|
||||||
src/dsp/yuv_mips_dsp_r2.c \
|
src/dsp/yuv_mips_dsp_r2.c \
|
||||||
src/dsp/yuv_sse2.c \
|
src/dsp/yuv_sse2.c \
|
||||||
|
|
||||||
|
dsp_enc_srcs := \
|
||||||
|
src/dsp/cost.c \
|
||||||
|
src/dsp/cost_mips32.c \
|
||||||
|
src/dsp/cost_mips_dsp_r2.c \
|
||||||
|
src/dsp/cost_sse2.c \
|
||||||
|
src/dsp/enc.c \
|
||||||
|
src/dsp/enc_avx2.c \
|
||||||
|
src/dsp/enc_mips32.c \
|
||||||
|
src/dsp/enc_mips_dsp_r2.c \
|
||||||
|
src/dsp/enc_neon.$(NEON) \
|
||||||
|
src/dsp/enc_sse2.c \
|
||||||
|
|
||||||
|
enc_srcs := \
|
||||||
src/enc/alpha.c \
|
src/enc/alpha.c \
|
||||||
src/enc/analysis.c \
|
src/enc/analysis.c \
|
||||||
src/enc/backward_references.c \
|
src/enc/backward_references.c \
|
||||||
@ -95,19 +99,34 @@ LOCAL_SRC_FILES := \
|
|||||||
src/enc/tree.c \
|
src/enc/tree.c \
|
||||||
src/enc/vp8l.c \
|
src/enc/vp8l.c \
|
||||||
src/enc/webpenc.c \
|
src/enc/webpenc.c \
|
||||||
|
|
||||||
|
utils_dec_srcs := \
|
||||||
src/utils/bit_reader.c \
|
src/utils/bit_reader.c \
|
||||||
src/utils/bit_writer.c \
|
|
||||||
src/utils/color_cache.c \
|
src/utils/color_cache.c \
|
||||||
src/utils/filters.c \
|
src/utils/filters.c \
|
||||||
src/utils/huffman.c \
|
src/utils/huffman.c \
|
||||||
src/utils/huffman_encode.c \
|
|
||||||
src/utils/quant_levels.c \
|
|
||||||
src/utils/quant_levels_dec.c \
|
src/utils/quant_levels_dec.c \
|
||||||
src/utils/random.c \
|
src/utils/random.c \
|
||||||
src/utils/rescaler.c \
|
src/utils/rescaler.c \
|
||||||
src/utils/thread.c \
|
src/utils/thread.c \
|
||||||
src/utils/utils.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_CFLAGS := $(WEBP_CFLAGS)
|
||||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
||||||
|
|
||||||
@ -124,6 +143,8 @@ else
|
|||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
|
||||||
include $(LOCAL_PATH)/examples/Android.mk
|
include $(LOCAL_PATH)/examples/Android.mk
|
||||||
|
|
||||||
$(call import-module,android/cpufeatures)
|
$(call import-module,android/cpufeatures)
|
||||||
|
Loading…
Reference in New Issue
Block a user