kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 1 | # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 2 | # |
| 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 |
| 5 | # tree. An additional intellectual property rights grant can be found |
| 6 | # in the file PATENTS. All contributing project authors may |
| 7 | # be found in the AUTHORS file in the root of the source tree. |
| 8 | |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 9 | import("//third_party/protobuf/proto_library.gni") |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 10 | import("../build/webrtc.gni") |
| 11 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 12 | group("tools") { |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 13 | # This target shall build all targets in tools/. |
| 14 | testonly = true |
kjellander | a811968 | 2016-06-06 02:00:18 -0700 | [diff] [blame] | 15 | |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 16 | public_deps = [ |
| 17 | ":command_line_parser", |
| 18 | ":frame_analyzer", |
| 19 | ":frame_editor", |
| 20 | ":psnr_ssim_analyzer", |
| 21 | ":rgba_to_i420_converter", |
| 22 | ] |
| 23 | if (rtc_include_internal_audio_device) { |
| 24 | public_deps += [ ":force_mic_volume_max" ] |
| 25 | } |
| 26 | if (rtc_enable_protobuf) { |
| 27 | public_deps += [ ":chart_proto" ] |
| 28 | } |
| 29 | |
| 30 | if (rtc_include_tests) { |
| 31 | public_deps += [ |
| 32 | ":activity_metric", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 33 | ":tools_unittests", |
kjellander | a811968 | 2016-06-06 02:00:18 -0700 | [diff] [blame] | 34 | ] |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 35 | if (rtc_enable_protobuf) { |
ehmaldonado | 1fd08c1 | 2017-01-17 02:37:34 -0800 | [diff] [blame] | 36 | public_deps += [ |
| 37 | ":event_log_visualizer", |
| 38 | ":rtp_analyzer", |
| 39 | ] |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 40 | } |
kjellander | a811968 | 2016-06-06 02:00:18 -0700 | [diff] [blame] | 41 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 42 | } |
| 43 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 44 | rtc_static_library("command_line_parser") { |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 45 | sources = [ |
Henrik Kjellander | fa16dda | 2015-04-01 22:53:56 +0200 | [diff] [blame] | 46 | "simple_command_line_parser.cc", |
Henrik Kjellander | 57e5fd2 | 2015-05-25 12:55:39 +0200 | [diff] [blame] | 47 | "simple_command_line_parser.h", |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 48 | ] |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 49 | deps = [ |
kjellander | 988d31e | 2016-02-05 00:23:50 -0800 | [diff] [blame] | 50 | "../base:gtest_prod", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 51 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 52 | } |
| 53 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 54 | rtc_static_library("video_quality_analysis") { |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 55 | sources = [ |
| 56 | "frame_analyzer/video_quality_analysis.cc", |
| 57 | "frame_analyzer/video_quality_analysis.h", |
| 58 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 59 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 60 | deps = [ |
| 61 | "../common_video", |
| 62 | ] |
| 63 | public_deps = [ |
| 64 | "../common_video", |
| 65 | ] |
| 66 | } |
| 67 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 68 | rtc_executable("frame_analyzer") { |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 69 | sources = [ |
| 70 | "frame_analyzer/frame_analyzer.cc", |
| 71 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 72 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 73 | deps = [ |
| 74 | ":command_line_parser", |
| 75 | ":video_quality_analysis", |
| 76 | "//build/win:default_exe_manifest", |
| 77 | ] |
| 78 | } |
| 79 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 80 | rtc_executable("psnr_ssim_analyzer") { |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 81 | sources = [ |
| 82 | "psnr_ssim_analyzer/psnr_ssim_analyzer.cc", |
| 83 | ] |
| 84 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 85 | deps = [ |
| 86 | ":command_line_parser", |
| 87 | ":video_quality_analysis", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame] | 88 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 89 | ] |
| 90 | } |
| 91 | |
charujain | 0f01c7f | 2016-12-02 05:00:00 -0800 | [diff] [blame] | 92 | rtc_static_library("reference_less_video_analysis_lib") { |
| 93 | sources = [ |
| 94 | "frame_analyzer/reference_less_video_analysis_lib.cc", |
| 95 | "frame_analyzer/reference_less_video_analysis_lib.h", |
| 96 | ] |
| 97 | |
| 98 | deps = [ |
| 99 | ":video_quality_analysis", |
| 100 | ] |
| 101 | } |
| 102 | |
| 103 | rtc_executable("reference_less_video_analysis") { |
| 104 | sources = [ |
| 105 | "frame_analyzer/reference_less_video_analysis.cc", |
| 106 | ] |
| 107 | |
| 108 | deps = [ |
| 109 | ":command_line_parser", |
| 110 | ":reference_less_video_analysis_lib", |
| 111 | "//build/win:default_exe_manifest", |
| 112 | ] |
| 113 | } |
| 114 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 115 | rtc_executable("rgba_to_i420_converter") { |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 116 | sources = [ |
| 117 | "converter/converter.cc", |
| 118 | "converter/converter.h", |
| 119 | "converter/rgba_to_i420_converter.cc", |
| 120 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 121 | |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 122 | deps = [ |
| 123 | ":command_line_parser", |
| 124 | "../common_video", |
brucedawson | 84583e0 | 2016-04-28 00:21:08 -0700 | [diff] [blame] | 125 | "//build/win:default_exe_manifest", |
Henrik Kjellander | 67bcb60 | 2015-10-07 08:42:52 +0200 | [diff] [blame] | 126 | ] |
| 127 | } |
| 128 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 129 | rtc_static_library("frame_editing_lib") { |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 130 | sources = [ |
| 131 | "frame_editing/frame_editing_lib.cc", |
| 132 | "frame_editing/frame_editing_lib.h", |
| 133 | ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 134 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 135 | # TODO(jschuh): Bug 1348: fix this warning. |
| 136 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 137 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 138 | if (!build_with_chromium && is_clang) { |
| 139 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 140 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 141 | } |
kjellander@webrtc.org | 3037bc3 | 2014-09-30 19:07:58 +0000 | [diff] [blame] | 142 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 143 | deps = [ |
| 144 | "../common_video", |
| 145 | ] |
| 146 | } |
| 147 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 148 | rtc_executable("frame_editor") { |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 149 | sources = [ |
| 150 | "frame_editing/frame_editing.cc", |
| 151 | ] |
| 152 | |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 153 | deps = [ |
| 154 | ":command_line_parser", |
| 155 | ":frame_editing_lib", |
| 156 | "//build/win:default_exe_manifest", |
| 157 | ] |
| 158 | } |
| 159 | |
solenberg | fc433e6 | 2016-09-09 11:04:53 -0700 | [diff] [blame] | 160 | # It doesn't make sense to build this tool without the ADM enabled. |
| 161 | if (rtc_include_internal_audio_device) { |
| 162 | rtc_executable("force_mic_volume_max") { |
| 163 | sources = [ |
| 164 | "force_mic_volume_max/force_mic_volume_max.cc", |
| 165 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 166 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 167 | if (!build_with_chromium && is_clang) { |
| 168 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
solenberg | fc433e6 | 2016-09-09 11:04:53 -0700 | [diff] [blame] | 169 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 170 | } |
| 171 | |
| 172 | deps = [ |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 173 | "../modules/audio_device", |
solenberg | fc433e6 | 2016-09-09 11:04:53 -0700 | [diff] [blame] | 174 | "../system_wrappers:system_wrappers_default", |
| 175 | "//build/win:default_exe_manifest", |
| 176 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 177 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 178 | } |
| 179 | |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 180 | if (rtc_enable_protobuf) { |
skvlad | f581eb7 | 2016-09-07 11:15:37 -0700 | [diff] [blame] | 181 | proto_library("chart_proto") { |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 182 | sources = [ |
skvlad | f581eb7 | 2016-09-07 11:15:37 -0700 | [diff] [blame] | 183 | "event_log_visualizer/chart.proto", |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 184 | ] |
| 185 | proto_out_dir = "webrtc/tools/event_log_visualizer" |
| 186 | } |
| 187 | |
kjellander | b62dbbe | 2016-09-23 00:38:52 -0700 | [diff] [blame] | 188 | rtc_static_library("event_log_visualizer_utils") { |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 189 | sources = [ |
| 190 | "event_log_visualizer/analyzer.cc", |
| 191 | "event_log_visualizer/analyzer.h", |
| 192 | "event_log_visualizer/plot_base.cc", |
| 193 | "event_log_visualizer/plot_base.h", |
terelius | b246a29 | 2016-08-23 18:15:25 -0700 | [diff] [blame] | 194 | "event_log_visualizer/plot_protobuf.cc", |
| 195 | "event_log_visualizer/plot_protobuf.h", |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 196 | "event_log_visualizer/plot_python.cc", |
| 197 | "event_log_visualizer/plot_python.h", |
| 198 | ] |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 199 | if (!build_with_chromium && is_clang) { |
| 200 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 201 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 202 | } |
| 203 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 204 | deps = [ |
ossu | f515ab8 | 2016-12-07 04:52:58 -0800 | [diff] [blame] | 205 | "../call:call_interfaces", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 206 | "../logging:rtc_event_log_impl", |
| 207 | "../logging:rtc_event_log_parser", |
kwiberg | d32bf75 | 2017-01-19 07:03:59 -0800 | [diff] [blame] | 208 | |
| 209 | # TODO(kwiberg): Remove this dependency. |
| 210 | "../modules/audio_coding:audio_format", |
kjellander | 6ceab08 | 2016-10-28 05:44:03 -0700 | [diff] [blame] | 211 | "../modules/congestion_controller", |
| 212 | "../modules/rtp_rtcp", |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 213 | "../system_wrappers:system_wrappers_default", |
| 214 | "//build/config/sanitizers:deps", |
| 215 | ] |
| 216 | public_deps = [ |
skvlad | f581eb7 | 2016-09-07 11:15:37 -0700 | [diff] [blame] | 217 | ":chart_proto", |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 218 | "../logging:rtc_event_log_parser", |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 219 | ] |
| 220 | } |
| 221 | } |
| 222 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 223 | # Exclude tools depending on gflags since that's not available in Chromium. |
kjellander@webrtc.org | aff499c | 2016-06-06 23:04:31 +0200 | [diff] [blame] | 224 | if (rtc_include_tests) { |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 225 | if (rtc_enable_protobuf) { |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 226 | rtc_executable("event_log_visualizer") { |
Stefan Holmer | 1318103 | 2016-07-29 14:48:54 +0200 | [diff] [blame] | 227 | testonly = true |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 228 | sources = [ |
terelius | d49a37b | 2016-08-10 07:12:38 -0700 | [diff] [blame] | 229 | "event_log_visualizer/main.cc", |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 230 | ] |
| 231 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 232 | if (!build_with_chromium && is_clang) { |
| 233 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 234 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 235 | } |
| 236 | |
| 237 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 238 | deps = [ |
skvlad | 185ba29 | 2016-08-23 13:01:27 -0700 | [diff] [blame] | 239 | ":event_log_visualizer_utils", |
stefan | 985d280 | 2016-11-15 06:54:09 -0800 | [diff] [blame] | 240 | "../test:field_trial", |
terelius | 54ce680 | 2016-07-13 06:44:41 -0700 | [diff] [blame] | 241 | "//third_party/gflags", |
| 242 | ] |
| 243 | } |
| 244 | } |
| 245 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 246 | rtc_executable("activity_metric") { |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 247 | testonly = true |
| 248 | sources = [ |
| 249 | "agc/activity_metric.cc", |
| 250 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 251 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 252 | if (!build_with_chromium && is_clang) { |
| 253 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 254 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 255 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 256 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 257 | deps = [ |
| 258 | "../modules/audio_processing", |
| 259 | "../system_wrappers:metrics_default", |
| 260 | "//build/win:default_exe_manifest", |
| 261 | "//testing/gtest", |
| 262 | "//third_party/gflags", |
| 263 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 264 | } |
| 265 | |
charujain | 1b5b22d | 2016-11-29 02:00:52 -0800 | [diff] [blame] | 266 | tools_unittests_resources = [ |
| 267 | "//resources/foreman_cif.yuv", |
| 268 | "//resources/reference_less_video_test_file.y4m", |
| 269 | "//resources/video_quality_analysis_frame.txt", |
| 270 | ] |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 271 | |
| 272 | if (is_ios) { |
| 273 | bundle_data("tools_unittests_bundle_data") { |
| 274 | testonly = true |
| 275 | sources = tools_unittests_resources |
| 276 | outputs = [ |
| 277 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 278 | ] |
| 279 | } |
| 280 | } |
| 281 | |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 282 | rtc_test("tools_unittests") { |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 283 | testonly = true |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 284 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 285 | sources = [ |
charujain | 0f01c7f | 2016-12-02 05:00:00 -0800 | [diff] [blame] | 286 | "frame_analyzer/reference_less_video_analysis_unittest.cc", |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 287 | "frame_analyzer/video_quality_analysis_unittest.cc", |
| 288 | "frame_editing/frame_editing_unittest.cc", |
| 289 | "simple_command_line_parser_unittest.cc", |
| 290 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 291 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 292 | # TODO(jschuh): Bug 1348: fix this warning. |
| 293 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 294 | |
kjellander | e40a7ee | 2016-10-16 23:56:12 -0700 | [diff] [blame] | 295 | if (!build_with_chromium && is_clang) { |
| 296 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
ehmaldonado | 38a2132 | 2016-09-02 04:10:34 -0700 | [diff] [blame] | 297 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 298 | } |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 299 | |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 300 | deps = [ |
| 301 | ":command_line_parser", |
| 302 | ":frame_editing_lib", |
charujain | 0f01c7f | 2016-12-02 05:00:00 -0800 | [diff] [blame] | 303 | ":reference_less_video_analysis_lib", |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 304 | ":video_quality_analysis", |
ehmaldonado | 26bddb9 | 2016-11-30 06:12:01 -0800 | [diff] [blame] | 305 | "../test:test_main", |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 306 | "//testing/gtest", |
| 307 | ] |
kjellander | bac0412 | 2016-06-02 02:18:48 -0700 | [diff] [blame] | 308 | |
ehmaldonado | 3a7f35b | 2016-09-14 05:10:01 -0700 | [diff] [blame] | 309 | data = tools_unittests_resources |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 310 | if (is_android) { |
| 311 | deps += [ "//testing/android/native_test:native_test_support" ] |
kjellander | 28a0ffd | 2016-08-24 07:48:42 -0700 | [diff] [blame] | 312 | shard_timeout = 900 |
| 313 | } |
kjellander | 32c4a20 | 2016-08-30 02:53:49 -0700 | [diff] [blame] | 314 | if (is_ios) { |
| 315 | deps += [ ":tools_unittests_bundle_data" ] |
kjellander@webrtc.org | dc0dbad | 2016-06-02 13:29:07 +0200 | [diff] [blame] | 316 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 317 | } |
aleloi | 7ebbf90 | 2016-06-20 07:39:15 -0700 | [diff] [blame] | 318 | |
| 319 | if (rtc_enable_protobuf) { |
| 320 | copy("rtp_analyzer") { |
| 321 | sources = [ |
| 322 | "py_event_log_analyzer/misc.py", |
| 323 | "py_event_log_analyzer/pb_parse.py", |
| 324 | "py_event_log_analyzer/rtp_analyzer.py", |
| 325 | "py_event_log_analyzer/rtp_analyzer.sh", |
| 326 | ] |
| 327 | outputs = [ |
| 328 | "$root_build_dir/{{source_file_part}}", |
| 329 | ] |
| 330 | deps = [ |
skvlad | cc91d28 | 2016-10-03 18:31:22 -0700 | [diff] [blame] | 331 | "../logging:rtc_event_log_proto", |
aleloi | 7ebbf90 | 2016-06-20 07:39:15 -0700 | [diff] [blame] | 332 | ] |
| 333 | } |
| 334 | } |
kjellander@webrtc.org | b8caf6a | 2014-09-30 18:05:02 +0000 | [diff] [blame] | 335 | } |