-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAndroid.mk
More file actions
167 lines (143 loc) · 5.23 KB
/
Android.mk
File metadata and controls
167 lines (143 loc) · 5.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES = \
mkvparser/mkvparser.cpp \
vpx/src/vpx_codec.c \
vpx/src/vpx_decoder.c \
vpx/src/vpx_image.c \
vpx_mem/vpx_mem.c \
vpx_scale/generic/vpxscale.c \
vpx_scale/generic/yv12config.c \
vpx_scale/generic/yv12extend.c \
vpx_scale/generic/gen_scalers.c \
vpx_scale/generic/scalesystemdependent.c \
vp8/common/alloccommon.c \
vp8/common/arm/arm_systemdependent.c \
vp8/common/arm/reconintra_arm.c \
vp8/common/blockd.c \
vp8/common/debugmodes.c \
vp8/common/entropy.c \
vp8/common/entropymode.c \
vp8/common/entropymv.c \
vp8/common/extend.c \
vp8/common/filter.c \
vp8/common/findnearmv.c \
vp8/common/generic/systemdependent.c \
vp8/common/idctllm.c \
vp8/common/invtrans.c \
vp8/common/loopfilter.c \
vp8/common/loopfilter_filters.c \
vp8/common/mbpitch.c \
vp8/common/modecont.c \
vp8/common/modecontext.c \
vp8/common/quant_common.c \
vp8/common/recon.c \
vp8/common/reconinter.c \
vp8/common/reconintra.c \
vp8/common/reconintra4x4.c \
vp8/common/setupintrarecon.c \
vp8/common/swapyv12buffer.c \
vp8/common/textblit.c \
vp8/common/treecoder.c \
vp8/common/postproc.c \
vp8/vp8_cx_iface.c \
vp8/vp8_dx_iface.c \
vp8/decoder/arm/arm_dsystemdependent.c \
vp8/decoder/dboolhuff.c \
vp8/decoder/decodemv.c \
vp8/decoder/decodframe.c \
vp8/decoder/dequantize.c \
vp8/decoder/detokenize.c \
vp8/decoder/generic/dsystemdependent.c \
vp8/decoder/onyxd_if.c \
vp8/decoder/reconintra_mt.c \
vp8/decoder/threading.c \
vpx_config.c \
vp8/decoder/arm/neon/idct_blk_neon.c
LOCAL_CFLAGS := \
-DHAVE_CONFIG_H=vpx_config.h
LOCAL_MODULE := libvpx
ifeq ($(TARGET_ARCH),arm)
LOCAL_MODULE_CLASS := STATIC_LIBRARIES
intermediates := $(call local-intermediates-dir)
LOCAL_SRC_FILES += \
vp8/common/arm/loopfilter_arm.c \
vp8/decoder/arm/dequantize_arm.c \
ifeq ($(ARCH_ARM_HAVE_NEON),true)
LOCAL_CFLAGS += -D__ARM_HAVE_NEON
ASM_FILES = \
vp8/common/arm/neon/bilinearpredict16x16_neon.s \
vp8/common/arm/neon/bilinearpredict4x4_neon.s \
vp8/common/arm/neon/bilinearpredict8x4_neon.s \
vp8/common/arm/neon/bilinearpredict8x8_neon.s \
vp8/common/arm/neon/buildintrapredictorsmby_neon.s \
vp8/common/arm/neon/copymem16x16_neon.s \
vp8/common/arm/neon/copymem8x4_neon.s \
vp8/common/arm/neon/copymem8x8_neon.s \
vp8/common/arm/neon/iwalsh_neon.s \
vp8/common/arm/neon/loopfiltersimplehorizontaledge_neon.s \
vp8/common/arm/neon/loopfiltersimpleverticaledge_neon.s \
vp8/common/arm/neon/recon16x16mb_neon.s \
vp8/common/arm/neon/recon2b_neon.s \
vp8/common/arm/neon/recon4b_neon.s \
vp8/common/arm/neon/reconb_neon.s \
vp8/common/arm/neon/save_neon_reg.s \
vp8/common/arm/neon/shortidct4x4llm_1_neon.s \
vp8/common/arm/neon/shortidct4x4llm_neon.s \
vp8/common/arm/neon/sixtappredict16x16_neon.s \
vp8/common/arm/neon/sixtappredict4x4_neon.s \
vp8/common/arm/neon/sixtappredict8x4_neon.s \
vp8/common/arm/neon/sixtappredict8x8_neon.s \
vp8/common/arm/neon/dc_only_idct_add_neon.s \
vp8/decoder/arm/neon/dequantizeb_neon.s \
vp8/decoder/arm/neon/dequant_idct_neon.s \
vp8/decoder/arm/neon/idct_dequant_0_2x_neon.s \
vp8/decoder/arm/neon/idct_dequant_dc_0_2x_neon.s \
vp8/decoder/arm/neon/idct_dequant_dc_full_2x_neon.s \
vp8/decoder/arm/neon/idct_dequant_full_2x_neon.s \
vp8/common/arm/neon/loopfilter_neon.s \
vp8/common/arm/neon/mbloopfilter_neon.s \
else ifeq ($(ARCH_ARM_HAVE_ARMV7A),true)
# Really, we only need ARMV6 support but I could not find an environment
# variable to query that...
LOCAL_CFLAGS += -D__ARM_HAVE_ARMV6
ASM_FILES = \
vp8/common/arm/armv6/bilinearfilter_v6.s \
vp8/common/arm/armv6/copymem8x4_v6.s \
vp8/common/arm/armv6/copymem8x8_v6.s \
vp8/common/arm/armv6/copymem16x16_v6.s \
vp8/common/arm/armv6/dc_only_idct_add_v6.s \
vp8/common/arm/armv6/filter_v6.s \
vp8/common/arm/armv6/iwalsh_v6.s \
vp8/common/arm/armv6/loopfilter_v6.s \
vp8/common/arm/armv6/recon_v6.s \
vp8/common/arm/armv6/simpleloopfilter_v6.s \
vp8/common/arm/armv6/sixtappredict8x4_v6.s \
vp8/decoder/arm/armv6/dequant_dc_idct_v6.s \
vp8/decoder/arm/armv6/dequant_idct_v6.s \
vp8/decoder/arm/armv6/dequantize_v6.s \
LOCAL_SRC_FILES += \
vp8/common/arm/bilinearfilter_arm.c \
vp8/common/arm/filter_arm.c \
vp8/decoder/arm/armv6/idct_blk_v6.c \
else
LOCAL_SRC_FILES += vp8/decoder/idct_blk.c
endif
# All the assembly sources must be converted from ADS to GAS compatible format
VPX_GEN := $(addprefix $(intermediates)/, $(ASM_FILES))
$(VPX_GEN) : PRIVATE_PATH := $(LOCAL_PATH)
$(VPX_GEN) : PRIVATE_CUSTOM_TOOL = cat $< | perl external/libvpx/build/make/ads2gas.pl > $@
$(VPX_GEN) : $(intermediates)/%.s : $(LOCAL_PATH)/%.asm
$(transform-generated-source)
LOCAL_GENERATED_SOURCES += $(VPX_GEN)
else # non-ARM
LOCAL_SRC_FILES += vp8/decoder/idct_blk.c
endif
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/vpx_ports \
$(LOCAL_PATH)/vp8/common \
$(LOCAL_PATH)/vp8/encoder \
$(LOCAL_PATH)/vp8/decoder \
$(LOCAL_PATH)/vp8 \
$(LOCAL_PATH)/vpx_codec
include $(BUILD_STATIC_LIBRARY)