blob: 222195065dd71121649e750181e783955c61fde1 [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: [
James Zerna1873002018-01-11 19:59:28 -080035 "src/dsp/cost.c",
36 "src/dsp/cost_mips32.c",
37 "src/dsp/cost_mips_dsp_r2.c",
James Zerncf0b0ef2019-01-15 18:26:18 -080038 "src/dsp/cost_neon.c",
James Zerna1873002018-01-11 19:59:28 -080039 "src/dsp/cost_sse2.c",
40 "src/dsp/cpu.c",
41 "src/dsp/enc.c",
James Zerna1873002018-01-11 19:59:28 -080042 "src/dsp/enc_mips32.c",
43 "src/dsp/enc_mips_dsp_r2.c",
44 "src/dsp/enc_msa.c",
45 "src/dsp/enc_neon.c",
46 "src/dsp/enc_sse2.c",
47 "src/dsp/enc_sse41.c",
48 "src/dsp/lossless_enc.c",
49 "src/dsp/lossless_enc_mips32.c",
50 "src/dsp/lossless_enc_mips_dsp_r2.c",
51 "src/dsp/lossless_enc_msa.c",
52 "src/dsp/lossless_enc_neon.c",
53 "src/dsp/lossless_enc_sse2.c",
54 "src/dsp/lossless_enc_sse41.c",
55 "src/dsp/ssim.c",
56 "src/dsp/ssim_sse2.c",
57 "src/enc/alpha_enc.c",
58 "src/enc/analysis_enc.c",
59 "src/enc/backward_references_cost_enc.c",
60 "src/enc/backward_references_enc.c",
61 "src/enc/config_enc.c",
62 "src/enc/cost_enc.c",
James Zerna1873002018-01-11 19:59:28 -080063 "src/enc/filter_enc.c",
64 "src/enc/frame_enc.c",
65 "src/enc/histogram_enc.c",
66 "src/enc/iterator_enc.c",
67 "src/enc/near_lossless_enc.c",
68 "src/enc/picture_csp_enc.c",
69 "src/enc/picture_enc.c",
70 "src/enc/picture_psnr_enc.c",
71 "src/enc/picture_rescale_enc.c",
72 "src/enc/picture_tools_enc.c",
73 "src/enc/predictor_enc.c",
74 "src/enc/quant_enc.c",
75 "src/enc/syntax_enc.c",
76 "src/enc/token_enc.c",
77 "src/enc/tree_enc.c",
78 "src/enc/vp8l_enc.c",
79 "src/enc/webp_enc.c",
80 "src/mux/anim_encode.c",
81 "src/mux/muxedit.c",
82 "src/mux/muxinternal.c",
83 "src/mux/muxread.c",
James Zerna1873002018-01-11 19:59:28 -080084 "src/utils/bit_writer_utils.c",
James Zerna1873002018-01-11 19:59:28 -080085 "src/utils/huffman_encode_utils.c",
James Zerna1873002018-01-11 19:59:28 -080086 "src/utils/quant_levels_utils.c",
James Zerna1873002018-01-11 19:59:28 -080087 ],
88
89 arch: {
90 arm: {
91 instruction_set: "arm",
92 },
93 },
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +000094
James Zerna1873002018-01-11 19:59:28 -080095 cflags: [
96 "-O2",
97 "-DANDROID",
98 "-DWEBP_SWAP_16BIT_CSP",
James Zerne3518de2019-07-26 23:28:07 -070099 "-DWEBP_USE_THREAD",
James Zerna1873002018-01-11 19:59:28 -0800100 "-Wall",
101 "-Werror",
102 ],
103
104 local_include_dirs: ["."],
105 static_libs: ["webp-headers"],
106 export_static_lib_headers: ["webp-headers"],
Derek Sollenberger51e02292018-01-31 13:18:10 -0500107
108 sdk_version: "9",
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +0000109
110 target: {
111 windows: {
112 enabled: true,
113 },
114 },
James Zerna1873002018-01-11 19:59:28 -0800115}
116
117//##############################################
118
119cc_library_static {
120 name: "libwebp-decode",
Jerome Gaillard96b0f622018-07-10 16:09:11 +0100121 host_supported: true,
James Zerna1873002018-01-11 19:59:28 -0800122 srcs: [
123 "src/dec/alpha_dec.c",
124 "src/dec/buffer_dec.c",
125 "src/dec/frame_dec.c",
126 "src/dec/idec_dec.c",
127 "src/dec/io_dec.c",
128 "src/dec/quant_dec.c",
129 "src/dec/tree_dec.c",
130 "src/dec/vp8_dec.c",
131 "src/dec/vp8l_dec.c",
132 "src/dec/webp_dec.c",
Jerome Gaillard47c6dd42020-01-31 17:21:27 +0000133 "src/demux/anim_decode.c",
James Zerna1873002018-01-11 19:59:28 -0800134 "src/demux/demux.c",
135 "src/dsp/alpha_processing.c",
136 "src/dsp/alpha_processing_mips_dsp_r2.c",
Jerome Gaillard47c6dd42020-01-31 17:21:27 +0000137 "src/dsp/alpha_processing_neon.c",
James Zerna1873002018-01-11 19:59:28 -0800138 "src/dsp/alpha_processing_sse2.c",
139 "src/dsp/alpha_processing_sse41.c",
140 "src/dsp/cpu.c",
141 "src/dsp/dec.c",
142 "src/dsp/dec_clip_tables.c",
143 "src/dsp/dec_mips32.c",
144 "src/dsp/dec_mips_dsp_r2.c",
145 "src/dsp/dec_msa.c",
146 "src/dsp/dec_neon.c",
147 "src/dsp/dec_sse2.c",
148 "src/dsp/dec_sse41.c",
149 "src/dsp/filters.c",
150 "src/dsp/filters_mips_dsp_r2.c",
151 "src/dsp/filters_msa.c",
152 "src/dsp/filters_neon.c",
153 "src/dsp/filters_sse2.c",
154 "src/dsp/lossless.c",
155 "src/dsp/lossless_mips_dsp_r2.c",
156 "src/dsp/lossless_msa.c",
157 "src/dsp/lossless_neon.c",
158 "src/dsp/lossless_sse2.c",
159 "src/dsp/rescaler.c",
160 "src/dsp/rescaler_mips32.c",
161 "src/dsp/rescaler_mips_dsp_r2.c",
162 "src/dsp/rescaler_msa.c",
163 "src/dsp/rescaler_neon.c",
164 "src/dsp/rescaler_sse2.c",
165 "src/dsp/upsampling.c",
166 "src/dsp/upsampling_mips_dsp_r2.c",
167 "src/dsp/upsampling_msa.c",
168 "src/dsp/upsampling_neon.c",
169 "src/dsp/upsampling_sse2.c",
James Zern320de282018-04-18 20:57:56 -0700170 "src/dsp/upsampling_sse41.c",
James Zerna1873002018-01-11 19:59:28 -0800171 "src/dsp/yuv.c",
172 "src/dsp/yuv_mips32.c",
173 "src/dsp/yuv_mips_dsp_r2.c",
174 "src/dsp/yuv_neon.c",
175 "src/dsp/yuv_sse2.c",
James Zern320de282018-04-18 20:57:56 -0700176 "src/dsp/yuv_sse41.c",
James Zerna1873002018-01-11 19:59:28 -0800177 "src/utils/bit_reader_utils.c",
178 "src/utils/color_cache_utils.c",
179 "src/utils/filters_utils.c",
180 "src/utils/huffman_utils.c",
181 "src/utils/quant_levels_dec_utils.c",
182 "src/utils/random_utils.c",
183 "src/utils/rescaler_utils.c",
184 "src/utils/thread_utils.c",
185 "src/utils/utils.c",
186 ],
187
188 arch: {
189 arm: {
190 instruction_set: "arm",
191 },
192 },
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +0000193
James Zerna1873002018-01-11 19:59:28 -0800194 cflags: [
195 "-O2",
196 "-DANDROID",
197 "-DWEBP_SWAP_16BIT_CSP",
James Zerne3518de2019-07-26 23:28:07 -0700198 "-DWEBP_USE_THREAD",
James Zerna1873002018-01-11 19:59:28 -0800199 "-Wall",
200 "-Werror",
201 ],
202
203 local_include_dirs: ["."],
204 static_libs: ["webp-headers"],
205 export_static_lib_headers: ["webp-headers"],
206
207 sdk_version: "9",
Jerome Gaillard0c31c5f2018-11-01 16:49:58 +0000208
209 target: {
210 windows: {
211 enabled: true,
212 },
213 },
James Zerna1873002018-01-11 19:59:28 -0800214}