blob: ec57ba74d3313f4dff5c2c41a9be0b45e4ae960b [file] [log] [blame]
James Zerna1873002018-01-11 19:59:28 -08001// Copyright 2010 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15//##############################################
16
Colin Crosse2f92ce2016-12-01 17:50:10 -080017cc_library_static {
18 name: "webp-headers",
Jerome Gaillard96b0f622018-07-10 16:09:11 +010019 host_supported: true,
Colin Crosse2f92ce2016-12-01 17:50:10 -080020 export_include_dirs: ["include"],
21 sdk_version: "9",
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +000022 target: {
23 windows: {
24 enabled: true,
25 },
26 },
Colin Crosse2f92ce2016-12-01 17:50:10 -080027}
28
James Zerna1873002018-01-11 19:59:28 -080029//##############################################
30
31cc_library_static {
32 name: "libwebp-encode",
Jerome Gaillard96b0f622018-07-10 16:09:11 +010033 host_supported: true,
James Zerna1873002018-01-11 19:59:28 -080034 srcs: [
35 "src/dsp/alpha_processing.c",
36 "src/dsp/alpha_processing_mips_dsp_r2.c",
37 "src/dsp/alpha_processing_neon.c",
38 "src/dsp/alpha_processing_sse2.c",
39 "src/dsp/alpha_processing_sse41.c",
40 "src/dsp/cost.c",
41 "src/dsp/cost_mips32.c",
42 "src/dsp/cost_mips_dsp_r2.c",
James Zerncf0b0ef2019-01-15 18:26:18 -080043 "src/dsp/cost_neon.c",
James Zerna1873002018-01-11 19:59:28 -080044 "src/dsp/cost_sse2.c",
45 "src/dsp/cpu.c",
46 "src/dsp/enc.c",
James Zerna1873002018-01-11 19:59:28 -080047 "src/dsp/enc_mips32.c",
48 "src/dsp/enc_mips_dsp_r2.c",
49 "src/dsp/enc_msa.c",
50 "src/dsp/enc_neon.c",
51 "src/dsp/enc_sse2.c",
52 "src/dsp/enc_sse41.c",
53 "src/dsp/lossless_enc.c",
54 "src/dsp/lossless_enc_mips32.c",
55 "src/dsp/lossless_enc_mips_dsp_r2.c",
56 "src/dsp/lossless_enc_msa.c",
57 "src/dsp/lossless_enc_neon.c",
58 "src/dsp/lossless_enc_sse2.c",
59 "src/dsp/lossless_enc_sse41.c",
60 "src/dsp/ssim.c",
61 "src/dsp/ssim_sse2.c",
62 "src/enc/alpha_enc.c",
63 "src/enc/analysis_enc.c",
64 "src/enc/backward_references_cost_enc.c",
65 "src/enc/backward_references_enc.c",
66 "src/enc/config_enc.c",
67 "src/enc/cost_enc.c",
James Zerna1873002018-01-11 19:59:28 -080068 "src/enc/filter_enc.c",
69 "src/enc/frame_enc.c",
70 "src/enc/histogram_enc.c",
71 "src/enc/iterator_enc.c",
72 "src/enc/near_lossless_enc.c",
73 "src/enc/picture_csp_enc.c",
74 "src/enc/picture_enc.c",
75 "src/enc/picture_psnr_enc.c",
76 "src/enc/picture_rescale_enc.c",
77 "src/enc/picture_tools_enc.c",
78 "src/enc/predictor_enc.c",
79 "src/enc/quant_enc.c",
80 "src/enc/syntax_enc.c",
81 "src/enc/token_enc.c",
82 "src/enc/tree_enc.c",
83 "src/enc/vp8l_enc.c",
84 "src/enc/webp_enc.c",
85 "src/mux/anim_encode.c",
86 "src/mux/muxedit.c",
87 "src/mux/muxinternal.c",
88 "src/mux/muxread.c",
89 "src/utils/bit_reader_utils.c",
90 "src/utils/bit_writer_utils.c",
91 "src/utils/color_cache_utils.c",
92 "src/utils/filters_utils.c",
93 "src/utils/huffman_encode_utils.c",
94 "src/utils/huffman_utils.c",
95 "src/utils/quant_levels_utils.c",
96 "src/utils/random_utils.c",
97 "src/utils/rescaler_utils.c",
98 "src/utils/thread_utils.c",
99 "src/utils/utils.c",
100 ],
101
102 arch: {
103 arm: {
104 instruction_set: "arm",
105 },
106 },
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +0000107
James Zerna1873002018-01-11 19:59:28 -0800108 cflags: [
109 "-O2",
110 "-DANDROID",
111 "-DWEBP_SWAP_16BIT_CSP",
112 "-Wall",
113 "-Werror",
114 ],
115
116 local_include_dirs: ["."],
117 static_libs: ["webp-headers"],
118 export_static_lib_headers: ["webp-headers"],
Derek Sollenberger51e02292018-01-31 13:18:10 -0500119
120 sdk_version: "9",
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +0000121
122 target: {
123 windows: {
124 enabled: true,
125 },
126 },
James Zerna1873002018-01-11 19:59:28 -0800127}
128
129//##############################################
130
131cc_library_static {
132 name: "libwebp-decode",
Jerome Gaillard96b0f622018-07-10 16:09:11 +0100133 host_supported: true,
James Zerna1873002018-01-11 19:59:28 -0800134 srcs: [
135 "src/dec/alpha_dec.c",
136 "src/dec/buffer_dec.c",
137 "src/dec/frame_dec.c",
138 "src/dec/idec_dec.c",
139 "src/dec/io_dec.c",
140 "src/dec/quant_dec.c",
141 "src/dec/tree_dec.c",
142 "src/dec/vp8_dec.c",
143 "src/dec/vp8l_dec.c",
144 "src/dec/webp_dec.c",
145 "src/demux/demux.c",
146 "src/dsp/alpha_processing.c",
147 "src/dsp/alpha_processing_mips_dsp_r2.c",
148 "src/dsp/alpha_processing_sse2.c",
149 "src/dsp/alpha_processing_sse41.c",
150 "src/dsp/cpu.c",
151 "src/dsp/dec.c",
152 "src/dsp/dec_clip_tables.c",
153 "src/dsp/dec_mips32.c",
154 "src/dsp/dec_mips_dsp_r2.c",
155 "src/dsp/dec_msa.c",
156 "src/dsp/dec_neon.c",
157 "src/dsp/dec_sse2.c",
158 "src/dsp/dec_sse41.c",
159 "src/dsp/filters.c",
160 "src/dsp/filters_mips_dsp_r2.c",
161 "src/dsp/filters_msa.c",
162 "src/dsp/filters_neon.c",
163 "src/dsp/filters_sse2.c",
164 "src/dsp/lossless.c",
165 "src/dsp/lossless_mips_dsp_r2.c",
166 "src/dsp/lossless_msa.c",
167 "src/dsp/lossless_neon.c",
168 "src/dsp/lossless_sse2.c",
169 "src/dsp/rescaler.c",
170 "src/dsp/rescaler_mips32.c",
171 "src/dsp/rescaler_mips_dsp_r2.c",
172 "src/dsp/rescaler_msa.c",
173 "src/dsp/rescaler_neon.c",
174 "src/dsp/rescaler_sse2.c",
175 "src/dsp/upsampling.c",
176 "src/dsp/upsampling_mips_dsp_r2.c",
177 "src/dsp/upsampling_msa.c",
178 "src/dsp/upsampling_neon.c",
179 "src/dsp/upsampling_sse2.c",
James Zern320de282018-04-18 20:57:56 -0700180 "src/dsp/upsampling_sse41.c",
James Zerna1873002018-01-11 19:59:28 -0800181 "src/dsp/yuv.c",
182 "src/dsp/yuv_mips32.c",
183 "src/dsp/yuv_mips_dsp_r2.c",
184 "src/dsp/yuv_neon.c",
185 "src/dsp/yuv_sse2.c",
James Zern320de282018-04-18 20:57:56 -0700186 "src/dsp/yuv_sse41.c",
James Zerna1873002018-01-11 19:59:28 -0800187 "src/utils/bit_reader_utils.c",
188 "src/utils/color_cache_utils.c",
189 "src/utils/filters_utils.c",
190 "src/utils/huffman_utils.c",
191 "src/utils/quant_levels_dec_utils.c",
192 "src/utils/random_utils.c",
193 "src/utils/rescaler_utils.c",
194 "src/utils/thread_utils.c",
195 "src/utils/utils.c",
196 ],
197
198 arch: {
199 arm: {
200 instruction_set: "arm",
201 },
202 },
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +0000203
James Zerna1873002018-01-11 19:59:28 -0800204 cflags: [
205 "-O2",
206 "-DANDROID",
207 "-DWEBP_SWAP_16BIT_CSP",
208 "-Wall",
209 "-Werror",
210 ],
211
212 local_include_dirs: ["."],
213 static_libs: ["webp-headers"],
214 export_static_lib_headers: ["webp-headers"],
215
216 sdk_version: "9",
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +0000217
218 target: {
219 windows: {
220 enabled: true,
221 },
222 },
James Zerna1873002018-01-11 19:59:28 -0800223}