2010-09-30 15:34:38 +02:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
2012-04-12 21:00:43 +02:00
|
|
|
src/dec/alpha.c \
|
|
|
|
src/dec/buffer.c \
|
|
|
|
src/dec/frame.c \
|
|
|
|
src/dec/idec.c \
|
|
|
|
src/dec/io.c \
|
|
|
|
src/dec/layer.c \
|
|
|
|
src/dec/quant.c \
|
|
|
|
src/dec/tree.c \
|
|
|
|
src/dec/vp8.c \
|
|
|
|
src/dec/vp8l.c \
|
|
|
|
src/dec/webp.c \
|
|
|
|
src/dsp/cpu.c \
|
|
|
|
src/dsp/dec.c \
|
2012-04-20 21:07:03 +02:00
|
|
|
src/dsp/dec_sse2.c \
|
2012-04-12 21:00:43 +02:00
|
|
|
src/dsp/enc.c \
|
2012-04-20 21:07:03 +02:00
|
|
|
src/dsp/enc_sse2.c \
|
2012-04-12 21:00:43 +02:00
|
|
|
src/dsp/lossless.c \
|
|
|
|
src/dsp/upsampling.c \
|
2012-04-20 21:07:03 +02:00
|
|
|
src/dsp/upsampling_sse2.c \
|
2012-04-12 21:00:43 +02:00
|
|
|
src/dsp/yuv.c \
|
|
|
|
src/enc/alpha.c \
|
|
|
|
src/enc/analysis.c \
|
|
|
|
src/enc/config.c \
|
|
|
|
src/enc/cost.c \
|
|
|
|
src/enc/filter.c \
|
|
|
|
src/enc/frame.c \
|
|
|
|
src/enc/iterator.c \
|
|
|
|
src/enc/layer.c \
|
|
|
|
src/enc/picture.c \
|
|
|
|
src/enc/quant.c \
|
|
|
|
src/enc/syntax.c \
|
|
|
|
src/enc/tree.c \
|
|
|
|
src/enc/webpenc.c \
|
2012-06-22 03:33:09 +02:00
|
|
|
src/mux/demux.c \
|
2012-04-12 21:00:43 +02:00
|
|
|
src/mux/muxedit.c \
|
|
|
|
src/mux/muxinternal.c \
|
|
|
|
src/mux/muxread.c \
|
|
|
|
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/quant_levels.c \
|
|
|
|
src/utils/rescaler.c \
|
|
|
|
src/utils/thread.c \
|
2010-09-30 15:34:38 +02:00
|
|
|
|
2012-01-05 03:38:07 +01:00
|
|
|
LOCAL_CFLAGS := -Wall -DANDROID -DHAVE_MALLOC_H -DHAVE_PTHREAD \
|
|
|
|
-DNOT_HAVE_LOG2 -DWEBP_USE_THREAD \
|
2010-09-30 15:34:38 +02:00
|
|
|
-finline-functions -frename-registers -ffast-math \
|
2011-02-19 08:33:46 +01:00
|
|
|
-s -fomit-frame-pointer -Isrc/webp
|
2010-09-30 15:34:38 +02:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src
|
|
|
|
|
2012-04-20 21:07:03 +02:00
|
|
|
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
2012-05-08 22:22:24 +02:00
|
|
|
# Setting LOCAL_ARM_NEON will enable -mfpu=neon which may cause illegal
|
|
|
|
# instructions to be generated for armv7a code. Instead target the neon code
|
|
|
|
# specifically.
|
|
|
|
LOCAL_SRC_FILES += src/dsp/dec_neon.c.neon
|
2012-04-20 21:07:03 +02:00
|
|
|
endif
|
2012-05-04 21:34:53 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := cpufeatures
|
2012-04-20 21:07:03 +02:00
|
|
|
|
2011-02-19 08:33:46 +01:00
|
|
|
LOCAL_MODULE:= webp
|
2010-09-30 15:34:38 +02:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-05-04 21:34:53 +02:00
|
|
|
|
|
|
|
$(call import-module,android/cpufeatures)
|