From 538b5606a3fb6310aab7a7e747aee16eac885f02 Mon Sep 17 00:00:00 2001 From: kwiberg Date: Wed, 24 Aug 2016 04:38:47 -0700 Subject: [PATCH] GN build rules for four audio processing test executables click_annotate, intelligibility_proc, nonlinear_beamformer_test, and transient_suppression_test. BUG=webrtc:5949 Review-Url: https://codereview.webrtc.org/2267403003 Cr-Commit-Position: refs/heads/master@{#13890} --- webrtc/modules/audio_processing/BUILD.gn | 66 ++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/webrtc/modules/audio_processing/BUILD.gn b/webrtc/modules/audio_processing/BUILD.gn index dca33885ff..84ff8a0877 100644 --- a/webrtc/modules/audio_processing/BUILD.gn +++ b/webrtc/modules/audio_processing/BUILD.gn @@ -163,6 +163,7 @@ source_set("audio_processing") { defines = [] deps = [ "../..:webrtc_common", + "../../system_wrappers:metrics_default", "../audio_coding:isac", ] @@ -430,6 +431,71 @@ if (rtc_include_tests) { ] } + executable("transient_suppression_test") { + testonly = true + sources = [ + "transient/file_utils.cc", + "transient/file_utils.h", + "transient/transient_suppression_test.cc", + ] + deps = [ + ":audio_processing", + "../../test:test_support", + "//testing/gtest", + "//third_party/gflags", + ] + if (is_clang) { + # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). + configs -= [ "//build/config/clang:find_bad_constructs" ] + } + } + + executable("click_annotate") { + testonly = true + sources = [ + "transient/click_annotate.cc", + "transient/file_utils.cc", + "transient/file_utils.h", + ] + deps = [ + ":audio_processing", + ] + } + + executable("nonlinear_beamformer_test") { + testonly = true + sources = [ + "beamformer/nonlinear_beamformer_test.cc", + ] + deps = [ + ":audio_processing", + ":audioproc_test_utils", + "//third_party/gflags", + ] + if (is_clang) { + # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). + configs -= [ "//build/config/clang:find_bad_constructs" ] + } + } + + executable("intelligibility_proc") { + testonly = true + sources = [ + "intelligibility/test/intelligibility_proc.cc", + ] + deps = [ + ":audio_processing", + ":audioproc_test_utils", + "../../test:test_support", + "//testing/gtest", + "//third_party/gflags", + ] + if (is_clang) { + # Suppress warnings from the Chromium Clang plugins (bugs.webrtc.org/163). + configs -= [ "//build/config/clang:find_bad_constructs" ] + } + } + if (rtc_enable_protobuf) { proto_library("audioproc_unittest_proto") { sources = [