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("../build/webrtc.gni") | 10 import("../build/webrtc.gni") |
11 import("//third_party/protobuf/proto_library.gni") | |
kjellander_webrtc
2016/08/23 06:02:20
nit: sort alphabetically.
terelius
2016/08/23 17:54:18
Done.
| |
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 += [ |
20 ":frame_analyzer", | 21 ":frame_analyzer", |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 # Exclude tools depending on gflags since that's not available in Chromium. | 178 # Exclude tools depending on gflags since that's not available in Chromium. |
178 if (rtc_include_tests) { | 179 if (rtc_include_tests) { |
179 if (rtc_enable_protobuf) { | 180 if (rtc_enable_protobuf) { |
181 proto_library("graph_proto") { | |
182 sources = [ | |
183 "event_log_visualizer/graph.proto", | |
184 ] | |
185 proto_out_dir = "webrtc/tools/event_log_visualizer" | |
186 } | |
187 | |
180 executable("event_log_visualizer") { | 188 executable("event_log_visualizer") { |
181 testonly = true | 189 testonly = true |
182 sources = [ | 190 sources = [ |
183 "event_log_visualizer/analyzer.cc", | 191 "event_log_visualizer/analyzer.cc", |
184 "event_log_visualizer/analyzer.h", | 192 "event_log_visualizer/analyzer.h", |
185 "event_log_visualizer/main.cc", | 193 "event_log_visualizer/main.cc", |
186 "event_log_visualizer/plot_base.cc", | 194 "event_log_visualizer/plot_base.cc", |
187 "event_log_visualizer/plot_base.h", | 195 "event_log_visualizer/plot_base.h", |
196 "event_log_visualizer/plot_protobuf.cc", | |
197 "event_log_visualizer/plot_protobuf.h", | |
188 "event_log_visualizer/plot_python.cc", | 198 "event_log_visualizer/plot_python.cc", |
189 "event_log_visualizer/plot_python.h", | 199 "event_log_visualizer/plot_python.h", |
190 ] | 200 ] |
191 | 201 |
192 configs += [ "..:common_config" ] | 202 configs += [ "..:common_config" ] |
193 public_configs = [ "..:common_inherited_config" ] | 203 public_configs = [ "..:common_inherited_config" ] |
194 | 204 |
195 if (is_clang && !is_nacl) { | 205 if (is_clang && !is_nacl) { |
196 # Suppress warnings from the Chromium Clang plugin. | 206 # Suppress warnings from the Chromium Clang plugin. |
197 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. | 207 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
198 configs -= [ "//build/config/clang:find_bad_constructs" ] | 208 configs -= [ "//build/config/clang:find_bad_constructs" ] |
199 } | 209 } |
200 | 210 |
201 defines = [ "ENABLE_RTC_EVENT_LOG" ] | 211 defines = [ "ENABLE_RTC_EVENT_LOG" ] |
202 deps = [ | 212 deps = [ |
213 ":graph_proto", | |
203 "../:rtc_event_log", | 214 "../:rtc_event_log", |
204 "../:rtc_event_log_parser", | 215 "../:rtc_event_log_parser", |
205 "../modules/congestion_controller:congestion_controller", | 216 "../modules/congestion_controller:congestion_controller", |
206 "../modules/rtp_rtcp:rtp_rtcp", | 217 "../modules/rtp_rtcp:rtp_rtcp", |
207 "../system_wrappers:system_wrappers_default", | 218 "../system_wrappers:system_wrappers_default", |
208 "../test:field_trial", | 219 "../test:field_trial", |
209 "//build/config/sanitizers:deps", | 220 "//build/config/sanitizers:deps", |
210 "//third_party/gflags", | 221 "//third_party/gflags", |
211 ] | 222 ] |
212 } | 223 } |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
337 ] | 348 ] |
338 outputs = [ | 349 outputs = [ |
339 "$root_build_dir/{{source_file_part}}", | 350 "$root_build_dir/{{source_file_part}}", |
340 ] | 351 ] |
341 deps = [ | 352 deps = [ |
342 "..:rtc_event_log_proto", | 353 "..:rtc_event_log_proto", |
343 ] | 354 ] |
344 } | 355 } |
345 } | 356 } |
346 } | 357 } |
OLD | NEW |