| 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("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 # If fixed point implementation shall be used (otherwise float). | 8 # If fixed point implementation shall be used (otherwise float). |
| 9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64" | 9 use_opus_fixed_point = current_cpu == "arm" || current_cpu == "arm64" |
| 10 | 10 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 ] | 411 ] |
| 412 | 412 |
| 413 configs -= [ "//build/config/compiler:chromium_code" ] | 413 configs -= [ "//build/config/compiler:chromium_code" ] |
| 414 configs += [ | 414 configs += [ |
| 415 "//build/config/compiler:no_chromium_code", | 415 "//build/config/compiler:no_chromium_code", |
| 416 ":opus_test_config", | 416 ":opus_test_config", |
| 417 ] | 417 ] |
| 418 | 418 |
| 419 deps = [ | 419 deps = [ |
| 420 ":opus", | 420 ":opus", |
| 421 "//build/config/sanitizers:deps", | 421 "//build/config:exe_and_shlib_deps", |
| 422 "//build/win:default_exe_manifest", | 422 "//build/win:default_exe_manifest", |
| 423 ] | 423 ] |
| 424 } | 424 } |
| 425 | 425 |
| 426 executable("opus_demo") { | 426 executable("opus_demo") { |
| 427 sources = [ | 427 sources = [ |
| 428 "src/src/opus_demo.c", | 428 "src/src/opus_demo.c", |
| 429 ] | 429 ] |
| 430 | 430 |
| 431 configs -= [ "//build/config/compiler:chromium_code" ] | 431 configs -= [ "//build/config/compiler:chromium_code" ] |
| 432 configs += [ | 432 configs += [ |
| 433 "//build/config/compiler:no_chromium_code", | 433 "//build/config/compiler:no_chromium_code", |
| 434 ":opus_test_config", | 434 ":opus_test_config", |
| 435 ] | 435 ] |
| 436 | 436 |
| 437 deps = [ | 437 deps = [ |
| 438 ":opus", | 438 ":opus", |
| 439 "//build/config/sanitizers:deps", | 439 "//build/config:exe_and_shlib_deps", |
| 440 "//build/win:default_exe_manifest", | 440 "//build/win:default_exe_manifest", |
| 441 ] | 441 ] |
| 442 } | 442 } |
| 443 | 443 |
| 444 test("test_opus_api") { | 444 test("test_opus_api") { |
| 445 sources = [ | 445 sources = [ |
| 446 "src/tests/test_opus_api.c", | 446 "src/tests/test_opus_api.c", |
| 447 ] | 447 ] |
| 448 | 448 |
| 449 configs -= [ "//build/config/compiler:chromium_code" ] | 449 configs -= [ "//build/config/compiler:chromium_code" ] |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 configs -= [ "//build/config/compiler:chromium_code" ] | 511 configs -= [ "//build/config/compiler:chromium_code" ] |
| 512 configs += [ | 512 configs += [ |
| 513 "//build/config/compiler:no_chromium_code", | 513 "//build/config/compiler:no_chromium_code", |
| 514 ":opus_test_config", | 514 ":opus_test_config", |
| 515 ] | 515 ] |
| 516 | 516 |
| 517 deps = [ | 517 deps = [ |
| 518 ":opus", | 518 ":opus", |
| 519 ] | 519 ] |
| 520 } | 520 } |
| OLD | NEW |