Chromium Code Reviews| Index: webrtc/tools/BUILD.gn |
| diff --git a/webrtc/tools/BUILD.gn b/webrtc/tools/BUILD.gn |
| index 0fe92314eff00fd5bc6ee4e2dcee5d36764b9c58..91564b989041707a8567f0b51ea905bd3b7b5ad8 100644 |
| --- a/webrtc/tools/BUILD.gn |
| +++ b/webrtc/tools/BUILD.gn |
| @@ -174,19 +174,45 @@ source_set("agc_test_utils") { |
| public_configs = [ "..:common_inherited_config" ] |
| } |
| +if (rtc_enable_protobuf) { |
| + source_set("event_log_visualizer_utils") { |
|
terelius
2016/08/23 02:55:20
Should this be testonly too? The webrtc static lib
kjellander_webrtc
2016/08/23 05:52:06
I guess it's fine leaving it without testonly.
|
| + sources = [ |
| + "event_log_visualizer/analyzer.cc", |
| + "event_log_visualizer/analyzer.h", |
| + "event_log_visualizer/plot_base.cc", |
| + "event_log_visualizer/plot_base.h", |
| + "event_log_visualizer/plot_python.cc", |
| + "event_log_visualizer/plot_python.h", |
| + ] |
| + configs += [ "..:common_config" ] |
| + public_configs = [ "..:common_inherited_config" ] |
| + if (is_clang && !is_nacl) { |
| + # Suppress warnings from the Chromium Clang plugin. |
| + # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| + configs -= [ "//build/config/clang:find_bad_constructs" ] |
|
kjellander_webrtc
2016/08/23 05:52:06
I'd be very happy if these warnings could be fixed
|
| + } |
| + defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| + deps = [ |
| + "../:rtc_event_log", |
| + "../:rtc_event_log_parser", |
| + "../modules/congestion_controller:congestion_controller", |
| + "../modules/rtp_rtcp:rtp_rtcp", |
| + "../system_wrappers:system_wrappers_default", |
| + "//build/config/sanitizers:deps", |
| + ] |
| + public_deps = [ |
| + "../:rtc_event_log_parser", |
| + ] |
| + } |
| +} |
| + |
| # Exclude tools depending on gflags since that's not available in Chromium. |
| if (rtc_include_tests) { |
| if (rtc_enable_protobuf) { |
| executable("event_log_visualizer") { |
| testonly = true |
| sources = [ |
| - "event_log_visualizer/analyzer.cc", |
| - "event_log_visualizer/analyzer.h", |
| "event_log_visualizer/main.cc", |
| - "event_log_visualizer/plot_base.cc", |
| - "event_log_visualizer/plot_base.h", |
| - "event_log_visualizer/plot_python.cc", |
| - "event_log_visualizer/plot_python.h", |
| ] |
| configs += [ "..:common_config" ] |
| @@ -200,12 +226,7 @@ if (rtc_include_tests) { |
| defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| deps = [ |
| - "../:rtc_event_log", |
| - "../:rtc_event_log_parser", |
| - "../modules/congestion_controller:congestion_controller", |
| - "../modules/rtp_rtcp:rtp_rtcp", |
| - "../system_wrappers:system_wrappers_default", |
| - "../test:field_trial", |
| + ":event_log_visualizer_utils", |
| "//build/config/sanitizers:deps", |
| "//third_party/gflags", |
| ] |