blob: 0a48f602d940e9a7e184b8c9e080715a8e0861fc [file] [log] [blame]
kjellanderd2b63cf2017-06-30 10:04:591# 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.
kjellanderd2b63cf2017-06-30 10:04:598import("../webrtc.gni")
Kimmo Kinnunen08f6a6c2019-02-26 09:46:179if (rtc_enable_protobuf) {
10 import("//third_party/protobuf/proto_library.gni")
11}
kjellanderd2b63cf2017-06-30 10:04:5912
13group("rtc_tools") {
14 # This target shall build all targets in tools/.
15 testonly = true
16
Mirko Bonadeif5ff67c2017-12-06 15:31:1817 deps = [
kjellanderd2b63cf2017-06-30 10:04:5918 ":frame_analyzer",
Magnus Jedvert10e829a2018-09-05 08:46:1819 ":video_file_reader",
kjellanderd2b63cf2017-06-30 10:04:5920 ]
kjellander6af0cbf2017-09-05 06:42:4521 if (!build_with_chromium) {
Mirko Bonadeif5ff67c2017-12-06 15:31:1822 deps += [
kjellander6af0cbf2017-09-05 06:42:4523 ":psnr_ssim_analyzer",
24 ":rgba_to_i420_converter",
Mirko Bonadei08ce9862020-06-11 09:25:3225 ":video_quality_analysis",
kjellander6af0cbf2017-09-05 06:42:4526 ]
kjellanderd2b63cf2017-06-30 10:04:5927 }
Andrey Logvine7c79fd2021-02-01 09:56:3728 if (!build_with_chromium && rtc_enable_protobuf) {
29 deps += [ ":chart_proto" ]
30 }
31 if (!build_with_chromium && rtc_include_tests) {
Artem Titov8041b652020-02-19 14:03:4532 deps += [
33 ":tools_unittests",
34 ":yuv_to_ivf_converter",
35 ]
Andrey Logvine7c79fd2021-02-01 09:56:3736 }
37 if (rtc_include_tests && rtc_enable_protobuf) {
38 deps += [
39 ":rtp_analyzer",
40 "network_tester",
41 ]
42 }
43 if (rtc_include_tests && rtc_enable_protobuf && !build_with_chromium) {
44 deps += [
45 ":audioproc_f",
46 ":event_log_visualizer",
47 ":unpack_aecdump",
48 ]
kjellanderd2b63cf2017-06-30 10:04:5949 }
Florent Castelli023be3c2022-03-15 15:01:5250 if (!build_with_chromium && rtc_enable_grpc) {
51 deps += [ "data_channel_benchmark" ]
52 }
kjellanderd2b63cf2017-06-30 10:04:5953}
54
Mirko Bonadei86d053c2019-10-17 19:32:0455rtc_library("video_file_reader") {
Magnus Jedvert10e829a2018-09-05 08:46:1856 sources = [
57 "video_file_reader.cc",
58 "video_file_reader.h",
59 ]
60 deps = [
Mirko Bonadeid9708072019-01-25 19:26:4861 "../api:scoped_refptr",
Magnus Jedvert10e829a2018-09-05 08:46:1862 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:3863 "../api/video:video_rtp_headers",
Yves Gerey3e707812018-11-28 15:47:4964 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:3065 "../rtc_base:logging",
Florent Castellif86f6f92022-04-05 00:54:1266 "../rtc_base:refcount",
Magnus Jedvert10e829a2018-09-05 08:46:1867 "../rtc_base:rtc_base_approved",
Florent Castelli57aa81b2022-04-04 15:14:0268 "../rtc_base:stringutils",
Mirko Bonadei2dcf3482020-06-05 12:30:4169 ]
70 absl_deps = [
Steve Anton68586e82018-12-14 01:41:2571 "//third_party/abseil-cpp/absl/strings",
Magnus Jedvert10e829a2018-09-05 08:46:1872 "//third_party/abseil-cpp/absl/types:optional",
73 ]
74}
75
Mirko Bonadei86d053c2019-10-17 19:32:0476rtc_library("video_file_writer") {
Paulina Hensmanb671d462018-09-14 09:32:0077 sources = [
78 "video_file_writer.cc",
79 "video_file_writer.h",
80 ]
81 deps = [
82 ":video_file_reader",
Mirko Bonadeid9708072019-01-25 19:26:4883 "../api:scoped_refptr",
Paulina Hensmanb671d462018-09-14 09:32:0084 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:3885 "../api/video:video_rtp_headers",
Florent Castelli0af55ba2022-04-04 13:06:3086 "../rtc_base:logging",
Paulina Hensmanb671d462018-09-14 09:32:0087 "../rtc_base:rtc_base_approved",
Mirko Bonadei2dcf3482020-06-05 12:30:4188 ]
89 absl_deps = [
Steve Anton68586e82018-12-14 01:41:2590 "//third_party/abseil-cpp/absl/strings",
Paulina Hensmanb671d462018-09-14 09:32:0091 "//third_party/abseil-cpp/absl/types:optional",
92 ]
93}
94
Mirko Bonadei86d053c2019-10-17 19:32:0495rtc_library("video_quality_analysis") {
Patrik Höglund2ea27962020-01-13 14:10:4096 testonly = true
kjellanderd2b63cf2017-06-30 10:04:5997 sources = [
Magnus Jedvert1927dfa2018-09-11 10:56:0698 "frame_analyzer/linear_least_squares.cc",
99 "frame_analyzer/linear_least_squares.h",
100 "frame_analyzer/video_color_aligner.cc",
101 "frame_analyzer/video_color_aligner.h",
Magnus Jedvert286df002018-11-22 14:17:30102 "frame_analyzer/video_geometry_aligner.cc",
103 "frame_analyzer/video_geometry_aligner.h",
kjellanderd2b63cf2017-06-30 10:04:59104 "frame_analyzer/video_quality_analysis.cc",
105 "frame_analyzer/video_quality_analysis.h",
Magnus Jedvert62228c42018-09-05 13:04:08106 "frame_analyzer/video_temporal_aligner.cc",
107 "frame_analyzer/video_temporal_aligner.h",
kjellanderd2b63cf2017-06-30 10:04:59108 ]
Mirko Bonadei0250be52017-12-01 12:53:04109 deps = [
Magnus Jedvert10e829a2018-09-05 08:46:18110 ":video_file_reader",
Magnus Jedvert1927dfa2018-09-11 10:56:06111 "../api:array_view",
Mirko Bonadeid9708072019-01-25 19:26:48112 "../api:scoped_refptr",
Magnus Jedvert286df002018-11-22 14:17:30113 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38114 "../api/video:video_rtp_headers",
Mirko Bonadeif5ff67c2017-12-06 15:31:18115 "../common_video",
Magnus Jedvert62228c42018-09-05 13:04:08116 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30117 "../rtc_base:logging",
Florent Castellif86f6f92022-04-05 00:54:12118 "../rtc_base:refcount",
Magnus Jedvert62228c42018-09-05 13:04:08119 "../rtc_base:rtc_base_approved",
Edward Lemur2e5966b2018-01-30 14:33:02120 "../test:perf_test",
Mirko Bonadei401d0562017-12-14 10:24:00121 "//third_party/libyuv",
kjellanderd2b63cf2017-06-30 10:04:59122 ]
Mirko Bonadei2dcf3482020-06-05 12:30:41123 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
kjellanderd2b63cf2017-06-30 10:04:59124}
125
Andrey Logvin78646002021-01-29 10:50:19126# Abseil dependencies are not moved to the absl_deps field deliberately.
127# If build_with_chromium is true, the absl_deps replaces the dependencies with
128# the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
129# (and some others) because they cannot be used in Chromiums. Special exception
130# for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows
131# it to be build in chromium.
kjellanderd2b63cf2017-06-30 10:04:59132rtc_executable("frame_analyzer") {
Per Kjellandera7f2d842018-01-10 15:54:53133 visibility = [ "*" ]
Mirko Bonadei6bafc8b2019-06-18 19:09:24134 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10135 sources = [ "frame_analyzer/frame_analyzer.cc" ]
kjellanderd2b63cf2017-06-30 10:04:59136
137 deps = [
Magnus Jedvert10e829a2018-09-05 08:46:18138 ":video_file_reader",
Paulina Hensmanb671d462018-09-14 09:32:00139 ":video_file_writer",
kjellanderd2b63cf2017-06-30 10:04:59140 ":video_quality_analysis",
Mirko Bonadeid9708072019-01-25 19:26:48141 "../api:scoped_refptr",
Magnus Jedvertb468ace2018-09-05 14:11:48142 "../rtc_base:stringutils",
Edward Lemur2e5966b2018-01-30 14:33:02143 "../test:perf_test",
Mirko Bonadei6bafc8b2019-06-18 19:09:24144 "//third_party/abseil-cpp/absl/flags:flag",
145 "//third_party/abseil-cpp/absl/flags:parse",
Steve Anton68586e82018-12-14 01:41:25146 "//third_party/abseil-cpp/absl/strings",
kjellanderd2b63cf2017-06-30 10:04:59147 ]
Johannes Kronbb52bdf2021-02-25 09:10:08148
149 if (build_with_chromium) {
150 # When building from Chromium, WebRTC's metrics and field trial
151 # implementations need to be replaced by the Chromium ones.
152 deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
153 }
kjellanderd2b63cf2017-06-30 10:04:59154}
155
Mirko Bonadei647968f2020-04-01 11:26:24156# TODO(bugs.webrtc.org/11474): Enable this on win if needed. For now it
157# is only required for Linux and Android.
Mirko Bonadeie50c9792020-04-20 15:48:26158if (!build_with_chromium && !build_with_mozilla && !is_win && !is_ios) {
Mirko Bonadei080afed2018-09-18 11:39:37159 action("frame_analyzer_host") {
160 script = "//tools_webrtc/executable_host_build.py"
Mirko Bonadeiccbe95f2020-01-21 11:10:10161 outputs = [ "${root_out_dir}/frame_analyzer_host" ]
Mirko Bonadei080afed2018-09-18 11:39:37162 args = [
163 "--executable_name",
164 "frame_analyzer",
165 ]
166 }
Mirko Bonadeib56706f2018-09-18 09:03:39167}
168
Mirko Bonadeia5cec552020-02-06 09:16:20169if (!is_component_build) {
170 # This target can be built from Chromium but it doesn't support
171 # is_component_build=true because it depends on WebRTC testonly code
172 # which is not part of //third_party/webrtc_overrides:webrtc_component.
Andrey Logvin78646002021-01-29 10:50:19173
174 # Abseil dependencies are not moved to the absl_deps field deliberately.
175 # If build_with_chromium is true, the absl_deps replaces the dependencies with
176 # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
177 # (and some others) because they cannot be used in Chromiums. Special exception
178 # for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows
179 # it to be build in chromium.
Mirko Bonadei8573aae2019-02-04 14:21:46180 rtc_executable("rtp_generator") {
181 visibility = [ "*" ]
182 testonly = true
183 sources = [
184 "rtp_generator/main.cc",
185 "rtp_generator/rtp_generator.cc",
186 "rtp_generator/rtp_generator.h",
187 ]
188
189 deps = [
Artem Titov33f9d2b2019-12-05 14:59:00190 "../api:create_frame_generator",
Niels Möller6dcd4dc2019-08-26 08:45:28191 "../api:rtp_parameters",
Mirko Bonadei8573aae2019-02-04 14:21:46192 "../api:transport_api",
Danil Chapovalov83bbe912019-08-07 10:24:53193 "../api/rtc_event_log",
Ilya Nikolaevskiyca160212019-07-10 13:34:45194 "../api/task_queue:default_task_queue_factory",
195 "../api/task_queue:task_queue",
Mirko Bonadei8573aae2019-02-04 14:21:46196 "../api/video:builtin_video_bitrate_allocator_factory",
197 "../api/video_codecs:builtin_video_decoder_factory",
198 "../api/video_codecs:builtin_video_encoder_factory",
199 "../api/video_codecs:video_codecs_api",
200 "../call",
201 "../call:call_interfaces",
202 "../call:fake_network",
203 "../call:rtp_interfaces",
204 "../call:rtp_sender",
205 "../call:simulated_network",
206 "../call:simulated_packet_receiver",
207 "../call:video_stream_api",
Mirko Bonadei8573aae2019-02-04 14:21:46208 "../media:rtc_audio_video",
209 "../media:rtc_media_base",
Artem Titov94b57c02019-03-21 12:35:10210 "../rtc_base",
Mirko Bonadei8573aae2019-02-04 14:21:46211 "../rtc_base:rtc_base_approved",
212 "../rtc_base:rtc_json",
Mirko Bonadeie5f4c6b2021-01-15 09:41:01213 "../rtc_base:threading",
Mirko Bonadei8573aae2019-02-04 14:21:46214 "../rtc_base/system:file_wrapper",
215 "../test:fileutils",
216 "../test:rtp_test_utils",
217 "../test:video_test_common",
Mirko Bonadeia95949e2019-06-25 06:46:18218 "//third_party/abseil-cpp/absl/flags:flag",
219 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadei06cdb232019-07-19 08:02:46220 "//third_party/abseil-cpp/absl/flags:usage",
Mirko Bonadei8573aae2019-02-04 14:21:46221 "//third_party/abseil-cpp/absl/strings",
222 ]
Mirko Bonadeia5cec552020-02-06 09:16:20223 if (build_with_chromium) {
224 # When building from Chromium, WebRTC's metrics and field trial
225 # implementations need to be replaced by the Chromium ones.
226 deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
227 }
Mirko Bonadei8573aae2019-02-04 14:21:46228 }
Mirko Bonadeid4c3c3a2020-02-07 09:02:31229
230 # This target can be built from Chromium but it doesn't support
231 # is_component_build=true because it depends on WebRTC testonly code
232 # which is not part of //third_party/webrtc_overrides:webrtc_component.
Andrey Logvin78646002021-01-29 10:50:19233
234 # Abseil dependencies are not moved to the absl_deps field deliberately.
235 # If build_with_chromium is true, the absl_deps replaces the dependencies with
236 # the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
237 # (and some others) because they cannot be used in Chromiums. Special exception
238 # for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows
239 # it to be build in chromium.
Mirko Bonadeid4c3c3a2020-02-07 09:02:31240 rtc_executable("video_replay") {
241 visibility = [ "*" ]
242 testonly = true
243 sources = [ "video_replay.cc" ]
244 deps = [
245 "../api/rtc_event_log",
246 "../api/task_queue:default_task_queue_factory",
247 "../api/test/video:function_video_factory",
248 "../api/transport:field_trial_based_config",
Philipp Hanckefae4fb12021-01-26 17:05:56249 "../api/video:video_frame",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31250 "../api/video_codecs:video_codecs_api",
251 "../call",
252 "../call:call_interfaces",
253 "../common_video",
254 "../media:rtc_internal_video_codecs",
Danil Chapovalov76a35d92021-06-08 10:30:46255 "../modules/rtp_rtcp:rtp_rtcp_format",
Philipp Hanckefae4fb12021-01-26 17:05:56256 "../modules/video_coding:video_coding_utility",
Mirko Bonadeid4c3c3a2020-02-07 09:02:31257 "../rtc_base:checks",
258 "../rtc_base:rtc_json",
259 "../rtc_base:stringutils",
260 "../rtc_base:timeutils",
261 "../system_wrappers",
262 "../test:call_config_utils",
263 "../test:encoder_settings",
264 "../test:fake_video_codecs",
265 "../test:null_transport",
266 "../test:rtp_test_utils",
267 "../test:run_test",
268 "../test:run_test_interface",
269 "../test:test_common",
270 "../test:test_renderer",
271 "../test:test_support",
272 "../test:video_test_common",
273 "../test:video_test_support",
274 "//third_party/abseil-cpp/absl/flags:flag",
275 "//third_party/abseil-cpp/absl/flags:parse",
276 ]
277 if (build_with_chromium) {
278 # When building from Chromium, WebRTC's metrics and field trial
279 # implementations need to be replaced by the Chromium ones.
280 deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
281 }
282 }
Mirko Bonadeia5cec552020-02-06 09:16:20283}
Mirko Bonadei8573aae2019-02-04 14:21:46284
Mirko Bonadeia5cec552020-02-06 09:16:20285# Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid
286# building a lot of redundant code as part of Chromium builds.
287if (!build_with_chromium) {
kjellander6af0cbf2017-09-05 06:42:45288 rtc_executable("psnr_ssim_analyzer") {
Mirko Bonadei8e032c82019-06-25 06:51:01289 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10290 sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ]
kjellanderd2b63cf2017-06-30 10:04:59291
kjellanderd2b63cf2017-06-30 10:04:59292 deps = [
Magnus Jedvert10e829a2018-09-05 08:46:18293 ":video_file_reader",
kjellander6af0cbf2017-09-05 06:42:45294 ":video_quality_analysis",
Mirko Bonadeid9708072019-01-25 19:26:48295 "../api:scoped_refptr",
Yves Gerey3e707812018-11-28 15:47:49296 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38297 "../api/video:video_rtp_headers",
Mirko Bonadei8e032c82019-06-25 06:51:01298 "//third_party/abseil-cpp/absl/flags:flag",
299 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadei4e722452019-07-19 08:08:41300 "//third_party/abseil-cpp/absl/flags:usage",
kjellanderd2b63cf2017-06-30 10:04:59301 ]
302 }
kjellanderd2b63cf2017-06-30 10:04:59303
Mirko Bonadei86d053c2019-10-17 19:32:04304 rtc_library("reference_less_video_analysis_lib") {
Patrik Höglund2ea27962020-01-13 14:10:40305 testonly = true
kjellanderd2b63cf2017-06-30 10:04:59306 sources = [
kjellander6af0cbf2017-09-05 06:42:45307 "frame_analyzer/reference_less_video_analysis_lib.cc",
308 "frame_analyzer/reference_less_video_analysis_lib.h",
kjellanderd2b63cf2017-06-30 10:04:59309 ]
kjellander6af0cbf2017-09-05 06:42:45310
311 deps = [
Magnus Jedvert10e829a2018-09-05 08:46:18312 ":video_file_reader",
kjellander6af0cbf2017-09-05 06:42:45313 ":video_quality_analysis",
Mirko Bonadeid9708072019-01-25 19:26:48314 "../api:scoped_refptr",
Yves Gerey3e707812018-11-28 15:47:49315 "../api/video:video_frame",
Chen Xing5d24b162019-06-10 10:59:38316 "../api/video:video_rtp_headers",
kjellander6af0cbf2017-09-05 06:42:45317 ]
kjellanderd2b63cf2017-06-30 10:04:59318 }
319
kjellander6af0cbf2017-09-05 06:42:45320 rtc_executable("reference_less_video_analysis") {
Mirko Bonadei6d6b0fb2019-06-25 06:49:03321 testonly = true
Mirko Bonadeiccbe95f2020-01-21 11:10:10322 sources = [ "frame_analyzer/reference_less_video_analysis.cc" ]
kjellander6af0cbf2017-09-05 06:42:45323
324 deps = [
kjellander6af0cbf2017-09-05 06:42:45325 ":reference_less_video_analysis_lib",
Mirko Bonadei6d6b0fb2019-06-25 06:49:03326 "//third_party/abseil-cpp/absl/flags:flag",
327 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadei7ddca162019-07-19 08:32:16328 "//third_party/abseil-cpp/absl/flags:usage",
kjellander6af0cbf2017-09-05 06:42:45329 ]
330 }
331
332 rtc_executable("rgba_to_i420_converter") {
Per Kjellandera7f2d842018-01-10 15:54:53333 visibility = [ "*" ]
Mirko Bonadei2308bb22019-06-25 06:52:47334 testonly = true
kjellander6af0cbf2017-09-05 06:42:45335 sources = [
336 "converter/converter.cc",
337 "converter/converter.h",
338 "converter/rgba_to_i420_converter.cc",
339 ]
340
341 deps = [
kjellander6af0cbf2017-09-05 06:42:45342 "../common_video",
Mirko Bonadei2308bb22019-06-25 06:52:47343 "//third_party/abseil-cpp/absl/flags:flag",
344 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadei249bade2019-07-19 09:58:07345 "//third_party/abseil-cpp/absl/flags:usage",
Mirko Bonadei401d0562017-12-14 10:24:00346 "//third_party/libyuv",
kjellander6af0cbf2017-09-05 06:42:45347 ]
348 }
349
kjellander6af0cbf2017-09-05 06:42:45350 if (rtc_enable_protobuf) {
351 proto_library("chart_proto") {
Bjorn Terelius9b809d32019-04-24 15:12:45352 visibility = [ "*" ]
kjellander6af0cbf2017-09-05 06:42:45353 sources = [
Mirko Bonadei575998c2019-07-25 11:57:41354 "rtc_event_log_visualizer/proto/chart.proto",
355 "rtc_event_log_visualizer/proto/chart_enums.proto",
kjellander6af0cbf2017-09-05 06:42:45356 ]
Mirko Bonadei575998c2019-07-25 11:57:41357 proto_out_dir = "rtc_tools/rtc_event_log_visualizer/proto"
kjellander6af0cbf2017-09-05 06:42:45358 }
359
Mirko Bonadei86d053c2019-10-17 19:32:04360 rtc_library("event_log_visualizer_utils") {
Per Kjellandera0f5f602018-01-10 15:57:32361 visibility = [ "*" ]
kjellander6af0cbf2017-09-05 06:42:45362 sources = [
Bjorn Terelius48b82792020-05-19 08:57:24363 "rtc_event_log_visualizer/alerts.cc",
364 "rtc_event_log_visualizer/alerts.h",
Bjorn Tereliusc186e142020-06-05 08:47:19365 "rtc_event_log_visualizer/analyze_audio.cc",
366 "rtc_event_log_visualizer/analyze_audio.h",
Mirko Bonadei575998c2019-07-25 11:57:41367 "rtc_event_log_visualizer/analyzer.cc",
368 "rtc_event_log_visualizer/analyzer.h",
Bjorn Terelius48b82792020-05-19 08:57:24369 "rtc_event_log_visualizer/analyzer_common.cc",
370 "rtc_event_log_visualizer/analyzer_common.h",
Mirko Bonadei575998c2019-07-25 11:57:41371 "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",
kjellander6af0cbf2017-09-05 06:42:45379 ]
kjellander6af0cbf2017-09-05 06:42:45380 deps = [
Mirko Bonadeif5ff67c2017-12-06 15:31:18381 ":chart_proto",
Artem Titov741daaf2019-03-21 13:37:36382 "../api:function_view",
Niels Möller0d863f72020-11-24 16:50:31383 "../api:network_state_predictor_api",
Mirko Bonadei3663ed32019-10-19 10:03:23384 "../rtc_base:ignore_wundef",
Florent Castelli0af55ba2022-04-04 13:06:30385 "../rtc_base:logging",
Florent Castelli4467ad72022-04-04 13:18:46386 "../rtc_base:macromagic",
Florent Castellif86f6f92022-04-05 00:54:12387 "../rtc_base:refcount",
Niels Möller3f651d82018-12-19 14:06:17388
389 # TODO(kwiberg): Remove this dependency.
390 "../api/audio_codecs:audio_codecs_api",
Sebastian Jansson95edb032019-01-17 15:24:12391 "../api/transport:field_trial_based_config",
Niels Möller3f651d82018-12-19 14:06:17392 "../api/transport:goog_cc",
Sebastian Jansson1175ae02019-03-13 07:56:58393 "../api/transport:network_control",
kjellander6af0cbf2017-09-05 06:42:45394 "../call:call_interfaces",
395 "../call:video_stream_api",
kjellander6af0cbf2017-09-05 06:42:45396 "../logging:rtc_event_log_parser",
Qingsi Wang970b0882018-02-01 19:04:46397 "../logging:rtc_stream_config",
kjellander6af0cbf2017-09-05 06:42:45398 "../modules/audio_coding:ana_debug_dump_proto",
Mirko Bonadei818d9102017-12-12 11:46:13399 "../modules/audio_coding:audio_network_adaptor",
kjellander6af0cbf2017-09-05 06:42:45400 "../modules/audio_coding:neteq_tools",
kjellander6af0cbf2017-09-05 06:42:45401 "../modules/congestion_controller",
Sebastian Jansson04b18cb2018-07-02 07:25:25402 "../modules/congestion_controller/goog_cc:delay_based_bwe",
Sebastian Jansson172fd852018-05-24 12:17:06403 "../modules/congestion_controller/goog_cc:estimators",
Sebastian Jansson5c94f552018-10-15 16:46:51404 "../modules/congestion_controller/rtp:transport_feedback",
Niels Möllerfd6c0912017-10-31 09:19:10405 "../modules/pacing",
Sebastian Jansson5c94f552018-10-15 16:46:51406 "../modules/remote_bitrate_estimator",
kjellander6af0cbf2017-09-05 06:42:45407 "../modules/rtp_rtcp",
Niels Möller3f651d82018-12-19 14:06:17408 "../modules/rtp_rtcp:rtp_rtcp_format",
409 "../rtc_base:checks",
410 "../rtc_base:rtc_base_approved",
411 "../rtc_base:rtc_numerics",
412 "../rtc_base:stringutils",
Paul Hallak46fbefa2021-05-21 16:53:28413 "../system_wrappers",
Björn Tereliusae1892d2020-06-17 09:55:55414 "../test:explicit_key_value_config",
Mirko Bonadei2dcf3482020-06-05 12:30:41415 ]
416 absl_deps = [
Björn Tereliusc69c1bb2019-10-11 13:06:58417 "//third_party/abseil-cpp/absl/algorithm:container",
Danil Chapovalove9041612021-02-22 11:43:39418 "//third_party/abseil-cpp/absl/base:core_headers",
Per Kjellanderfe2063e2021-05-12 07:02:43419 "//third_party/abseil-cpp/absl/functional:bind_front",
Bjorn Terelius6c4b1b72019-01-11 12:01:29420 "//third_party/abseil-cpp/absl/strings",
Bjorn Tereliusc186e142020-06-05 08:47:19421 "//third_party/abseil-cpp/absl/types:optional",
kjellander6af0cbf2017-09-05 06:42:45422 ]
kjellander6af0cbf2017-09-05 06:42:45423 }
kjellanderd2b63cf2017-06-30 10:04:59424 }
425}
426
kjellanderd2b63cf2017-06-30 10:04:59427if (rtc_include_tests) {
Andrey Logvine7c79fd2021-02-01 09:56:37428 if (!build_with_chromium) {
429 rtc_executable("yuv_to_ivf_converter") {
430 visibility = [ "*" ]
kjellanderd2b63cf2017-06-30 10:04:59431 testonly = true
Andrey Logvine7c79fd2021-02-01 09:56:37432 sources = [ "converter/yuv_to_ivf_converter.cc" ]
kjellanderd2b63cf2017-06-30 10:04:59433 deps = [
Andrey Logvine7c79fd2021-02-01 09:56:37434 "../api:create_frame_generator",
435 "../api:frame_generator_api",
436 "../api/task_queue:default_task_queue_factory",
437 "../api/video:encoded_image",
438 "../api/video:video_frame",
439 "../api/video_codecs:video_codecs_api",
440 "../media:rtc_media_base",
Yves Gerey3e707812018-11-28 15:47:49441 "../modules/rtp_rtcp:rtp_rtcp_format",
Andrey Logvine7c79fd2021-02-01 09:56:37442 "../modules/video_coding:video_codec_interface",
443 "../modules/video_coding:video_coding_utility",
444 "../modules/video_coding:webrtc_h264",
445 "../modules/video_coding:webrtc_vp8",
446 "../modules/video_coding:webrtc_vp9",
Yves Gerey3e707812018-11-28 15:47:49447 "../rtc_base:checks",
Andrey Logvine7c79fd2021-02-01 09:56:37448 "../rtc_base:criticalsection",
449 "../rtc_base:logging",
450 "../rtc_base:rtc_event",
451 "../rtc_base:rtc_task_queue",
452 "../rtc_base/synchronization:mutex",
453 "../rtc_base/system:file_wrapper",
454 "../test:video_test_common",
455 "../test:video_test_support",
456 "//third_party/abseil-cpp/absl/debugging:failure_signal_handler",
457 "//third_party/abseil-cpp/absl/debugging:symbolize",
Mirko Bonadei4b091f42019-07-16 09:55:08458 "//third_party/abseil-cpp/absl/flags:flag",
459 "//third_party/abseil-cpp/absl/flags:parse",
Mirko Bonadeif2d97b82019-07-24 13:29:47460 "//third_party/abseil-cpp/absl/strings",
kjellanderd2b63cf2017-06-30 10:04:59461 ]
462 }
kjellanderd2b63cf2017-06-30 10:04:59463
Andrey Logvine7c79fd2021-02-01 09:56:37464 if (rtc_enable_protobuf) {
465 rtc_executable("event_log_visualizer") {
466 testonly = true
467 sources = [ "rtc_event_log_visualizer/main.cc" ]
468 data = [
469 # If --wav_filename is not provided, event_log_visualizer uses
470 # EN_script2_F_sp2_B1.wav by default. This is a good default to use
471 # for example with flags --plot=all when there is no need to use a
472 # specific .wav file.
473 "../resources/audio_processing/conversational_speech/EN_script2_F_sp2_B1.wav",
474 ]
475 deps = [
476 ":event_log_visualizer_utils",
477 "../api/neteq:neteq_api",
478 "../api/rtc_event_log",
479 "../logging:rtc_event_log_parser",
480 "../modules/audio_coding:neteq",
481 "../modules/rtp_rtcp:rtp_rtcp_format",
482 "../rtc_base:checks",
Florent Castelli0af55ba2022-04-04 13:06:30483 "../rtc_base:logging",
Andrey Logvine7c79fd2021-02-01 09:56:37484 "../rtc_base:protobuf_utils",
485 "../rtc_base:rtc_base_approved",
486 "../system_wrappers:field_trial",
487 "../test:field_trial",
488 "../test:fileutils",
489 "../test:test_support",
490 "//third_party/abseil-cpp/absl/algorithm:container",
491 "//third_party/abseil-cpp/absl/flags:config",
492 "//third_party/abseil-cpp/absl/flags:flag",
493 "//third_party/abseil-cpp/absl/flags:parse",
494 "//third_party/abseil-cpp/absl/flags:usage",
495 "//third_party/abseil-cpp/absl/strings",
496 ]
497 }
kjellanderd2b63cf2017-06-30 10:04:59498 }
kjellanderd2b63cf2017-06-30 10:04:59499
Andrey Logvine7c79fd2021-02-01 09:56:37500 tools_unittests_resources = [
501 "../resources/foreman_128x96.yuv",
502 "../resources/foreman_cif.yuv",
503 "../resources/reference_less_video_test_file.y4m",
kjellanderd2b63cf2017-06-30 10:04:59504 ]
505
Andrey Logvine7c79fd2021-02-01 09:56:37506 if (is_ios) {
507 bundle_data("tools_unittests_bundle_data") {
508 testonly = true
509 sources = tools_unittests_resources
510 outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
511 }
512 }
kjellanderd2b63cf2017-06-30 10:04:59513
Andrey Logvine7c79fd2021-02-01 09:56:37514 rtc_test("tools_unittests") {
515 testonly = true
516
517 sources = [
518 "frame_analyzer/linear_least_squares_unittest.cc",
519 "frame_analyzer/reference_less_video_analysis_unittest.cc",
520 "frame_analyzer/video_color_aligner_unittest.cc",
521 "frame_analyzer/video_geometry_aligner_unittest.cc",
522 "frame_analyzer/video_quality_analysis_unittest.cc",
523 "frame_analyzer/video_temporal_aligner_unittest.cc",
524 "sanitizers_unittest.cc",
525 "video_file_reader_unittest.cc",
526 "video_file_writer_unittest.cc",
527 ]
528
529 deps = [
530 ":video_file_reader",
531 ":video_file_writer",
532 ":video_quality_analysis",
533 "../api:scoped_refptr",
534 "../api/video:video_frame",
535 "../api/video:video_rtp_headers",
536 "../common_video",
537 "../rtc_base",
538 "../rtc_base:checks",
539 "../rtc_base:null_socket_server",
540 "../rtc_base:threading",
541 "../test:fileutils",
542 "../test:test_main",
543 "../test:test_support",
544 "//testing/gtest",
545 "//third_party/libyuv",
546 ]
547
548 if (!build_with_chromium) {
549 deps += [ ":reference_less_video_analysis_lib" ]
550 }
551
552 if (rtc_enable_protobuf) {
553 deps += [ "network_tester:network_tester_unittests" ]
554 }
555
556 data = tools_unittests_resources
557 if (is_android) {
558 deps += [ "//testing/android/native_test:native_test_support" ]
559 shard_timeout = 900
560 }
561 if (is_ios) {
562 deps += [ ":tools_unittests_bundle_data" ]
563 }
Yves Gerey21cddff2018-10-30 20:12:42564 }
565
kjellanderd2b63cf2017-06-30 10:04:59566 if (rtc_enable_protobuf) {
Andrey Logvine7c79fd2021-02-01 09:56:37567 rtc_executable("audioproc_f") {
568 testonly = true
569 sources = [ "audioproc_f/audioproc_float_main.cc" ]
570 deps = [
571 "../api:audioproc_f_api",
572 "../modules/audio_processing",
573 "../modules/audio_processing:api",
574 "../rtc_base:rtc_base_approved",
575 ]
576 }
kjellanderd2b63cf2017-06-30 10:04:59577
Andrey Logvine7c79fd2021-02-01 09:56:37578 rtc_executable("unpack_aecdump") {
579 visibility = [ "*" ]
580 testonly = true
581 sources = [ "unpack_aecdump/unpack.cc" ]
582
583 deps = [
584 "../api:function_view",
585 "../common_audio",
586 "../modules/audio_processing",
587 "../modules/audio_processing:audioproc_debug_proto",
588 "../modules/audio_processing:audioproc_debug_proto",
589 "../modules/audio_processing:audioproc_protobuf_utils",
590 "../modules/audio_processing:audioproc_test_utils",
591 "../rtc_base:ignore_wundef",
Florent Castelli4467ad72022-04-04 13:18:46592 "../rtc_base:macromagic",
Andrey Logvine7c79fd2021-02-01 09:56:37593 "../rtc_base:protobuf_utils",
594 "../rtc_base:rtc_base_approved",
Florent Castelli57aa81b2022-04-04 15:14:02595 "../rtc_base:stringutils",
Andrey Logvine7c79fd2021-02-01 09:56:37596 "//third_party/abseil-cpp/absl/flags:flag",
597 "//third_party/abseil-cpp/absl/flags:parse",
598 ]
599 } # unpack_aecdump
kjellanderd2b63cf2017-06-30 10:04:59600 }
601 }
602
603 if (rtc_enable_protobuf) {
604 copy("rtp_analyzer") {
605 sources = [
606 "py_event_log_analyzer/misc.py",
607 "py_event_log_analyzer/pb_parse.py",
608 "py_event_log_analyzer/rtp_analyzer.py",
609 "py_event_log_analyzer/rtp_analyzer.sh",
610 ]
Mirko Bonadeiccbe95f2020-01-21 11:10:10611 outputs = [ "$root_build_dir/{{source_file_part}}" ]
612 deps = [ "../logging:rtc_event_log_proto" ]
Patrik Höglund844ce8b2017-12-12 14:53:31613 } # rtp_analyzer
kjellanderd2b63cf2017-06-30 10:04:59614 }
615}