Chromium Code Reviews| Index: third_party/opus/BUILD.gn |
| diff --git a/third_party/opus/BUILD.gn b/third_party/opus/BUILD.gn |
| index 8f51d09ffd4bd6f8808bf4054fbcb919465b4795..14db5cc0d9dd8e56f484191dec69151b16dabe54 100644 |
| --- a/third_party/opus/BUILD.gn |
| +++ b/third_party/opus/BUILD.gn |
| @@ -222,3 +222,115 @@ executable("opus_demo") { |
| ":opus", |
| ] |
| } |
| + |
| +executable("test_opus_api") { |
| + sources = [ |
| + "src/tests/test_opus_api.c", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| + |
| + 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.
|
| + "src/celt", |
| + "src/silk", |
| + ] |
| + |
| + if (is_win) { |
| + defines = [ "inline=__inline" ] |
| + } |
| + if (is_android) { |
| + libs = [ "log" ] |
| + } |
| + if (is_clang) { |
| + cflags = [ "-Wno-absolute-value" ] |
| + } |
| + |
| + deps = [ |
| + ":opus", |
| + ] |
| +} |
| + |
| +executable("test_opus_encode") { |
| + sources = [ |
| + "src/tests/test_opus_encode.c", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| + |
| + include_dirs = [ |
| + "src/celt", |
| + "src/silk", |
| + ] |
| + |
| + if (is_win) { |
| + defines = [ "inline=__inline" ] |
| + } |
| + if (is_android) { |
| + libs = [ "log" ] |
| + } |
| + if (is_clang) { |
| + cflags = [ "-Wno-absolute-value" ] |
| + } |
| + |
| + deps = [ |
| + ":opus", |
| + ] |
| +} |
| + |
| +executable("test_opus_decode") { |
| + sources = [ |
| + "src/tests/test_opus_decode.c", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| + |
| + include_dirs = [ |
| + "src/celt", |
| + "src/silk", |
| + ] |
| + |
| + if (is_win) { |
| + defines = [ "inline=__inline" ] |
| + } |
| + if (is_android) { |
| + libs = [ "log" ] |
| + } |
| + if (is_clang) { |
| + cflags = [ "-Wno-absolute-value" ] |
| + } |
| + |
| + deps = [ |
| + ":opus", |
| + ] |
| +} |
| + |
| +executable("test_opus_padding") { |
| + sources = [ |
| + "src/tests/test_opus_padding.c", |
| + ] |
| + |
| + configs -= [ "//build/config/compiler:chromium_code" ] |
| + configs += [ "//build/config/compiler:no_chromium_code" ] |
| + |
| + include_dirs = [ |
| + "src/celt", |
| + "src/silk", |
| + ] |
| + |
| + if (is_win) { |
| + defines = [ "inline=__inline" ] |
| + } |
| + if (is_android) { |
| + libs = [ "log" ] |
| + } |
| + if (is_clang) { |
| + cflags = [ "-Wno-absolute-value" ] |
| + } |
| + |
| + deps = [ |
| + ":opus", |
| + ] |
| +} |