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 import("//build/config/mips.gni") | 6 import("//build/config/mips.gni") |
7 | 7 |
8 # If fixed point implementation shall be used (otherwise float). | 8 # If fixed point implementation shall be used (otherwise float). |
9 # TODO(wtc): change "mipselx" to "mipsel" in this file when the compilation | 9 # TODO(wtc): change "mipselx" to "mipsel" in this file when the compilation |
10 # errors in the MIPS optimizations are fixed. | 10 # errors in the MIPS optimizations are fixed. |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
215 libs = [ "log" ] | 215 libs = [ "log" ] |
216 } | 216 } |
217 if (is_clang) { | 217 if (is_clang) { |
218 cflags = [ "-Wno-absolute-value" ] | 218 cflags = [ "-Wno-absolute-value" ] |
219 } | 219 } |
220 | 220 |
221 deps = [ | 221 deps = [ |
222 ":opus", | 222 ":opus", |
223 ] | 223 ] |
224 } | 224 } |
225 | |
226 executable("test_opus_api") { | |
227 sources = [ | |
228 "src/tests/test_opus_api.c", | |
229 ] | |
230 | |
231 configs -= [ "//build/config/compiler:chromium_code" ] | |
232 configs += [ "//build/config/compiler:no_chromium_code" ] | |
233 | |
234 include_dirs = [ | |
Sergey Ulanov
2015/01/29 18:12:20
These settings are duplicated between test targets
wtc
2015/01/29 21:11:33
Done. I added a GN config on Brett's suggestion.
| |
235 "src/celt", | |
236 "src/silk", | |
237 ] | |
238 | |
239 if (is_win) { | |
240 defines = [ "inline=__inline" ] | |
241 } | |
242 if (is_android) { | |
243 libs = [ "log" ] | |
244 } | |
245 if (is_clang) { | |
246 cflags = [ "-Wno-absolute-value" ] | |
247 } | |
248 | |
249 deps = [ | |
250 ":opus", | |
251 ] | |
252 } | |
253 | |
254 executable("test_opus_encode") { | |
255 sources = [ | |
256 "src/tests/test_opus_encode.c", | |
257 ] | |
258 | |
259 configs -= [ "//build/config/compiler:chromium_code" ] | |
260 configs += [ "//build/config/compiler:no_chromium_code" ] | |
261 | |
262 include_dirs = [ | |
263 "src/celt", | |
264 "src/silk", | |
265 ] | |
266 | |
267 if (is_win) { | |
268 defines = [ "inline=__inline" ] | |
269 } | |
270 if (is_android) { | |
271 libs = [ "log" ] | |
272 } | |
273 if (is_clang) { | |
274 cflags = [ "-Wno-absolute-value" ] | |
275 } | |
276 | |
277 deps = [ | |
278 ":opus", | |
279 ] | |
280 } | |
281 | |
282 executable("test_opus_decode") { | |
283 sources = [ | |
284 "src/tests/test_opus_decode.c", | |
285 ] | |
286 | |
287 configs -= [ "//build/config/compiler:chromium_code" ] | |
288 configs += [ "//build/config/compiler:no_chromium_code" ] | |
289 | |
290 include_dirs = [ | |
291 "src/celt", | |
292 "src/silk", | |
293 ] | |
294 | |
295 if (is_win) { | |
296 defines = [ "inline=__inline" ] | |
297 } | |
298 if (is_android) { | |
299 libs = [ "log" ] | |
300 } | |
301 if (is_clang) { | |
302 cflags = [ "-Wno-absolute-value" ] | |
303 } | |
304 | |
305 deps = [ | |
306 ":opus", | |
307 ] | |
308 } | |
309 | |
310 executable("test_opus_padding") { | |
311 sources = [ | |
312 "src/tests/test_opus_padding.c", | |
313 ] | |
314 | |
315 configs -= [ "//build/config/compiler:chromium_code" ] | |
316 configs += [ "//build/config/compiler:no_chromium_code" ] | |
317 | |
318 include_dirs = [ | |
319 "src/celt", | |
320 "src/silk", | |
321 ] | |
322 | |
323 if (is_win) { | |
324 defines = [ "inline=__inline" ] | |
325 } | |
326 if (is_android) { | |
327 libs = [ "log" ] | |
328 } | |
329 if (is_clang) { | |
330 cflags = [ "-Wno-absolute-value" ] | |
331 } | |
332 | |
333 deps = [ | |
334 ":opus", | |
335 ] | |
336 } | |
OLD | NEW |