OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//third_party/protobuf/proto_library.gni") |
10 import("../build/webrtc.gni") | 11 import("../build/webrtc.gni") |
11 | 12 |
12 source_set("tools") { | 13 source_set("tools") { |
13 deps = [ | 14 deps = [ |
14 ":command_line_parser", | 15 ":command_line_parser", |
15 ] | 16 ] |
16 | 17 |
17 if (!build_with_chromium) { | 18 if (!build_with_chromium) { |
18 # TODO(kjellander): Enable these when webrtc:5970 is fixed. | 19 # TODO(kjellander): Enable these when webrtc:5970 is fixed. |
19 deps += [ | 20 deps += [ |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 sources = [ | 169 sources = [ |
169 "agc/test_utils.cc", | 170 "agc/test_utils.cc", |
170 "agc/test_utils.h", | 171 "agc/test_utils.h", |
171 ] | 172 ] |
172 | 173 |
173 configs += [ "..:common_config" ] | 174 configs += [ "..:common_config" ] |
174 public_configs = [ "..:common_inherited_config" ] | 175 public_configs = [ "..:common_inherited_config" ] |
175 } | 176 } |
176 | 177 |
177 if (rtc_enable_protobuf) { | 178 if (rtc_enable_protobuf) { |
| 179 proto_library("graph_proto") { |
| 180 sources = [ |
| 181 "event_log_visualizer/graph.proto", |
| 182 ] |
| 183 proto_out_dir = "webrtc/tools/event_log_visualizer" |
| 184 } |
| 185 |
178 source_set("event_log_visualizer_utils") { | 186 source_set("event_log_visualizer_utils") { |
179 sources = [ | 187 sources = [ |
180 "event_log_visualizer/analyzer.cc", | 188 "event_log_visualizer/analyzer.cc", |
181 "event_log_visualizer/analyzer.h", | 189 "event_log_visualizer/analyzer.h", |
182 "event_log_visualizer/plot_base.cc", | 190 "event_log_visualizer/plot_base.cc", |
183 "event_log_visualizer/plot_base.h", | 191 "event_log_visualizer/plot_base.h", |
| 192 "event_log_visualizer/plot_protobuf.cc", |
| 193 "event_log_visualizer/plot_protobuf.h", |
184 "event_log_visualizer/plot_python.cc", | 194 "event_log_visualizer/plot_python.cc", |
185 "event_log_visualizer/plot_python.h", | 195 "event_log_visualizer/plot_python.h", |
186 ] | 196 ] |
187 configs += [ "..:common_config" ] | 197 configs += [ "..:common_config" ] |
188 public_configs = [ "..:common_inherited_config" ] | 198 public_configs = [ "..:common_inherited_config" ] |
189 if (is_clang && !is_nacl) { | 199 if (is_clang && !is_nacl) { |
190 # Suppress warnings from the Chromium Clang plugin. | 200 # Suppress warnings from the Chromium Clang plugin. |
191 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 201 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
192 configs -= [ "//build/config/clang:find_bad_constructs" ] | 202 configs -= [ "//build/config/clang:find_bad_constructs" ] |
193 } | 203 } |
194 defines = [ "ENABLE_RTC_EVENT_LOG" ] | 204 defines = [ "ENABLE_RTC_EVENT_LOG" ] |
195 deps = [ | 205 deps = [ |
196 "../:rtc_event_log", | 206 "../:rtc_event_log", |
197 "../:rtc_event_log_parser", | 207 "../:rtc_event_log_parser", |
198 "../modules/congestion_controller:congestion_controller", | 208 "../modules/congestion_controller:congestion_controller", |
199 "../modules/rtp_rtcp:rtp_rtcp", | 209 "../modules/rtp_rtcp:rtp_rtcp", |
200 "../system_wrappers:system_wrappers_default", | 210 "../system_wrappers:system_wrappers_default", |
201 "//build/config/sanitizers:deps", | 211 "//build/config/sanitizers:deps", |
202 ] | 212 ] |
203 public_deps = [ | 213 public_deps = [ |
| 214 ":graph_proto", |
204 "../:rtc_event_log_parser", | 215 "../:rtc_event_log_parser", |
205 ] | 216 ] |
206 } | 217 } |
207 } | 218 } |
208 | 219 |
209 # Exclude tools depending on gflags since that's not available in Chromium. | 220 # Exclude tools depending on gflags since that's not available in Chromium. |
210 if (rtc_include_tests) { | 221 if (rtc_include_tests) { |
211 if (rtc_enable_protobuf) { | 222 if (rtc_enable_protobuf) { |
212 executable("event_log_visualizer") { | 223 executable("event_log_visualizer") { |
213 testonly = true | 224 testonly = true |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 ] | 369 ] |
359 outputs = [ | 370 outputs = [ |
360 "$root_build_dir/{{source_file_part}}", | 371 "$root_build_dir/{{source_file_part}}", |
361 ] | 372 ] |
362 deps = [ | 373 deps = [ |
363 "..:rtc_event_log_proto", | 374 "..:rtc_event_log_proto", |
364 ] | 375 ] |
365 } | 376 } |
366 } | 377 } |
367 } | 378 } |
OLD | NEW |