1 LOCAL_PATH := $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_SRC_FILES = \ 5 vpx/src/vpx_codec.c \ 6 vpx/src/vpx_decoder.c \ 7 vpx/src/vpx_image.c \ 8 vpx_mem/vpx_mem.c \ 9 vpx_scale/generic/vpxscale.c \ 10 vpx_scale/generic/yv12config.c \ 11 vpx_scale/generic/yv12extend.c \ 12 vpx_scale/generic/scalesystemdependant.c \ 13 vpx_scale/generic/gen_scalers.c \ 14 vp8/common/alloccommon.c \ 15 vp8/common/blockd.c \ 16 vp8/common/debugmodes.c \ 17 vp8/common/entropy.c \ 18 vp8/common/entropymode.c \ 19 vp8/common/entropymv.c \ 20 vp8/common/extend.c \ 21 vp8/common/filter_c.c \ 22 vp8/common/findnearmv.c \ 23 vp8/common/generic/systemdependent.c \ 24 vp8/common/idctllm.c \ 25 vp8/common/invtrans.c \ 26 vp8/common/loopfilter.c \ 27 vp8/common/loopfilter_filters.c \ 28 vp8/common/mbpitch.c \ 29 vp8/common/modecont.c \ 30 vp8/common/modecontext.c \ 31 vp8/common/predictdc.c \ 32 vp8/common/quant_common.c \ 33 vp8/common/recon.c \ 34 vp8/common/reconinter.c \ 35 vp8/common/reconintra.c \ 36 vp8/common/reconintra4x4.c \ 37 vp8/common/setupintrarecon.c \ 38 vp8/common/swapyv12buffer.c \ 39 vp8/common/textblit.c \ 40 vp8/common/treecoder.c \ 41 vp8/common/postproc.c \ 42 vp8/vp8_cx_iface.c \ 43 vp8/vp8_dx_iface.c \ 44 vp8/decoder/dboolhuff.c \ 45 vp8/decoder/decodemv.c \ 46 vp8/decoder/decodframe.c \ 47 vp8/decoder/dequantize.c \ 48 vp8/decoder/detokenize.c \ 49 vp8/decoder/generic/dsystemdependent.c \ 50 vp8/decoder/onyxd_if.c \ 51 vp8/decoder/threading.c \ 52 vpx_config.c \ 53 vp8/decoder/arm/neon/idct_blk_neon.c 54 55 LOCAL_CFLAGS := \ 56 -DHAVE_CONFIG_H=vpx_config.h 57 58 LOCAL_MODULE := libvpx 59 60 ifeq ($(ARCH_ARM_HAVE_NEON),true) 61 62 LOCAL_SRC_FILES += \ 63 vp8/common/arm/loopfilter_arm.c \ 64 vp8/decoder/arm/dequantize_arm.c \ 65 66 LOCAL_CFLAGS += -D__ARM_HAVE_NEON 67 68 LOCAL_MODULE_CLASS := STATIC_LIBRARIES 69 intermediates := $(call local-intermediates-dir) 70 71 ASM_FILES = \ 72 vp8/common/arm/neon/bilinearpredict16x16_neon.s \ 73 vp8/common/arm/neon/bilinearpredict4x4_neon.s \ 74 vp8/common/arm/neon/bilinearpredict8x4_neon.s \ 75 vp8/common/arm/neon/bilinearpredict8x8_neon.s \ 76 vp8/common/arm/neon/buildintrapredictorsmby_neon.s \ 77 vp8/common/arm/neon/copymem16x16_neon.s \ 78 vp8/common/arm/neon/copymem8x4_neon.s \ 79 vp8/common/arm/neon/copymem8x8_neon.s \ 80 vp8/common/arm/neon/iwalsh_neon.s \ 81 vp8/common/arm/neon/loopfilterhorizontaledge_uv_neon.s \ 82 vp8/common/arm/neon/loopfilterhorizontaledge_y_neon.s \ 83 vp8/common/arm/neon/loopfiltersimplehorizontaledge_neon.s \ 84 vp8/common/arm/neon/loopfiltersimpleverticaledge_neon.s \ 85 vp8/common/arm/neon/loopfilterverticaledge_uv_neon.s \ 86 vp8/common/arm/neon/loopfilterverticaledge_y_neon.s \ 87 vp8/common/arm/neon/mbloopfilterhorizontaledge_uv_neon.s \ 88 vp8/common/arm/neon/mbloopfilterhorizontaledge_y_neon.s \ 89 vp8/common/arm/neon/mbloopfilterverticaledge_uv_neon.s \ 90 vp8/common/arm/neon/mbloopfilterverticaledge_y_neon.s \ 91 vp8/common/arm/neon/recon16x16mb_neon.s \ 92 vp8/common/arm/neon/recon2b_neon.s \ 93 vp8/common/arm/neon/recon4b_neon.s \ 94 vp8/common/arm/neon/reconb_neon.s \ 95 vp8/common/arm/neon/save_neon_reg.s \ 96 vp8/common/arm/neon/shortidct4x4llm_1_neon.s \ 97 vp8/common/arm/neon/shortidct4x4llm_neon.s \ 98 vp8/common/arm/neon/sixtappredict16x16_neon.s \ 99 vp8/common/arm/neon/sixtappredict4x4_neon.s \ 100 vp8/common/arm/neon/sixtappredict8x4_neon.s \ 101 vp8/common/arm/neon/sixtappredict8x8_neon.s \ 102 vp8/common/arm/neon/dc_only_idct_add_neon.s \ 103 vp8/decoder/arm/neon/dequantizeb_neon.s \ 104 vp8/decoder/arm/neon/dequant_dc_idct_neon.s \ 105 vp8/decoder/arm/neon/dequant_idct_neon.s \ 106 107 # All the assembly sources must be converted from ADS to GAS compatible format 108 VPX_GEN := $(addprefix $(intermediates)/, $(ASM_FILES)) 109 $(VPX_GEN) : PRIVATE_PATH := $(LOCAL_PATH) 110 $(VPX_GEN) : PRIVATE_CUSTOM_TOOL = cat $< | perl external/libvpx/build/make/ads2gas.pl > $@ 111 $(VPX_GEN) : $(intermediates)/%.s : $(LOCAL_PATH)/%.asm 112 $(transform-generated-source) 113 114 LOCAL_GENERATED_SOURCES += $(VPX_GEN) 115 116 else 117 118 LOCAL_SRC_FILES += vp8/decoder/idct_blk.c 119 120 endif 121 122 LOCAL_C_INCLUDES := \ 123 $(LOCAL_PATH)/vpx_ports \ 124 $(LOCAL_PATH)/vp8/common \ 125 $(LOCAL_PATH)/vp8/encoder \ 126 $(LOCAL_PATH)/vp8/decoder \ 127 $(LOCAL_PATH)/vp8 \ 128 $(LOCAL_PATH)/vpx_codec 129 130 include $(BUILD_STATIC_LIBRARY) 131