From 03153f103216ca7140905bf94d91f4183f90438c Mon Sep 17 00:00:00 2001 From: "henrik.lundin" Date: Tue, 21 Jun 2016 05:38:42 -0700 Subject: [PATCH] GN: Add neteq_rtpplay and rtc_event_log_source BUG=webrtc:5949 Review-Url: https://codereview.webrtc.org/2081113003 Cr-Commit-Position: refs/heads/master@{#13239} --- webrtc/modules/audio_coding/BUILD.gn | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/webrtc/modules/audio_coding/BUILD.gn b/webrtc/modules/audio_coding/BUILD.gn index fd8649575e..aae9e58776 100644 --- a/webrtc/modules/audio_coding/BUILD.gn +++ b/webrtc/modules/audio_coding/BUILD.gn @@ -945,6 +945,58 @@ if (rtc_include_tests) { ] proto_out_dir = "webrtc/audio_coding/neteq" } + + source_set("rtc_event_log_source") { + testonly = true + sources = [ + "neteq/tools/rtc_event_log_source.cc", + "neteq/tools/rtc_event_log_source.h", + ] + + if (is_clang) { + # Suppress warnings from the Chromium Clang plugins + # (bugs.webrtc.org/163). + configs -= [ "//build/config/clang:find_bad_constructs" ] + } + + deps = [ + "../../:rtc_event_log_parser", + ] + public_deps = [ + "../../:rtc_event_log_proto", + ] + } + + test("neteq_rtpplay") { + testonly = true + defines = [] + deps = [] + sources = [ + "neteq/tools/neteq_rtpplay.cc", + ] + + if (is_clang) { + # Suppress warnings from the Chromium Clang plugins + # (bugs.webrtc.org/163). + configs -= [ "//build/config/clang:find_bad_constructs" ] + } + + if (is_win) { + cflags = [ + # TODO(kjellander): bugs.webrtc.org/261: Fix this warning. + "/wd4373", # virtual function override. + ] + } + + deps += [ + ":neteq", + ":neteq_unittest_tools", + ":rtc_event_log_source", + "../../system_wrappers:system_wrappers_default", + "../../test:test_support", + "//third_party/gflags", + ] + } } source_set("neteq_test_support") {