kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [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 | |
| 9 | import("//third_party/protobuf/proto_library.gni") |
| 10 | import("../webrtc.gni") |
| 11 | |
| 12 | group("rtc_tools") { |
| 13 | # This target shall build all targets in tools/. |
| 14 | testonly = true |
| 15 | |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 16 | deps = [ |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 17 | ":command_line_parser", |
| 18 | ":frame_analyzer", |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 19 | ":video_file_reader", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 20 | ":video_quality_analysis", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 21 | ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 22 | if (!build_with_chromium) { |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 23 | deps += [ |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 24 | ":frame_editor", |
| 25 | ":psnr_ssim_analyzer", |
| 26 | ":rgba_to_i420_converter", |
| 27 | ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 28 | if (rtc_enable_protobuf) { |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 29 | deps += [ ":chart_proto" ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 30 | } |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | if (rtc_include_tests) { |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 34 | deps += [ |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 35 | ":activity_metric", |
| 36 | ":tools_unittests", |
| 37 | ] |
| 38 | if (rtc_enable_protobuf) { |
Yves Gerey | 21cddff | 2018-10-30 21:12:42 +0100 | [diff] [blame] | 39 | if (!build_with_chromium) { |
| 40 | deps += [ ":event_log_visualizer" ] |
| 41 | } |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 42 | deps += [ |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 43 | ":rtp_analyzer", |
Patrik Höglund | 844ce8b | 2017-12-12 15:53:31 +0100 | [diff] [blame] | 44 | ":unpack_aecdump", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 45 | "network_tester", |
| 46 | ] |
| 47 | } |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | rtc_static_library("command_line_parser") { |
| 52 | sources = [ |
| 53 | "simple_command_line_parser.cc", |
| 54 | "simple_command_line_parser.h", |
| 55 | ] |
| 56 | deps = [ |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 57 | "../rtc_base:gtest_prod", |
| 58 | "../rtc_base:rtc_base_approved", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 59 | ] |
| 60 | } |
| 61 | |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 62 | rtc_static_library("video_file_reader") { |
| 63 | sources = [ |
| 64 | "video_file_reader.cc", |
| 65 | "video_file_reader.h", |
| 66 | ] |
| 67 | deps = [ |
| 68 | "../api/video:video_frame", |
| 69 | "../api/video:video_frame_i420", |
| 70 | "../rtc_base:rtc_base_approved", |
| 71 | "//third_party/abseil-cpp/absl/types:optional", |
| 72 | ] |
| 73 | } |
| 74 | |
Paulina Hensman | b671d46 | 2018-09-14 11:32:00 +0200 | [diff] [blame] | 75 | rtc_static_library("video_file_writer") { |
| 76 | sources = [ |
| 77 | "video_file_writer.cc", |
| 78 | "video_file_writer.h", |
| 79 | ] |
| 80 | deps = [ |
| 81 | ":video_file_reader", |
| 82 | "../api/video:video_frame", |
| 83 | "../api/video:video_frame_i420", |
| 84 | "../rtc_base:rtc_base_approved", |
| 85 | "//third_party/abseil-cpp/absl/types:optional", |
| 86 | ] |
| 87 | } |
| 88 | |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 89 | rtc_static_library("video_quality_analysis") { |
| 90 | sources = [ |
Magnus Jedvert | 1927dfa | 2018-09-11 12:56:06 +0200 | [diff] [blame] | 91 | "frame_analyzer/linear_least_squares.cc", |
| 92 | "frame_analyzer/linear_least_squares.h", |
| 93 | "frame_analyzer/video_color_aligner.cc", |
| 94 | "frame_analyzer/video_color_aligner.h", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 95 | "frame_analyzer/video_quality_analysis.cc", |
| 96 | "frame_analyzer/video_quality_analysis.h", |
Magnus Jedvert | 62228c4 | 2018-09-05 15:04:08 +0200 | [diff] [blame] | 97 | "frame_analyzer/video_temporal_aligner.cc", |
| 98 | "frame_analyzer/video_temporal_aligner.h", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 99 | ] |
Mirko Bonadei | 0250be5 | 2017-12-01 13:53:04 +0100 | [diff] [blame] | 100 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 101 | ":video_file_reader", |
Magnus Jedvert | 1927dfa | 2018-09-11 12:56:06 +0200 | [diff] [blame] | 102 | "../api:array_view", |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 103 | "../api/video:video_frame_i420", |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 104 | "../common_video", |
Magnus Jedvert | 62228c4 | 2018-09-05 15:04:08 +0200 | [diff] [blame] | 105 | "../rtc_base:checks", |
| 106 | "../rtc_base:rtc_base_approved", |
Edward Lemur | 2e5966b | 2018-01-30 15:33:02 +0100 | [diff] [blame] | 107 | "../test:perf_test", |
Magnus Jedvert | 62228c4 | 2018-09-05 15:04:08 +0200 | [diff] [blame] | 108 | "//third_party/abseil-cpp/absl/types:optional", |
Mirko Bonadei | 401d056 | 2017-12-14 11:24:00 +0100 | [diff] [blame] | 109 | "//third_party/libyuv", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 110 | ] |
| 111 | } |
| 112 | |
| 113 | rtc_executable("frame_analyzer") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 114 | visibility = [ "*" ] |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 115 | sources = [ |
| 116 | "frame_analyzer/frame_analyzer.cc", |
| 117 | ] |
| 118 | |
| 119 | deps = [ |
| 120 | ":command_line_parser", |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 121 | ":video_file_reader", |
Paulina Hensman | b671d46 | 2018-09-14 11:32:00 +0200 | [diff] [blame] | 122 | ":video_file_writer", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 123 | ":video_quality_analysis", |
Magnus Jedvert | b468ace | 2018-09-05 16:11:48 +0200 | [diff] [blame] | 124 | "../rtc_base:stringutils", |
Edward Lemur | 2e5966b | 2018-01-30 15:33:02 +0100 | [diff] [blame] | 125 | "../test:perf_test", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 126 | ] |
| 127 | } |
| 128 | |
Mirko Bonadei | 080afed | 2018-09-18 13:39:37 +0200 | [diff] [blame] | 129 | if (!build_with_chromium && !build_with_mozilla) { |
| 130 | action("frame_analyzer_host") { |
| 131 | script = "//tools_webrtc/executable_host_build.py" |
| 132 | outputs = [ |
| 133 | "${root_out_dir}/frame_analyzer_host", |
| 134 | ] |
| 135 | args = [ |
| 136 | "--executable_name", |
| 137 | "frame_analyzer", |
| 138 | ] |
| 139 | } |
Mirko Bonadei | b56706f | 2018-09-18 11:03:39 +0200 | [diff] [blame] | 140 | } |
| 141 | |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 142 | # Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid |
| 143 | # building a lot of redundant code as part of Chromium builds. |
| 144 | if (!build_with_chromium) { |
| 145 | rtc_executable("psnr_ssim_analyzer") { |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 146 | sources = [ |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 147 | "psnr_ssim_analyzer/psnr_ssim_analyzer.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 148 | ] |
| 149 | |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 150 | deps = [ |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 151 | ":command_line_parser", |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 152 | ":video_file_reader", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 153 | ":video_quality_analysis", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 154 | ] |
| 155 | } |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 156 | |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 157 | rtc_static_library("reference_less_video_analysis_lib") { |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 158 | sources = [ |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 159 | "frame_analyzer/reference_less_video_analysis_lib.cc", |
| 160 | "frame_analyzer/reference_less_video_analysis_lib.h", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 161 | ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 162 | |
| 163 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 164 | ":video_file_reader", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 165 | ":video_quality_analysis", |
| 166 | ] |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 167 | } |
| 168 | |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 169 | rtc_executable("reference_less_video_analysis") { |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 170 | sources = [ |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 171 | "frame_analyzer/reference_less_video_analysis.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 172 | ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 173 | |
| 174 | deps = [ |
| 175 | ":command_line_parser", |
| 176 | ":reference_less_video_analysis_lib", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 177 | ] |
| 178 | } |
| 179 | |
| 180 | rtc_executable("rgba_to_i420_converter") { |
Per Kjellander | a7f2d84 | 2018-01-10 15:54:53 +0000 | [diff] [blame] | 181 | visibility = [ "*" ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 182 | sources = [ |
| 183 | "converter/converter.cc", |
| 184 | "converter/converter.h", |
| 185 | "converter/rgba_to_i420_converter.cc", |
| 186 | ] |
| 187 | |
| 188 | deps = [ |
| 189 | ":command_line_parser", |
| 190 | "../common_video", |
Mirko Bonadei | 401d056 | 2017-12-14 11:24:00 +0100 | [diff] [blame] | 191 | "//third_party/libyuv", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 192 | ] |
| 193 | } |
| 194 | |
| 195 | rtc_static_library("frame_editing_lib") { |
| 196 | sources = [ |
| 197 | "frame_editing/frame_editing_lib.cc", |
| 198 | "frame_editing/frame_editing_lib.h", |
| 199 | ] |
| 200 | |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 201 | deps = [ |
| 202 | "..:webrtc_common", |
| 203 | "../common_video", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 204 | ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 205 | } |
| 206 | |
| 207 | rtc_executable("frame_editor") { |
| 208 | sources = [ |
| 209 | "frame_editing/frame_editing.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 210 | ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 211 | |
| 212 | deps = [ |
| 213 | ":command_line_parser", |
| 214 | ":frame_editing_lib", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 215 | ] |
| 216 | } |
| 217 | |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 218 | if (rtc_enable_protobuf) { |
| 219 | proto_library("chart_proto") { |
| 220 | sources = [ |
| 221 | "event_log_visualizer/chart.proto", |
| 222 | ] |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 223 | proto_out_dir = "rtc_tools/event_log_visualizer" |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 224 | } |
| 225 | |
| 226 | rtc_static_library("event_log_visualizer_utils") { |
Per Kjellander | a0f5f60 | 2018-01-10 15:57:32 +0000 | [diff] [blame] | 227 | visibility = [ "*" ] |
Karl Wiberg | bb23c83 | 2018-04-22 19:55:00 +0200 | [diff] [blame] | 228 | allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove. |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 229 | sources = [ |
| 230 | "event_log_visualizer/analyzer.cc", |
| 231 | "event_log_visualizer/analyzer.h", |
| 232 | "event_log_visualizer/plot_base.cc", |
| 233 | "event_log_visualizer/plot_base.h", |
| 234 | "event_log_visualizer/plot_protobuf.cc", |
| 235 | "event_log_visualizer/plot_protobuf.h", |
| 236 | "event_log_visualizer/plot_python.cc", |
| 237 | "event_log_visualizer/plot_python.h", |
Bjorn Terelius | 2eb3188 | 2017-11-30 15:15:25 +0100 | [diff] [blame] | 238 | "event_log_visualizer/triage_notifications.h", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 239 | ] |
| 240 | if (!build_with_chromium && is_clang) { |
| 241 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 242 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 243 | } |
| 244 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 245 | deps = [ |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 246 | ":chart_proto", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 247 | "../:webrtc_common", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 248 | "../call:call_interfaces", |
| 249 | "../call:video_stream_api", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 250 | "../logging:rtc_event_log_api", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 251 | "../logging:rtc_event_log_impl_base", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 252 | "../logging:rtc_event_log_parser", |
Qingsi Wang | 970b088 | 2018-02-01 11:04:46 -0800 | [diff] [blame] | 253 | "../logging:rtc_stream_config", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 254 | "../modules/audio_coding:ana_debug_dump_proto", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 255 | "../modules/audio_coding:audio_network_adaptor", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 256 | "../modules/audio_coding:neteq_tools", |
Mirko Bonadei | b5728d9 | 2017-12-06 07:51:33 +0100 | [diff] [blame] | 257 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 258 | "../rtc_base:checks", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 259 | "../rtc_base:rtc_base_approved", |
Bjorn Terelius | 0295a96 | 2017-10-25 17:42:41 +0200 | [diff] [blame] | 260 | "../rtc_base:rtc_numerics", |
Bjorn Terelius | c4ca1d3 | 2018-04-27 14:33:34 +0200 | [diff] [blame] | 261 | "../rtc_base:stringutils", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 262 | |
| 263 | # TODO(kwiberg): Remove this dependency. |
| 264 | "../api/audio_codecs:audio_codecs_api", |
Sebastian Jansson | 5c94f55 | 2018-10-15 18:46:51 +0200 | [diff] [blame] | 265 | "../api/transport:goog_cc", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 266 | "../modules/congestion_controller", |
Sebastian Jansson | 04b18cb | 2018-07-02 09:25:25 +0200 | [diff] [blame] | 267 | "../modules/congestion_controller/goog_cc:delay_based_bwe", |
Sebastian Jansson | 172fd85 | 2018-05-24 14:17:06 +0200 | [diff] [blame] | 268 | "../modules/congestion_controller/goog_cc:estimators", |
Sebastian Jansson | 5c94f55 | 2018-10-15 18:46:51 +0200 | [diff] [blame] | 269 | "../modules/congestion_controller/rtp:transport_feedback", |
Niels Möller | fd6c091 | 2017-10-31 10:19:10 +0100 | [diff] [blame] | 270 | "../modules/pacing", |
Sebastian Jansson | 5c94f55 | 2018-10-15 18:46:51 +0200 | [diff] [blame] | 271 | "../modules/remote_bitrate_estimator", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 272 | "../modules/rtp_rtcp", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 273 | "//third_party/abseil-cpp/absl/memory", |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 274 | ] |
kjellander | 6af0cbf | 2017-09-04 23:42:45 -0700 | [diff] [blame] | 275 | } |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 276 | } |
| 277 | } |
| 278 | |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 279 | if (rtc_include_tests) { |
Yves Gerey | 21cddff | 2018-10-30 21:12:42 +0100 | [diff] [blame] | 280 | if (rtc_enable_protobuf && !build_with_chromium) { |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 281 | rtc_executable("event_log_visualizer") { |
| 282 | testonly = true |
| 283 | sources = [ |
| 284 | "event_log_visualizer/main.cc", |
| 285 | ] |
| 286 | |
| 287 | if (!build_with_chromium && is_clang) { |
| 288 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 289 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 290 | } |
| 291 | |
| 292 | defines = [ "ENABLE_RTC_EVENT_LOG" ] |
| 293 | deps = [ |
| 294 | ":event_log_visualizer_utils", |
Mirko Bonadei | f5ff67c | 2017-12-06 16:31:18 +0100 | [diff] [blame] | 295 | "../logging:rtc_event_log_parser", |
Mirko Bonadei | 818d910 | 2017-12-12 12:46:13 +0100 | [diff] [blame] | 296 | "../rtc_base:protobuf_utils", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 297 | "../rtc_base:rtc_base_approved", |
Mirko Bonadei | 17f4878 | 2018-09-28 08:51:10 +0200 | [diff] [blame] | 298 | "../system_wrappers:field_trial", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 299 | "../test:field_trial", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 300 | "../test:fileutils", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 301 | "../test:test_support", |
| 302 | ] |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | rtc_executable("activity_metric") { |
| 307 | testonly = true |
| 308 | sources = [ |
| 309 | "agc/activity_metric.cc", |
| 310 | ] |
| 311 | |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 312 | deps = [ |
Fredrik Solenberg | bbf21a3 | 2018-04-12 22:44:09 +0200 | [diff] [blame] | 313 | "../api/audio:audio_frame_api", |
Alex Loiko | ed8ff64 | 2018-07-06 14:54:30 +0200 | [diff] [blame] | 314 | "../modules/audio_processing/agc:level_estimation", |
Alex Loiko | 0488fcf | 2018-02-05 11:15:23 +0100 | [diff] [blame] | 315 | "../modules/audio_processing/vad", |
ehmaldonado | f6a861a | 2017-07-19 10:40:47 -0700 | [diff] [blame] | 316 | "../rtc_base:rtc_base_approved", |
Karl Wiberg | 12edf4c | 2018-03-07 14:18:56 +0100 | [diff] [blame] | 317 | "../rtc_base:safe_minmax", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 318 | "../test:test_support", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 319 | "//testing/gtest", |
| 320 | ] |
| 321 | } |
| 322 | |
| 323 | tools_unittests_resources = [ |
Magnus Jedvert | 62228c4 | 2018-09-05 15:04:08 +0200 | [diff] [blame] | 324 | "../resources/foreman_128x96.yuv", |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 325 | "../resources/foreman_cif.yuv", |
| 326 | "../resources/reference_less_video_test_file.y4m", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 327 | ] |
| 328 | |
| 329 | if (is_ios) { |
| 330 | bundle_data("tools_unittests_bundle_data") { |
| 331 | testonly = true |
| 332 | sources = tools_unittests_resources |
| 333 | outputs = [ |
| 334 | "{{bundle_resources_dir}}/{{source_file_part}}", |
| 335 | ] |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | rtc_test("tools_unittests") { |
| 340 | testonly = true |
| 341 | |
| 342 | sources = [ |
Magnus Jedvert | 1927dfa | 2018-09-11 12:56:06 +0200 | [diff] [blame] | 343 | "frame_analyzer/linear_least_squares_unittest.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 344 | "frame_analyzer/reference_less_video_analysis_unittest.cc", |
Magnus Jedvert | 1927dfa | 2018-09-11 12:56:06 +0200 | [diff] [blame] | 345 | "frame_analyzer/video_color_aligner_unittest.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 346 | "frame_analyzer/video_quality_analysis_unittest.cc", |
Magnus Jedvert | 62228c4 | 2018-09-05 15:04:08 +0200 | [diff] [blame] | 347 | "frame_analyzer/video_temporal_aligner_unittest.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 348 | "frame_editing/frame_editing_unittest.cc", |
Oleh Prypin | 66ca7e3 | 2017-09-14 13:05:00 +0200 | [diff] [blame] | 349 | "sanitizers_unittest.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 350 | "simple_command_line_parser_unittest.cc", |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 351 | "video_file_reader_unittest.cc", |
Paulina Hensman | b671d46 | 2018-09-14 11:32:00 +0200 | [diff] [blame] | 352 | "video_file_writer_unittest.cc", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 353 | ] |
| 354 | |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 355 | if (!build_with_chromium && is_clang) { |
| 356 | # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 357 | suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 358 | } |
| 359 | |
| 360 | deps = [ |
| 361 | ":command_line_parser", |
Magnus Jedvert | 10e829a | 2018-09-05 10:46:18 +0200 | [diff] [blame] | 362 | ":video_file_reader", |
Paulina Hensman | b671d46 | 2018-09-14 11:32:00 +0200 | [diff] [blame] | 363 | ":video_file_writer", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 364 | ":video_quality_analysis", |
Mirko Bonadei | 0250be5 | 2017-12-01 13:53:04 +0100 | [diff] [blame] | 365 | "../common_video:common_video", |
Oleh Prypin | 66ca7e3 | 2017-09-14 13:05:00 +0200 | [diff] [blame] | 366 | "../rtc_base", |
Patrik Höglund | a8005cf | 2017-12-13 16:05:42 +0100 | [diff] [blame] | 367 | "../rtc_base:checks", |
Patrik Höglund | 7696bef | 2018-03-15 15:05:39 +0100 | [diff] [blame] | 368 | "../test:fileutils", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 369 | "../test:test_main", |
Yves Gerey | 21cddff | 2018-10-30 21:12:42 +0100 | [diff] [blame] | 370 | "../test:test_support", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 371 | "//testing/gtest", |
Karl Wiberg | 918f50c | 2018-07-05 11:40:33 +0200 | [diff] [blame] | 372 | "//third_party/abseil-cpp/absl/memory", |
Magnus Jedvert | 1927dfa | 2018-09-11 12:56:06 +0200 | [diff] [blame] | 373 | "//third_party/libyuv", |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 374 | ] |
| 375 | |
Yves Gerey | 21cddff | 2018-10-30 21:12:42 +0100 | [diff] [blame] | 376 | if (!build_with_chromium) { |
| 377 | deps += [ |
| 378 | ":frame_editing_lib", |
| 379 | ":reference_less_video_analysis_lib", |
| 380 | ] |
| 381 | } |
| 382 | |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 383 | if (rtc_enable_protobuf) { |
| 384 | deps += [ "network_tester:network_tester_unittests" ] |
| 385 | } |
| 386 | |
| 387 | data = tools_unittests_resources |
| 388 | if (is_android) { |
| 389 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 390 | shard_timeout = 900 |
| 391 | } |
| 392 | if (is_ios) { |
| 393 | deps += [ ":tools_unittests_bundle_data" ] |
| 394 | } |
| 395 | } |
| 396 | |
| 397 | if (rtc_enable_protobuf) { |
| 398 | copy("rtp_analyzer") { |
| 399 | sources = [ |
| 400 | "py_event_log_analyzer/misc.py", |
| 401 | "py_event_log_analyzer/pb_parse.py", |
| 402 | "py_event_log_analyzer/rtp_analyzer.py", |
| 403 | "py_event_log_analyzer/rtp_analyzer.sh", |
| 404 | ] |
| 405 | outputs = [ |
| 406 | "$root_build_dir/{{source_file_part}}", |
| 407 | ] |
| 408 | deps = [ |
| 409 | "../logging:rtc_event_log_proto", |
| 410 | ] |
Patrik Höglund | 844ce8b | 2017-12-12 15:53:31 +0100 | [diff] [blame] | 411 | } # rtp_analyzer |
| 412 | |
| 413 | rtc_executable("unpack_aecdump") { |
Mirko Bonadei | e5a93a7 | 2018-01-10 22:18:27 +0100 | [diff] [blame] | 414 | visibility = [ "*" ] |
Patrik Höglund | 844ce8b | 2017-12-12 15:53:31 +0100 | [diff] [blame] | 415 | testonly = true |
| 416 | sources = [ |
| 417 | "unpack_aecdump/unpack.cc", |
| 418 | ] |
| 419 | |
| 420 | deps = [ |
| 421 | "..:webrtc_common", |
| 422 | "../common_audio", |
| 423 | "../modules/audio_processing", |
| 424 | "../modules/audio_processing:audioproc_debug_proto", |
| 425 | "../modules/audio_processing:audioproc_debug_proto", |
| 426 | "../modules/audio_processing:audioproc_protobuf_utils", |
| 427 | "../modules/audio_processing:audioproc_test_utils", |
| 428 | "../rtc_base:protobuf_utils", |
| 429 | "../rtc_base:rtc_base_approved", |
Patrik Höglund | 844ce8b | 2017-12-12 15:53:31 +0100 | [diff] [blame] | 430 | ] |
| 431 | } # unpack_aecdump |
kjellander | d2b63cf | 2017-06-30 03:04:59 -0700 | [diff] [blame] | 432 | } |
| 433 | } |