OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
6 | 6 |
7 config("libwebp_config") { | 7 config("libwebp_config") { |
8 include_dirs = [ "." ] | 8 include_dirs = [ "." ] |
9 } | 9 } |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 configs -= [ "//build/config/compiler:chromium_code" ] | 155 configs -= [ "//build/config/compiler:chromium_code" ] |
156 configs += [ "//build/config/compiler:no_chromium_code" ] | 156 configs += [ "//build/config/compiler:no_chromium_code" ] |
157 | 157 |
158 all_dependent_configs = [ ":libwebp_config" ] | 158 all_dependent_configs = [ ":libwebp_config" ] |
159 | 159 |
160 deps = [ | 160 deps = [ |
161 ":libwebp_utils", | 161 ":libwebp_utils", |
162 ] | 162 ] |
163 } | 163 } |
164 | 164 |
| 165 config("libwebp_utils_warnings") { |
| 166 if (is_clang) { |
| 167 # See https://code.google.com/p/webp/issues/detail?id=253. |
| 168 cflags = [ "-Wno-incompatible-pointer-types" ] |
| 169 } |
| 170 } |
| 171 |
165 source_set("libwebp_utils") { | 172 source_set("libwebp_utils") { |
166 sources = [ | 173 sources = [ |
167 "utils/bit_reader.c", | 174 "utils/bit_reader.c", |
168 "utils/bit_writer.c", | 175 "utils/bit_writer.c", |
169 "utils/color_cache.c", | 176 "utils/color_cache.c", |
170 "utils/filters.c", | 177 "utils/filters.c", |
171 "utils/huffman.c", | 178 "utils/huffman.c", |
172 "utils/huffman_encode.c", | 179 "utils/huffman_encode.c", |
173 "utils/quant_levels.c", | 180 "utils/quant_levels.c", |
174 "utils/quant_levels_dec.c", | 181 "utils/quant_levels_dec.c", |
175 "utils/random.c", | 182 "utils/random.c", |
176 "utils/rescaler.c", | 183 "utils/rescaler.c", |
177 "utils/thread.c", | 184 "utils/thread.c", |
178 "utils/utils.c", | 185 "utils/utils.c", |
179 ] | 186 ] |
180 configs -= [ "//build/config/compiler:chromium_code" ] | 187 configs -= [ "//build/config/compiler:chromium_code" ] |
181 configs += [ "//build/config/compiler:no_chromium_code" ] | 188 configs += [ "//build/config/compiler:no_chromium_code" ] |
182 | 189 |
183 all_dependent_configs = [ ":libwebp_config" ] | 190 all_dependent_configs = [ ":libwebp_config" ] |
184 | 191 |
185 config("libwebp_utils_warnings") { | |
186 if (is_clang) { | |
187 # See https://code.google.com/p/webp/issues/detail?id=253. | |
188 cflags = [ "-Wno-incompatible-pointer-types" ] | |
189 } | |
190 } | |
191 public_configs = [ ":libwebp_utils_warnings" ] | 192 public_configs = [ ":libwebp_utils_warnings" ] |
192 } | 193 } |
193 | 194 |
194 group("libwebp") { | 195 group("libwebp") { |
195 deps = [ | 196 deps = [ |
196 ":libwebp_dec", | 197 ":libwebp_dec", |
197 ":libwebp_demux", | 198 ":libwebp_demux", |
198 ":libwebp_dsp", | 199 ":libwebp_dsp", |
199 ":libwebp_enc", | 200 ":libwebp_enc", |
200 ":libwebp_utils", | 201 ":libwebp_utils", |
201 ] | 202 ] |
202 public_configs = [ ":libwebp_config" ] | 203 public_configs = [ ":libwebp_config" ] |
203 if (use_dsp_neon) { | 204 if (use_dsp_neon) { |
204 deps += [ ":libwebp_dsp_neon" ] | 205 deps += [ ":libwebp_dsp_neon" ] |
205 } | 206 } |
206 } | 207 } |
OLD | NEW |