kjellander | d2b63cf | 2017-06-30 10:04:59 | [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. |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 8 | import("../webrtc.gni") |
Kimmo Kinnunen | 08f6a6c | 2019-02-26 09:46:17 | [diff] [blame] | 9 | if (rtc_enable_protobuf) { |
| 10 | import("//third_party/protobuf/proto_library.gni") |
| 11 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 12 | |
| 13 | group("rtc_tools") { |
| 14 | # This target shall build all targets in tools/. |
| 15 | testonly = true |
| 16 | |
Mirko Bonadei | 858864d | 2022-11-18 12:25:21 | [diff] [blame] | 17 | deps = [ ":video_file_reader" ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 18 | if (!build_with_chromium) { |
Mirko Bonadei | f5ff67c | 2017-12-06 15:31:18 | [diff] [blame] | 19 | deps += [ |
Mirko Bonadei | f45f823 | 2022-11-18 13:05:13 | [diff] [blame] | 20 | ":frame_analyzer", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 21 | ":psnr_ssim_analyzer", |
Mirko Bonadei | 08ce986 | 2020-06-11 09:25:32 | [diff] [blame] | 22 | ":video_quality_analysis", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 23 | ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 24 | } |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 25 | if (!build_with_chromium && rtc_enable_protobuf) { |
| 26 | deps += [ ":chart_proto" ] |
| 27 | } |
| 28 | if (!build_with_chromium && rtc_include_tests) { |
Sergey Silkin | b1bdadc | 2022-12-01 15:30:38 | [diff] [blame] | 29 | deps += [ ":tools_unittests" ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 30 | } |
| 31 | if (rtc_include_tests && rtc_enable_protobuf) { |
| 32 | deps += [ |
| 33 | ":rtp_analyzer", |
| 34 | "network_tester", |
| 35 | ] |
| 36 | } |
| 37 | if (rtc_include_tests && rtc_enable_protobuf && !build_with_chromium) { |
| 38 | deps += [ |
| 39 | ":audioproc_f", |
| 40 | ":event_log_visualizer", |
Björn Terelius | b324206 | 2022-10-05 12:55:53 | [diff] [blame] | 41 | ":rtc_event_log_to_text", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 42 | ":unpack_aecdump", |
| 43 | ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 44 | } |
Florent Castelli | 023be3c | 2022-03-15 15:01:52 | [diff] [blame] | 45 | if (!build_with_chromium && rtc_enable_grpc) { |
| 46 | deps += [ "data_channel_benchmark" ] |
| 47 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 48 | } |
| 49 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 50 | rtc_library("video_file_reader") { |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 51 | sources = [ |
| 52 | "video_file_reader.cc", |
| 53 | "video_file_reader.h", |
| 54 | ] |
| 55 | deps = [ |
Niels Möller | 105711e | 2022-06-14 13:48:26 | [diff] [blame] | 56 | "../api:make_ref_counted", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 57 | "../api:scoped_refptr", |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 58 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 59 | "../api/video:video_rtp_headers", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 60 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 61 | "../rtc_base:logging", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 62 | "../rtc_base:refcount", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 63 | "../rtc_base:stringutils", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 64 | ] |
| 65 | absl_deps = [ |
Steve Anton | 68586e8 | 2018-12-14 01:41:25 | [diff] [blame] | 66 | "//third_party/abseil-cpp/absl/strings", |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 67 | "//third_party/abseil-cpp/absl/types:optional", |
| 68 | ] |
| 69 | } |
| 70 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 71 | rtc_library("video_file_writer") { |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 72 | sources = [ |
| 73 | "video_file_writer.cc", |
| 74 | "video_file_writer.h", |
| 75 | ] |
| 76 | deps = [ |
| 77 | ":video_file_reader", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 78 | "../api:scoped_refptr", |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 79 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 80 | "../api/video:video_rtp_headers", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 81 | "../rtc_base:logging", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 82 | ] |
| 83 | absl_deps = [ |
Steve Anton | 68586e8 | 2018-12-14 01:41:25 | [diff] [blame] | 84 | "//third_party/abseil-cpp/absl/strings", |
Paulina Hensman | b671d46 | 2018-09-14 09:32:00 | [diff] [blame] | 85 | "//third_party/abseil-cpp/absl/types:optional", |
| 86 | ] |
| 87 | } |
| 88 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 89 | rtc_library("video_quality_analysis") { |
Patrik Höglund | 2ea2796 | 2020-01-13 14:10:40 | [diff] [blame] | 90 | testonly = true |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 91 | sources = [ |
Magnus Jedvert | 1927dfa | 2018-09-11 10:56:06 | [diff] [blame] | 92 | "frame_analyzer/linear_least_squares.cc", |
| 93 | "frame_analyzer/linear_least_squares.h", |
| 94 | "frame_analyzer/video_color_aligner.cc", |
| 95 | "frame_analyzer/video_color_aligner.h", |
Magnus Jedvert | 286df00 | 2018-11-22 14:17:30 | [diff] [blame] | 96 | "frame_analyzer/video_geometry_aligner.cc", |
| 97 | "frame_analyzer/video_geometry_aligner.h", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 98 | "frame_analyzer/video_quality_analysis.cc", |
| 99 | "frame_analyzer/video_quality_analysis.h", |
Magnus Jedvert | 62228c4 | 2018-09-05 13:04:08 | [diff] [blame] | 100 | "frame_analyzer/video_temporal_aligner.cc", |
| 101 | "frame_analyzer/video_temporal_aligner.h", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 102 | ] |
Mirko Bonadei | 0250be5 | 2017-12-01 12:53:04 | [diff] [blame] | 103 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 104 | ":video_file_reader", |
Magnus Jedvert | 1927dfa | 2018-09-11 10:56:06 | [diff] [blame] | 105 | "../api:array_view", |
Niels Möller | 105711e | 2022-06-14 13:48:26 | [diff] [blame] | 106 | "../api:make_ref_counted", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 107 | "../api:scoped_refptr", |
Artem Titov | 5e7e411 | 2022-09-26 08:29:22 | [diff] [blame] | 108 | "../api/numerics", |
| 109 | "../api/test/metrics:metric", |
| 110 | "../api/test/metrics:metrics_logger", |
Magnus Jedvert | 286df00 | 2018-11-22 14:17:30 | [diff] [blame] | 111 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 112 | "../api/video:video_rtp_headers", |
Mirko Bonadei | f5ff67c | 2017-12-06 15:31:18 | [diff] [blame] | 113 | "../common_video", |
Magnus Jedvert | 62228c4 | 2018-09-05 13:04:08 | [diff] [blame] | 114 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 115 | "../rtc_base:logging", |
Mirko Bonadei | 401d056 | 2017-12-14 10:24:00 | [diff] [blame] | 116 | "//third_party/libyuv", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 117 | ] |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 118 | absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 119 | } |
| 120 | |
Mirko Bonadei | 647968f | 2020-04-01 11:26:24 | [diff] [blame] | 121 | # TODO(bugs.webrtc.org/11474): Enable this on win if needed. For now it |
| 122 | # is only required for Linux and Android. |
Mirko Bonadei | e50c979 | 2020-04-20 15:48:26 | [diff] [blame] | 123 | if (!build_with_chromium && !build_with_mozilla && !is_win && !is_ios) { |
Mirko Bonadei | 080afed | 2018-09-18 11:39:37 | [diff] [blame] | 124 | action("frame_analyzer_host") { |
| 125 | script = "//tools_webrtc/executable_host_build.py" |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 126 | outputs = [ "${root_out_dir}/frame_analyzer_host" ] |
Mirko Bonadei | 080afed | 2018-09-18 11:39:37 | [diff] [blame] | 127 | args = [ |
| 128 | "--executable_name", |
| 129 | "frame_analyzer", |
| 130 | ] |
| 131 | } |
Mirko Bonadei | b56706f | 2018-09-18 09:03:39 | [diff] [blame] | 132 | } |
| 133 | |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 134 | if (!is_component_build) { |
| 135 | # This target can be built from Chromium but it doesn't support |
| 136 | # is_component_build=true because it depends on WebRTC testonly code |
| 137 | # which is not part of //third_party/webrtc_overrides:webrtc_component. |
Andrey Logvin | 7864600 | 2021-01-29 10:50:19 | [diff] [blame] | 138 | |
| 139 | # Abseil dependencies are not moved to the absl_deps field deliberately. |
| 140 | # If build_with_chromium is true, the absl_deps replaces the dependencies with |
| 141 | # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags |
| 142 | # (and some others) because they cannot be used in Chromiums. Special exception |
| 143 | # for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows |
| 144 | # it to be build in chromium. |
Mirko Bonadei | 858864d | 2022-11-18 12:25:21 | [diff] [blame] | 145 | rtc_executable("frame_analyzer") { |
| 146 | visibility = [ "*" ] |
| 147 | testonly = true |
| 148 | sources = [ "frame_analyzer/frame_analyzer.cc" ] |
| 149 | |
| 150 | deps = [ |
| 151 | ":video_file_reader", |
| 152 | ":video_file_writer", |
| 153 | ":video_quality_analysis", |
| 154 | "../api:make_ref_counted", |
| 155 | "../api:scoped_refptr", |
| 156 | "../api/test/metrics:chrome_perf_dashboard_metrics_exporter", |
| 157 | "../api/test/metrics:global_metrics_logger_and_exporter", |
| 158 | "../api/test/metrics:metrics_exporter", |
| 159 | "../api/test/metrics:stdout_metrics_exporter", |
| 160 | "../rtc_base:stringutils", |
| 161 | "//third_party/abseil-cpp/absl/flags:flag", |
| 162 | "//third_party/abseil-cpp/absl/flags:parse", |
| 163 | "//third_party/abseil-cpp/absl/strings", |
| 164 | ] |
| 165 | |
| 166 | if (build_with_chromium) { |
| 167 | # When building from Chromium, WebRTC's metrics and field trial |
| 168 | # implementations need to be replaced by the Chromium ones. |
| 169 | deps += [ "//third_party/webrtc_overrides:webrtc_component" ] |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | # This target can be built from Chromium but it doesn't support |
| 174 | # is_component_build=true because it depends on WebRTC testonly code |
| 175 | # which is not part of //third_party/webrtc_overrides:webrtc_component. |
| 176 | |
| 177 | # Abseil dependencies are not moved to the absl_deps field deliberately. |
| 178 | # If build_with_chromium is true, the absl_deps replaces the dependencies with |
| 179 | # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags |
| 180 | # (and some others) because they cannot be used in Chromiums. Special exception |
| 181 | # for the "rtp_generator" target in "third_party/abseil-cpp/absl.gni" allows |
| 182 | # it to be build in chromium. |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 183 | rtc_executable("rtp_generator") { |
| 184 | visibility = [ "*" ] |
| 185 | testonly = true |
| 186 | sources = [ |
| 187 | "rtp_generator/main.cc", |
| 188 | "rtp_generator/rtp_generator.cc", |
| 189 | "rtp_generator/rtp_generator.h", |
| 190 | ] |
| 191 | |
| 192 | deps = [ |
Ying Wang | bc959b1 | 2023-04-03 02:54:31 | [diff] [blame] | 193 | "..//api/video_codecs:video_decoder_factory_template", |
| 194 | "..//api/video_codecs:video_decoder_factory_template_dav1d_adapter", |
| 195 | "..//api/video_codecs:video_decoder_factory_template_libvpx_vp8_adapter", |
| 196 | "..//api/video_codecs:video_decoder_factory_template_libvpx_vp9_adapter", |
| 197 | "..//api/video_codecs:video_decoder_factory_template_open_h264_adapter", |
| 198 | "..//api/video_codecs:video_encoder_factory_template", |
| 199 | "..//api/video_codecs:video_encoder_factory_template_libaom_av1_adapter", |
| 200 | "..//api/video_codecs:video_encoder_factory_template_libvpx_vp8_adapter", |
| 201 | "..//api/video_codecs:video_encoder_factory_template_libvpx_vp9_adapter", |
| 202 | "..//api/video_codecs:video_encoder_factory_template_open_h264_adapter", |
Artem Titov | d12582a | 2023-04-12 13:29:07 | [diff] [blame] | 203 | "../api:create_frame_generator", |
| 204 | "../api:rtp_parameters", |
| 205 | "../api:transport_api", |
| 206 | "../api/rtc_event_log", |
| 207 | "../api/task_queue:default_task_queue_factory", |
| 208 | "../api/task_queue:task_queue", |
| 209 | "../api/video:builtin_video_bitrate_allocator_factory", |
| 210 | "../api/video_codecs:video_codecs_api", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 211 | "../call", |
| 212 | "../call:call_interfaces", |
| 213 | "../call:fake_network", |
| 214 | "../call:rtp_interfaces", |
| 215 | "../call:rtp_sender", |
| 216 | "../call:simulated_network", |
| 217 | "../call:simulated_packet_receiver", |
| 218 | "../call:video_stream_api", |
Harald Alvestrand | 794d599 | 2022-12-16 09:54:57 | [diff] [blame] | 219 | "../media:media_constants", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 220 | "../media:rtc_audio_video", |
| 221 | "../media:rtc_media_base", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 222 | "../rtc_base:rtc_json", |
Mirko Bonadei | e5f4c6b | 2021-01-15 09:41:01 | [diff] [blame] | 223 | "../rtc_base:threading", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 224 | "../rtc_base/system:file_wrapper", |
| 225 | "../test:fileutils", |
Artem Titov | d12582a | 2023-04-12 13:29:07 | [diff] [blame] | 226 | "../test:frame_generator_capturer", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 227 | "../test:rtp_test_utils", |
Jonas Oreland | 6c2dae2 | 2022-09-29 08:28:24 | [diff] [blame] | 228 | "../video/config:encoder_config", |
Jonas Oreland | 1262eb5 | 2022-09-27 14:53:04 | [diff] [blame] | 229 | "../video/config:streams_config", |
Mirko Bonadei | a95949e | 2019-06-25 06:46:18 | [diff] [blame] | 230 | "//third_party/abseil-cpp/absl/flags:flag", |
| 231 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 06cdb23 | 2019-07-19 08:02:46 | [diff] [blame] | 232 | "//third_party/abseil-cpp/absl/flags:usage", |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 233 | "//third_party/abseil-cpp/absl/strings", |
| 234 | ] |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 235 | if (build_with_chromium) { |
| 236 | # When building from Chromium, WebRTC's metrics and field trial |
| 237 | # implementations need to be replaced by the Chromium ones. |
| 238 | deps += [ "//third_party/webrtc_overrides:webrtc_component" ] |
| 239 | } |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 240 | } |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 241 | |
| 242 | # This target can be built from Chromium but it doesn't support |
| 243 | # is_component_build=true because it depends on WebRTC testonly code |
| 244 | # which is not part of //third_party/webrtc_overrides:webrtc_component. |
Andrey Logvin | 7864600 | 2021-01-29 10:50:19 | [diff] [blame] | 245 | |
| 246 | # Abseil dependencies are not moved to the absl_deps field deliberately. |
| 247 | # If build_with_chromium is true, the absl_deps replaces the dependencies with |
| 248 | # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags |
| 249 | # (and some others) because they cannot be used in Chromiums. Special exception |
Mirko Bonadei | 858864d | 2022-11-18 12:25:21 | [diff] [blame] | 250 | # for the "video_replay" target in "third_party/abseil-cpp/absl.gni" allows |
Andrey Logvin | 7864600 | 2021-01-29 10:50:19 | [diff] [blame] | 251 | # it to be build in chromium. |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 252 | rtc_executable("video_replay") { |
| 253 | visibility = [ "*" ] |
| 254 | testonly = true |
| 255 | sources = [ "video_replay.cc" ] |
| 256 | deps = [ |
philipel | 525891a | 2022-10-03 12:54:09 | [diff] [blame] | 257 | "../api:field_trials", |
Per K | bdf30c8 | 2023-01-18 08:49:28 | [diff] [blame] | 258 | "../api:rtp_parameters", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 259 | "../api/rtc_event_log", |
| 260 | "../api/task_queue:default_task_queue_factory", |
| 261 | "../api/test/video:function_video_factory", |
| 262 | "../api/transport:field_trial_based_config", |
Per K | bdf30c8 | 2023-01-18 08:49:28 | [diff] [blame] | 263 | "../api/units:timestamp", |
Philipp Hancke | fae4fb1 | 2021-01-26 17:05:56 | [diff] [blame] | 264 | "../api/video:video_frame", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 265 | "../api/video_codecs:video_codecs_api", |
| 266 | "../call", |
| 267 | "../call:call_interfaces", |
| 268 | "../common_video", |
| 269 | "../media:rtc_internal_video_codecs", |
Danil Chapovalov | 76a35d9 | 2021-06-08 10:30:46 | [diff] [blame] | 270 | "../modules/rtp_rtcp:rtp_rtcp_format", |
Philipp Hancke | fae4fb1 | 2021-01-26 17:05:56 | [diff] [blame] | 271 | "../modules/video_coding:video_coding_utility", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 272 | "../rtc_base:checks", |
| 273 | "../rtc_base:rtc_json", |
| 274 | "../rtc_base:stringutils", |
| 275 | "../rtc_base:timeutils", |
| 276 | "../system_wrappers", |
| 277 | "../test:call_config_utils", |
| 278 | "../test:encoder_settings", |
| 279 | "../test:fake_video_codecs", |
| 280 | "../test:null_transport", |
| 281 | "../test:rtp_test_utils", |
Niels Möller | 65b2d8a | 2022-05-19 14:06:23 | [diff] [blame] | 282 | "../test:run_loop", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 283 | "../test:run_test", |
| 284 | "../test:run_test_interface", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 285 | "../test:test_renderer", |
| 286 | "../test:test_support", |
Artem Titov | 86ad48c | 2023-03-24 22:31:10 | [diff] [blame] | 287 | "../test:test_video_capturer", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 288 | "../test:video_test_common", |
Artem Titov | 8a9f3a8 | 2023-04-25 07:56:49 | [diff] [blame] | 289 | "../test:video_test_constants", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 290 | "../test:video_test_support", |
philipel | 4426c47 | 2022-10-03 15:28:55 | [diff] [blame] | 291 | "../test/time_controller:time_controller", |
Mirko Bonadei | d4c3c3a | 2020-02-07 09:02:31 | [diff] [blame] | 292 | "//third_party/abseil-cpp/absl/flags:flag", |
| 293 | "//third_party/abseil-cpp/absl/flags:parse", |
| 294 | ] |
| 295 | if (build_with_chromium) { |
| 296 | # When building from Chromium, WebRTC's metrics and field trial |
| 297 | # implementations need to be replaced by the Chromium ones. |
| 298 | deps += [ "//third_party/webrtc_overrides:webrtc_component" ] |
| 299 | } |
| 300 | } |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 301 | } |
Mirko Bonadei | 8573aae | 2019-02-04 14:21:46 | [diff] [blame] | 302 | |
Mirko Bonadei | a5cec55 | 2020-02-06 09:16:20 | [diff] [blame] | 303 | # Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid |
| 304 | # building a lot of redundant code as part of Chromium builds. |
| 305 | if (!build_with_chromium) { |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 306 | rtc_executable("psnr_ssim_analyzer") { |
Mirko Bonadei | 8e032c8 | 2019-06-25 06:51:01 | [diff] [blame] | 307 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 308 | sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 309 | |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 310 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 311 | ":video_file_reader", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 312 | ":video_quality_analysis", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 313 | "../api:scoped_refptr", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 314 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 315 | "../api/video:video_rtp_headers", |
Mirko Bonadei | 8e032c8 | 2019-06-25 06:51:01 | [diff] [blame] | 316 | "//third_party/abseil-cpp/absl/flags:flag", |
| 317 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 4e72245 | 2019-07-19 08:08:41 | [diff] [blame] | 318 | "//third_party/abseil-cpp/absl/flags:usage", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 319 | ] |
| 320 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 321 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 322 | rtc_library("reference_less_video_analysis_lib") { |
Patrik Höglund | 2ea2796 | 2020-01-13 14:10:40 | [diff] [blame] | 323 | testonly = true |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 324 | sources = [ |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 325 | "frame_analyzer/reference_less_video_analysis_lib.cc", |
| 326 | "frame_analyzer/reference_less_video_analysis_lib.h", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 327 | ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 328 | |
| 329 | deps = [ |
Magnus Jedvert | 10e829a | 2018-09-05 08:46:18 | [diff] [blame] | 330 | ":video_file_reader", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 331 | ":video_quality_analysis", |
Mirko Bonadei | d970807 | 2019-01-25 19:26:48 | [diff] [blame] | 332 | "../api:scoped_refptr", |
Yves Gerey | 3e70781 | 2018-11-28 15:47:49 | [diff] [blame] | 333 | "../api/video:video_frame", |
Chen Xing | 5d24b16 | 2019-06-10 10:59:38 | [diff] [blame] | 334 | "../api/video:video_rtp_headers", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 335 | ] |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 336 | } |
| 337 | |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 338 | rtc_executable("reference_less_video_analysis") { |
Mirko Bonadei | 6d6b0fb | 2019-06-25 06:49:03 | [diff] [blame] | 339 | testonly = true |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 340 | sources = [ "frame_analyzer/reference_less_video_analysis.cc" ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 341 | |
| 342 | deps = [ |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 343 | ":reference_less_video_analysis_lib", |
Mirko Bonadei | 6d6b0fb | 2019-06-25 06:49:03 | [diff] [blame] | 344 | "//third_party/abseil-cpp/absl/flags:flag", |
| 345 | "//third_party/abseil-cpp/absl/flags:parse", |
Mirko Bonadei | 7ddca16 | 2019-07-19 08:32:16 | [diff] [blame] | 346 | "//third_party/abseil-cpp/absl/flags:usage", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 347 | ] |
| 348 | } |
| 349 | |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 350 | if (rtc_enable_protobuf) { |
| 351 | proto_library("chart_proto") { |
Bjorn Terelius | 9b809d3 | 2019-04-24 15:12:45 | [diff] [blame] | 352 | visibility = [ "*" ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 353 | sources = [ |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 354 | "rtc_event_log_visualizer/proto/chart.proto", |
| 355 | "rtc_event_log_visualizer/proto/chart_enums.proto", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 356 | ] |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 357 | proto_out_dir = "rtc_tools/rtc_event_log_visualizer/proto" |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 358 | } |
| 359 | |
Mirko Bonadei | 86d053c | 2019-10-17 19:32:04 | [diff] [blame] | 360 | rtc_library("event_log_visualizer_utils") { |
Per Kjellander | a0f5f60 | 2018-01-10 15:57:32 | [diff] [blame] | 361 | visibility = [ "*" ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 362 | sources = [ |
Bjorn Terelius | 48b8279 | 2020-05-19 08:57:24 | [diff] [blame] | 363 | "rtc_event_log_visualizer/alerts.cc", |
| 364 | "rtc_event_log_visualizer/alerts.h", |
Bjorn Terelius | c186e14 | 2020-06-05 08:47:19 | [diff] [blame] | 365 | "rtc_event_log_visualizer/analyze_audio.cc", |
| 366 | "rtc_event_log_visualizer/analyze_audio.h", |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 367 | "rtc_event_log_visualizer/analyzer.cc", |
| 368 | "rtc_event_log_visualizer/analyzer.h", |
Bjorn Terelius | 48b8279 | 2020-05-19 08:57:24 | [diff] [blame] | 369 | "rtc_event_log_visualizer/analyzer_common.cc", |
| 370 | "rtc_event_log_visualizer/analyzer_common.h", |
Mirko Bonadei | 575998c | 2019-07-25 11:57:41 | [diff] [blame] | 371 | "rtc_event_log_visualizer/log_simulation.cc", |
| 372 | "rtc_event_log_visualizer/log_simulation.h", |
| 373 | "rtc_event_log_visualizer/plot_base.cc", |
| 374 | "rtc_event_log_visualizer/plot_base.h", |
| 375 | "rtc_event_log_visualizer/plot_protobuf.cc", |
| 376 | "rtc_event_log_visualizer/plot_protobuf.h", |
| 377 | "rtc_event_log_visualizer/plot_python.cc", |
| 378 | "rtc_event_log_visualizer/plot_python.h", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 379 | ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 380 | deps = [ |
Mirko Bonadei | f5ff67c | 2017-12-06 15:31:18 | [diff] [blame] | 381 | ":chart_proto", |
Artem Titov | 741daaf | 2019-03-21 13:37:36 | [diff] [blame] | 382 | "../api:function_view", |
Niels Möller | 0d863f7 | 2020-11-24 16:50:31 | [diff] [blame] | 383 | "../api:network_state_predictor_api", |
Mirko Bonadei | 22ca4fb | 2022-06-24 12:23:17 | [diff] [blame] | 384 | "../modules/audio_coding:neteq_input_audio_tools", |
| 385 | "../modules/audio_coding:neteq_tools_minimal", |
Mirko Bonadei | 3663ed3 | 2019-10-19 10:03:23 | [diff] [blame] | 386 | "../rtc_base:ignore_wundef", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 387 | "../rtc_base:logging", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 388 | "../rtc_base:macromagic", |
Florent Castelli | 6bb1fd3 | 2022-04-19 13:58:39 | [diff] [blame] | 389 | "../rtc_base:rate_statistics", |
Florent Castelli | f86f6f9 | 2022-04-05 00:54:12 | [diff] [blame] | 390 | "../rtc_base:refcount", |
Niels Möller | 3f651d8 | 2018-12-19 14:06:17 | [diff] [blame] | 391 | |
| 392 | # TODO(kwiberg): Remove this dependency. |
| 393 | "../api/audio_codecs:audio_codecs_api", |
Sebastian Jansson | 95edb03 | 2019-01-17 15:24:12 | [diff] [blame] | 394 | "../api/transport:field_trial_based_config", |
Niels Möller | 3f651d8 | 2018-12-19 14:06:17 | [diff] [blame] | 395 | "../api/transport:goog_cc", |
Sebastian Jansson | 1175ae0 | 2019-03-13 07:56:58 | [diff] [blame] | 396 | "../api/transport:network_control", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 397 | "../call:call_interfaces", |
| 398 | "../call:video_stream_api", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 399 | "../logging:rtc_event_log_parser", |
Qingsi Wang | 970b088 | 2018-02-01 19:04:46 | [diff] [blame] | 400 | "../logging:rtc_stream_config", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 401 | "../modules/audio_coding:ana_debug_dump_proto", |
Mirko Bonadei | 818d910 | 2017-12-12 11:46:13 | [diff] [blame] | 402 | "../modules/audio_coding:audio_network_adaptor", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 403 | "../modules/audio_coding:neteq_tools", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 404 | "../modules/congestion_controller", |
Sebastian Jansson | 04b18cb | 2018-07-02 07:25:25 | [diff] [blame] | 405 | "../modules/congestion_controller/goog_cc:delay_based_bwe", |
Sebastian Jansson | 172fd85 | 2018-05-24 12:17:06 | [diff] [blame] | 406 | "../modules/congestion_controller/goog_cc:estimators", |
Sebastian Jansson | 5c94f55 | 2018-10-15 16:46:51 | [diff] [blame] | 407 | "../modules/congestion_controller/rtp:transport_feedback", |
Niels Möller | fd6c091 | 2017-10-31 09:19:10 | [diff] [blame] | 408 | "../modules/pacing", |
Sebastian Jansson | 5c94f55 | 2018-10-15 16:46:51 | [diff] [blame] | 409 | "../modules/remote_bitrate_estimator", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 410 | "../modules/rtp_rtcp", |
Niels Möller | 3f651d8 | 2018-12-19 14:06:17 | [diff] [blame] | 411 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 412 | "../rtc_base:checks", |
Niels Möller | 3f651d8 | 2018-12-19 14:06:17 | [diff] [blame] | 413 | "../rtc_base:rtc_numerics", |
| 414 | "../rtc_base:stringutils", |
Paul Hallak | 46fbefa | 2021-05-21 16:53:28 | [diff] [blame] | 415 | "../system_wrappers", |
Björn Terelius | ae1892d | 2020-06-17 09:55:55 | [diff] [blame] | 416 | "../test:explicit_key_value_config", |
Mirko Bonadei | 2dcf348 | 2020-06-05 12:30:41 | [diff] [blame] | 417 | ] |
| 418 | absl_deps = [ |
Björn Terelius | c69c1bb | 2019-10-11 13:06:58 | [diff] [blame] | 419 | "//third_party/abseil-cpp/absl/algorithm:container", |
Danil Chapovalov | e904161 | 2021-02-22 11:43:39 | [diff] [blame] | 420 | "//third_party/abseil-cpp/absl/base:core_headers", |
Per Kjellander | fe2063e | 2021-05-12 07:02:43 | [diff] [blame] | 421 | "//third_party/abseil-cpp/absl/functional:bind_front", |
Bjorn Terelius | 6c4b1b7 | 2019-01-11 12:01:29 | [diff] [blame] | 422 | "//third_party/abseil-cpp/absl/strings", |
Bjorn Terelius | c186e14 | 2020-06-05 08:47:19 | [diff] [blame] | 423 | "//third_party/abseil-cpp/absl/types:optional", |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 424 | ] |
kjellander | 6af0cbf | 2017-09-05 06:42:45 | [diff] [blame] | 425 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 426 | } |
Jianhui Dai | 18f66fc | 2023-06-12 11:36:03 | [diff] [blame] | 427 | |
| 428 | rtc_executable("video_encoder") { |
| 429 | visibility = [ "*" ] |
| 430 | testonly = true |
Jianhui Dai | a2e945e | 2023-06-19 01:36:42 | [diff] [blame] | 431 | sources = [ |
| 432 | "video_encoder/encoded_image_file_writer.cc", |
| 433 | "video_encoder/encoded_image_file_writer.h", |
| 434 | "video_encoder/video_encoder.cc", |
| 435 | ] |
Jianhui Dai | 18f66fc | 2023-06-12 11:36:03 | [diff] [blame] | 436 | deps = [ |
| 437 | "//api:create_frame_generator", |
| 438 | "//api:frame_generator_api", |
| 439 | "//api/video:builtin_video_bitrate_allocator_factory", |
| 440 | "//api/video_codecs:builtin_video_encoder_factory", |
| 441 | "//api/video_codecs:video_codecs_api", |
| 442 | "//modules/video_coding:video_codec_interface", |
| 443 | "//modules/video_coding:video_coding_utility", |
| 444 | "//modules/video_coding/codecs/av1:av1_svc_config", |
| 445 | "//modules/video_coding/svc:scalability_mode_util", |
| 446 | "//rtc_base:logging", |
Jianhui Dai | 4d752ec | 2023-07-13 09:16:37 | [diff] [blame] | 447 | "//test:y4m_frame_generator", |
Jianhui Dai | 18f66fc | 2023-06-12 11:36:03 | [diff] [blame] | 448 | "//third_party/abseil-cpp/absl/flags:flag", |
| 449 | "//third_party/abseil-cpp/absl/flags:parse", |
| 450 | "//third_party/abseil-cpp/absl/flags:usage", |
| 451 | ] |
| 452 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 453 | } |
| 454 | |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 455 | if (rtc_include_tests) { |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 456 | if (!build_with_chromium) { |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 457 | if (rtc_enable_protobuf) { |
| 458 | rtc_executable("event_log_visualizer") { |
Mirko Bonadei | 6183a0f | 2022-07-05 19:19:43 | [diff] [blame] | 459 | # TODO(bugs.webrtc.org/14248): Remove once usage of std::tmpnam |
| 460 | # is removed (in favor of in memory InputAudioFile. |
| 461 | cflags_cc = [ "-Wno-deprecated-declarations" ] |
| 462 | sources = [ |
| 463 | "rtc_event_log_visualizer/conversational_speech_en.h", |
| 464 | "rtc_event_log_visualizer/main.cc", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 465 | ] |
| 466 | deps = [ |
| 467 | ":event_log_visualizer_utils", |
| 468 | "../api/neteq:neteq_api", |
| 469 | "../api/rtc_event_log", |
| 470 | "../logging:rtc_event_log_parser", |
| 471 | "../modules/audio_coding:neteq", |
| 472 | "../modules/rtp_rtcp:rtp_rtcp_format", |
| 473 | "../rtc_base:checks", |
Florent Castelli | 0af55ba | 2022-04-04 13:06:30 | [diff] [blame] | 474 | "../rtc_base:logging", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 475 | "../rtc_base:protobuf_utils", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 476 | "../system_wrappers:field_trial", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 477 | "//third_party/abseil-cpp/absl/algorithm:container", |
| 478 | "//third_party/abseil-cpp/absl/flags:config", |
| 479 | "//third_party/abseil-cpp/absl/flags:flag", |
| 480 | "//third_party/abseil-cpp/absl/flags:parse", |
| 481 | "//third_party/abseil-cpp/absl/flags:usage", |
| 482 | "//third_party/abseil-cpp/absl/strings", |
| 483 | ] |
| 484 | } |
Björn Terelius | b324206 | 2022-10-05 12:55:53 | [diff] [blame] | 485 | |
| 486 | rtc_executable("rtc_event_log_to_text") { |
| 487 | testonly = true |
| 488 | sources = [ |
| 489 | "rtc_event_log_to_text/converter.cc", |
| 490 | "rtc_event_log_to_text/converter.h", |
| 491 | "rtc_event_log_to_text/main.cc", |
| 492 | ] |
| 493 | deps = [ |
| 494 | "../api/rtc_event_log", |
| 495 | "../logging:ice_log", |
| 496 | "../logging:rtc_event_audio", |
| 497 | "../logging:rtc_event_begin_end", |
| 498 | "../logging:rtc_event_bwe", |
| 499 | "../logging:rtc_event_frame_events", |
| 500 | "../logging:rtc_event_generic_packet_events", |
| 501 | "../logging:rtc_event_log2_proto", |
| 502 | "../logging:rtc_event_log_impl_encoder", |
| 503 | "../logging:rtc_event_log_parser", |
| 504 | "../logging:rtc_event_log_proto", |
| 505 | "../logging:rtc_event_pacing", |
| 506 | "../logging:rtc_event_rtp_rtcp", |
| 507 | "../logging:rtc_event_video", |
| 508 | "../logging:rtc_stream_config", |
| 509 | "../rtc_base:checks", |
| 510 | "../rtc_base:logging", |
| 511 | "//third_party/abseil-cpp/absl/base:core_headers", |
| 512 | "//third_party/abseil-cpp/absl/flags:flag", |
| 513 | "//third_party/abseil-cpp/absl/flags:parse", |
| 514 | "//third_party/abseil-cpp/absl/flags:usage", |
| 515 | "//third_party/abseil-cpp/absl/strings", |
| 516 | ] |
| 517 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 518 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 519 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 520 | tools_unittests_resources = [ |
| 521 | "../resources/foreman_128x96.yuv", |
| 522 | "../resources/foreman_cif.yuv", |
| 523 | "../resources/reference_less_video_test_file.y4m", |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 524 | ] |
| 525 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 526 | if (is_ios) { |
| 527 | bundle_data("tools_unittests_bundle_data") { |
| 528 | testonly = true |
| 529 | sources = tools_unittests_resources |
| 530 | outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ] |
| 531 | } |
| 532 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 533 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 534 | rtc_test("tools_unittests") { |
| 535 | testonly = true |
| 536 | |
| 537 | sources = [ |
| 538 | "frame_analyzer/linear_least_squares_unittest.cc", |
| 539 | "frame_analyzer/reference_less_video_analysis_unittest.cc", |
| 540 | "frame_analyzer/video_color_aligner_unittest.cc", |
| 541 | "frame_analyzer/video_geometry_aligner_unittest.cc", |
| 542 | "frame_analyzer/video_quality_analysis_unittest.cc", |
| 543 | "frame_analyzer/video_temporal_aligner_unittest.cc", |
| 544 | "sanitizers_unittest.cc", |
| 545 | "video_file_reader_unittest.cc", |
| 546 | "video_file_writer_unittest.cc", |
| 547 | ] |
| 548 | |
| 549 | deps = [ |
| 550 | ":video_file_reader", |
| 551 | ":video_file_writer", |
| 552 | ":video_quality_analysis", |
| 553 | "../api:scoped_refptr", |
Artem Titov | 5e7e411 | 2022-09-26 08:29:22 | [diff] [blame] | 554 | "../api/test/metrics:metric", |
| 555 | "../api/test/metrics:metrics_logger", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 556 | "../api/video:video_frame", |
| 557 | "../api/video:video_rtp_headers", |
| 558 | "../common_video", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 559 | "../rtc_base:checks", |
| 560 | "../rtc_base:null_socket_server", |
| 561 | "../rtc_base:threading", |
Artem Titov | 5e7e411 | 2022-09-26 08:29:22 | [diff] [blame] | 562 | "../system_wrappers", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 563 | "../test:fileutils", |
| 564 | "../test:test_main", |
| 565 | "../test:test_support", |
| 566 | "//testing/gtest", |
| 567 | "//third_party/libyuv", |
| 568 | ] |
| 569 | |
| 570 | if (!build_with_chromium) { |
| 571 | deps += [ ":reference_less_video_analysis_lib" ] |
| 572 | } |
| 573 | |
| 574 | if (rtc_enable_protobuf) { |
| 575 | deps += [ "network_tester:network_tester_unittests" ] |
| 576 | } |
| 577 | |
| 578 | data = tools_unittests_resources |
| 579 | if (is_android) { |
| 580 | deps += [ "//testing/android/native_test:native_test_support" ] |
| 581 | shard_timeout = 900 |
| 582 | } |
| 583 | if (is_ios) { |
| 584 | deps += [ ":tools_unittests_bundle_data" ] |
| 585 | } |
Yves Gerey | 21cddff | 2018-10-30 20:12:42 | [diff] [blame] | 586 | } |
| 587 | |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 588 | if (rtc_enable_protobuf) { |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 589 | rtc_executable("audioproc_f") { |
| 590 | testonly = true |
| 591 | sources = [ "audioproc_f/audioproc_float_main.cc" ] |
| 592 | deps = [ |
| 593 | "../api:audioproc_f_api", |
| 594 | "../modules/audio_processing", |
| 595 | "../modules/audio_processing:api", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 596 | ] |
| 597 | } |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 598 | |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 599 | rtc_executable("unpack_aecdump") { |
| 600 | visibility = [ "*" ] |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 601 | sources = [ "unpack_aecdump/unpack.cc" ] |
| 602 | |
| 603 | deps = [ |
| 604 | "../api:function_view", |
| 605 | "../common_audio", |
| 606 | "../modules/audio_processing", |
| 607 | "../modules/audio_processing:audioproc_debug_proto", |
| 608 | "../modules/audio_processing:audioproc_debug_proto", |
| 609 | "../modules/audio_processing:audioproc_protobuf_utils", |
Mirko Bonadei | 2ad75b3 | 2022-07-05 08:16:11 | [diff] [blame] | 610 | "../rtc_base:checks", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 611 | "../rtc_base:ignore_wundef", |
Florent Castelli | 4467ad7 | 2022-04-04 13:18:46 | [diff] [blame] | 612 | "../rtc_base:macromagic", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 613 | "../rtc_base:protobuf_utils", |
Florent Castelli | 57aa81b | 2022-04-04 15:14:02 | [diff] [blame] | 614 | "../rtc_base:stringutils", |
Mirko Bonadei | 2ad75b3 | 2022-07-05 08:16:11 | [diff] [blame] | 615 | "../rtc_base/system:arch", |
Andrey Logvin | e7c79fd | 2021-02-01 09:56:37 | [diff] [blame] | 616 | "//third_party/abseil-cpp/absl/flags:flag", |
| 617 | "//third_party/abseil-cpp/absl/flags:parse", |
| 618 | ] |
| 619 | } # unpack_aecdump |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 620 | } |
| 621 | } |
| 622 | |
| 623 | if (rtc_enable_protobuf) { |
| 624 | copy("rtp_analyzer") { |
| 625 | sources = [ |
| 626 | "py_event_log_analyzer/misc.py", |
| 627 | "py_event_log_analyzer/pb_parse.py", |
| 628 | "py_event_log_analyzer/rtp_analyzer.py", |
| 629 | "py_event_log_analyzer/rtp_analyzer.sh", |
| 630 | ] |
Mirko Bonadei | ccbe95f | 2020-01-21 11:10:10 | [diff] [blame] | 631 | outputs = [ "$root_build_dir/{{source_file_part}}" ] |
| 632 | deps = [ "../logging:rtc_event_log_proto" ] |
Patrik Höglund | 844ce8b | 2017-12-12 14:53:31 | [diff] [blame] | 633 | } # rtp_analyzer |
kjellander | d2b63cf | 2017-06-30 10:04:59 | [diff] [blame] | 634 | } |
| 635 | } |