gecko-dev/third_party/libwebrtc/rtc_tools/BUILD.gn

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

686 строки
23 KiB
Plaintext
Исходник Обычный вид История

# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
import("../webrtc.gni")
if (rtc_enable_protobuf) {
import("//third_party/protobuf/proto_library.gni")
}
group("rtc_tools") {
# This target shall build all targets in tools/.
testonly = true
deps = [ ":video_file_reader" ]
if (!build_with_chromium) {
deps += [
":frame_analyzer",
":psnr_ssim_analyzer",
":video_quality_analysis",
]
}
if (!build_with_chromium && rtc_enable_protobuf) {
deps += [ ":chart_proto" ]
}
if (!build_with_chromium && rtc_include_tests) {
deps += [ ":tools_unittests" ]
}
if (rtc_include_tests && rtc_enable_protobuf) {
deps += [
":rtp_analyzer",
"network_tester",
]
}
if (rtc_include_tests && rtc_enable_protobuf && !build_with_chromium) {
deps += [
":audioproc_f",
":event_log_visualizer",
":rtc_event_log_to_text",
":unpack_aecdump",
]
}
if (!build_with_chromium && rtc_enable_grpc) {
deps += [ "data_channel_benchmark" ]
}
}
rtc_library("video_file_reader") {
sources = [
"video_file_reader.cc",
"video_file_reader.h",
]
deps = [
"../api:make_ref_counted",
"../api:ref_count",
"../api:scoped_refptr",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:refcount",
"../rtc_base:stringutils",
]
absl_deps = [
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("video_file_writer") {
sources = [
"video_file_writer.cc",
"video_file_writer.h",
]
deps = [
":video_file_reader",
"../api:scoped_refptr",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../rtc_base:logging",
]
absl_deps = [
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("video_quality_analysis") {
testonly = true
sources = [
"frame_analyzer/linear_least_squares.cc",
"frame_analyzer/linear_least_squares.h",
"frame_analyzer/video_color_aligner.cc",
"frame_analyzer/video_color_aligner.h",
"frame_analyzer/video_geometry_aligner.cc",
"frame_analyzer/video_geometry_aligner.h",
"frame_analyzer/video_quality_analysis.cc",
"frame_analyzer/video_quality_analysis.h",
"frame_analyzer/video_temporal_aligner.cc",
"frame_analyzer/video_temporal_aligner.h",
]
deps = [
":video_file_reader",
"../api:array_view",
"../api:make_ref_counted",
"../api:scoped_refptr",
"../api/numerics",
"../api/test/metrics:metric",
"../api/test/metrics:metrics_logger",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../common_video",
"../rtc_base:checks",
"../rtc_base:logging",
"//third_party/libyuv",
]
absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ]
}
# TODO(bugs.webrtc.org/11474): Enable this on win if needed. For now it
# is only required for Linux and Android.
if (!build_with_chromium && !build_with_mozilla && !is_win && !is_ios) {
action("frame_analyzer_host") {
script = "//tools_webrtc/executable_host_build.py"
outputs = [ "${root_out_dir}/frame_analyzer_host" ]
args = [
"--executable_name",
"frame_analyzer",
]
}
}
if (!is_component_build) {
# This target can be built from Chromium but it doesn't support
# is_component_build=true because it depends on WebRTC testonly code
# which is not part of //third_party/webrtc_overrides:webrtc_component.
# Abseil dependencies are not moved to the absl_deps field deliberately.
# If build_with_chromium is true, the absl_deps replaces the dependencies with
# the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
# (and some others) because they cannot be used in Chromiums. Special exception
# for the "frame_analyzer" target in "third_party/abseil-cpp/absl.gni" allows
# it to be build in chromium.
rtc_executable("frame_analyzer") {
visibility = [ "*" ]
testonly = true
sources = [ "frame_analyzer/frame_analyzer.cc" ]
deps = [
":video_file_reader",
":video_file_writer",
":video_quality_analysis",
"../api:make_ref_counted",
"../api:scoped_refptr",
"../api/test/metrics:chrome_perf_dashboard_metrics_exporter",
"../api/test/metrics:global_metrics_logger_and_exporter",
"../api/test/metrics:metrics_exporter",
"../api/test/metrics:stdout_metrics_exporter",
"../rtc_base:stringutils",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/strings",
]
if (build_with_chromium) {
# When building from Chromium, WebRTC's metrics and field trial
# implementations need to be replaced by the Chromium ones.
deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
}
}
# This target can be built from Chromium but it doesn't support
# is_component_build=true because it depends on WebRTC testonly code
# which is not part of //third_party/webrtc_overrides:webrtc_component.
# Abseil dependencies are not moved to the absl_deps field deliberately.
# If build_with_chromium is true, the absl_deps replaces the dependencies with
# the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
# (and some others) because they cannot be used in Chromiums. Special exception
# for the "rtp_generator" target in "third_party/abseil-cpp/absl.gni" allows
# it to be build in chromium.
rtc_executable("rtp_generator") {
visibility = [ "*" ]
testonly = true
sources = [
"rtp_generator/main.cc",
"rtp_generator/rtp_generator.cc",
"rtp_generator/rtp_generator.h",
]
deps = [
"..//api/video_codecs:video_decoder_factory_template",
"..//api/video_codecs:video_decoder_factory_template_dav1d_adapter",
"..//api/video_codecs:video_decoder_factory_template_libvpx_vp8_adapter",
"..//api/video_codecs:video_decoder_factory_template_libvpx_vp9_adapter",
"..//api/video_codecs:video_decoder_factory_template_open_h264_adapter",
"..//api/video_codecs:video_encoder_factory_template",
"..//api/video_codecs:video_encoder_factory_template_libaom_av1_adapter",
"..//api/video_codecs:video_encoder_factory_template_libvpx_vp8_adapter",
"..//api/video_codecs:video_encoder_factory_template_libvpx_vp9_adapter",
"..//api/video_codecs:video_encoder_factory_template_open_h264_adapter",
"..//test/network:simulated_network",
"../api:create_frame_generator",
"../api:rtp_parameters",
"../api:transport_api",
"../api/environment",
"../api/environment:environment_factory",
"../api/video:builtin_video_bitrate_allocator_factory",
"../api/video_codecs:video_codecs_api",
"../call",
"../call:call_interfaces",
"../call:fake_network",
"../call:rtp_interfaces",
"../call:rtp_sender",
"../call:simulated_packet_receiver",
"../call:video_stream_api",
"../media:media_constants",
"../media:rtc_audio_video",
"../rtc_base:rtc_json",
Bug 1766646 - Vendor libwebrtc from e5f4c6b8d2 Upstream commit: https://webrtc.googlesource.com/src/+/e5f4c6b8d2b2fce452e1e6228be7c4f52a08db6f Reland "Refactor rtc_base build targets." This is a reland of 69241a93fb14f6527a26d5c94dde879013012d2a Fix: The problem was related to NO_MAIN_THREAD_WRAPPING, which affects https://source.chromium.org/chromium/chromium/src/+/master:third_party/webrtc/rtc_base/thread.cc;l=257-263;drc=7acc2d9fe3a6e3c4d8881d2bdfc9b8968a724cd5. The original CL didn't attach the definition of the macro NO_MAIN_THREAD_WRAPPING when building for Chromium (which doesn't have to be related to //rtc_base anymore but to //rtc_base:threading). Original change's description: > Refactor rtc_base build targets. > > The "//rtc_base:rtc_base" build target has historically been one of the > biggest targets in the WebRTC build. Big targets are the main source of > circular dependencies and non-API types leakage. > > This CL is a step forward into splitting "//rtc_base:rtc_base" into > smaller targets (as originally started in 2018). > > The only non-automated changes are (like re-wiring the build system): > * The creation of //rtc_base/async_resolver.{h,cc} which allows to > break a circular dependency (is has been extracted from > //rtc_base/net_helpers.{h,cc}). > * The creation of //rtc_base/internal/default_socket_server.{h,cc} to > break another circular dependency. > > Bug: webrtc:9987 > Change-Id: I0c8f5e7efe2c8fd8e6bffa0d6dd2dd494cf3df02 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/196903 > Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> > Reviewed-by: Harald Alvestrand <hta@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#32941} Bug: webrtc:9987 Change-Id: I7cdf49d2aac8357f1f50f90010bf2c2f62fa19f6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/202021 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33001}
2022-04-28 22:54:22 +03:00
"../rtc_base:threading",
"../rtc_base/system:file_wrapper",
"../test:fileutils",
"../test:frame_generator_capturer",
"../test:rtp_test_utils",
"../video/config:encoder_config",
"../video/config:streams_config",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
"//third_party/abseil-cpp/absl/strings",
]
if (build_with_chromium) {
# When building from Chromium, WebRTC's metrics and field trial
# implementations need to be replaced by the Chromium ones.
deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
}
}
# This target can be built from Chromium but it doesn't support
# is_component_build=true because it depends on WebRTC testonly code
# which is not part of //third_party/webrtc_overrides:webrtc_component.
# Abseil dependencies are not moved to the absl_deps field deliberately.
# If build_with_chromium is true, the absl_deps replaces the dependencies with
# the "//third_party/abseil-cpp:absl" target. Which doesn't include absl/flags
# (and some others) because they cannot be used in Chromiums. Special exception
# for the "video_replay" target in "third_party/abseil-cpp/absl.gni" allows
# it to be build in chromium.
rtc_executable("video_replay") {
visibility = [ "*" ]
testonly = true
sources = [ "video_replay.cc" ]
deps = [
"../api:field_trials",
"../api:rtp_parameters",
"../api/environment",
"../api/environment:environment_factory",
"../api/task_queue",
"../api/test/video:function_video_factory",
"../api/transport:field_trial_based_config",
"../api/units:timestamp",
"../api/video:video_frame",
"../api/video_codecs:video_codecs_api",
"../call",
"../call:call_interfaces",
"../common_video",
"../media:rtc_internal_video_codecs",
"../modules/rtp_rtcp:rtp_rtcp_format",
"../modules/video_coding:video_coding_utility",
"../rtc_base:checks",
"../rtc_base:rtc_json",
"../rtc_base:stringutils",
"../system_wrappers",
"../test:call_config_utils",
"../test:encoder_settings",
"../test:fake_video_codecs",
"../test:null_transport",
"../test:rtp_test_utils",
"../test:run_loop",
"../test:run_test",
"../test:run_test_interface",
"../test:test_renderer",
"../test:test_support",
"../test:test_video_capturer",
"../test:video_test_common",
Bug 1843113 - Vendor libwebrtc from 8a9f3a8f53 Upstream commit: https://webrtc.googlesource.com/src/+/8a9f3a8f53b2e861faf0ec47642e644f8940f290 Reland "Remove dependency of video_replay on TestADM." This reverts commit f9e3bdd2ce410b18ca7e03b3754f94a18eb7ef3a. Reason for revert: reland with fix Original change's description: > Revert "Remove dependency of video_replay on TestADM." > > This reverts commit 01716663a9837a26fa292fe70fdea353cbd01a67. > > Reason for revert: breaking CallPerfTest > https://ci.chromium.org/ui/p/webrtc/builders/perf/Perf%20Android32%20(R%20Pixel5)/967/overview > > Original change's description: > > Remove dependency of video_replay on TestADM. > > > > This should remove requirement to build TestADM in chromium build. > > > > Bug: b/272350185, webrtc:15081 > > Change-Id: Iceb8862aa81099c22bd378ae692229f01ab3314c > > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/302380 > > Reviewed-by: Henrik Andreassson <henrika@webrtc.org> > > Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> > > Commit-Queue: Artem Titov <titovartem@webrtc.org> > > Cr-Commit-Position: refs/heads/main@{#39934} > > Bug: b/272350185, webrtc:15081 > Change-Id: I73aa0fd3c3d8c244d20e5f29f5792a4c7d7e4165 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/303160 > Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> > Owners-Override: Jeremy Leconte <jleconte@google.com> > Commit-Queue: Jeremy Leconte <jleconte@google.com> > Cr-Commit-Position: refs/heads/main@{#39939} Bug: b/272350185, webrtc:15081 Change-Id: I360ef3e140e60fc21d622480d1f3326e40a76f58 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/303400 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Henrik Andreassson <henrika@webrtc.org> Commit-Queue: Henrik Andreassson <henrika@webrtc.org> Auto-Submit: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39946}
2023-07-14 23:54:27 +03:00
"../test:video_test_constants",
"../test:video_test_support",
"../test/time_controller:time_controller",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/strings:strings",
]
if (build_with_chromium) {
# When building from Chromium, WebRTC's metrics and field trial
# implementations need to be replaced by the Chromium ones.
deps += [ "//third_party/webrtc_overrides:webrtc_component" ]
}
}
}
# Only expose the targets needed by Chromium (e.g. frame_analyzer) to avoid
# building a lot of redundant code as part of Chromium builds.
if (!build_with_chromium) {
rtc_executable("psnr_ssim_analyzer") {
testonly = true
sources = [ "psnr_ssim_analyzer/psnr_ssim_analyzer.cc" ]
deps = [
":video_file_reader",
":video_quality_analysis",
"../api:scoped_refptr",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
]
}
rtc_library("reference_less_video_analysis_lib") {
testonly = true
sources = [
"frame_analyzer/reference_less_video_analysis_lib.cc",
"frame_analyzer/reference_less_video_analysis_lib.h",
]
deps = [
":video_file_reader",
":video_quality_analysis",
"../api:scoped_refptr",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
]
}
rtc_executable("reference_less_video_analysis") {
testonly = true
sources = [ "frame_analyzer/reference_less_video_analysis.cc" ]
deps = [
":reference_less_video_analysis_lib",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
]
}
if (rtc_enable_protobuf) {
proto_library("chart_proto") {
visibility = [ "*" ]
sources = [
"rtc_event_log_visualizer/proto/chart.proto",
"rtc_event_log_visualizer/proto/chart_enums.proto",
]
proto_out_dir = "rtc_tools/rtc_event_log_visualizer/proto"
}
rtc_library("event_log_visualizer_utils") {
visibility = [ "*" ]
allow_poison = [ "environment_construction" ]
sources = [
"rtc_event_log_visualizer/alerts.cc",
"rtc_event_log_visualizer/alerts.h",
"rtc_event_log_visualizer/analyze_audio.cc",
"rtc_event_log_visualizer/analyze_audio.h",
"rtc_event_log_visualizer/analyzer.cc",
"rtc_event_log_visualizer/analyzer.h",
"rtc_event_log_visualizer/analyzer_common.cc",
"rtc_event_log_visualizer/analyzer_common.h",
"rtc_event_log_visualizer/log_simulation.cc",
"rtc_event_log_visualizer/log_simulation.h",
"rtc_event_log_visualizer/plot_base.cc",
"rtc_event_log_visualizer/plot_base.h",
]
deps = [
":chart_proto",
"../api:dtls_transport_interface",
"../api:function_view",
"../api:make_ref_counted",
"../api:network_state_predictor_api",
"../api:rtp_headers",
"../api:rtp_parameters",
"../api:scoped_refptr",
"../api/audio_codecs:audio_codecs_api", # TODO(kwiberg): Remove this
# dependency.
"../api/environment:environment_factory",
"../api/neteq:neteq_api",
"../api/rtc_event_log:rtc_event_log",
"../api/transport:field_trial_based_config",
"../api/transport:goog_cc",
"../api/transport:network_control",
"../api/units:data_rate",
"../api/units:time_delta",
"../api/units:timestamp",
"../call:call_interfaces",
"../call:video_stream_api",
"../logging:ice_log",
"../logging:rtc_event_audio",
"../logging:rtc_event_audio",
"../logging:rtc_event_bwe",
"../logging:rtc_event_generic_packet_events",
"../logging:rtc_event_log_parser",
"../logging:rtc_event_rtp_rtcp",
"../logging:rtc_stream_config",
"../modules/audio_coding:ana_debug_dump_proto",
"../modules/audio_coding:audio_network_adaptor",
"../modules/audio_coding:neteq_input_audio_tools",
"../modules/audio_coding:neteq_tools",
"../modules/audio_coding:neteq_tools_minimal",
"../modules/congestion_controller",
"../modules/congestion_controller/goog_cc:delay_based_bwe",
"../modules/congestion_controller/goog_cc:estimators",
"../modules/congestion_controller/rtp:transport_feedback",
"../modules/pacing",
"../modules/remote_bitrate_estimator",
"../modules/rtp_rtcp",
"../modules/rtp_rtcp:rtp_rtcp_format",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:macromagic",
"../rtc_base:rate_statistics",
"../rtc_base:refcount",
"../rtc_base:rtc_numerics",
"../rtc_base:stringutils",
"../rtc_base/network:sent_packet",
"../system_wrappers",
"../test:explicit_key_value_config",
]
absl_deps = [
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/functional:bind_front",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
}
rtc_library("event_log_visualizer_bindings") {
visibility = [ "*" ]
allow_poison = [ "environment_construction" ]
sources = [
"rtc_event_log_visualizer/analyzer_bindings.cc",
"rtc_event_log_visualizer/analyzer_bindings.h",
]
deps = [
":chart_proto",
":event_log_visualizer_utils",
"//api/units:time_delta",
"//logging:rtc_event_log_parser",
"//rtc_base:protobuf_utils",
"//rtc_base:safe_conversions",
]
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
}
rtc_library("event_log_visualizer_bindings_unittest") {
testonly = true
sources = [ "rtc_event_log_visualizer/analyzer_bindings_unittest.cc" ]
deps = [
":chart_proto",
":event_log_visualizer_bindings",
"//rtc_base:protobuf_utils",
"//rtc_base/system:file_wrapper",
"//test:fileutils",
"//test:test_support",
]
}
}
rtc_executable("video_encoder") {
visibility = [ "*" ]
testonly = true
sources = [
"video_encoder/encoded_image_file_writer.cc",
"video_encoder/encoded_image_file_writer.h",
"video_encoder/video_encoder.cc",
]
deps = [
"//api:create_frame_generator",
"//api:frame_generator_api",
"//api/environment",
"//api/environment:environment_factory",
"//api/video:builtin_video_bitrate_allocator_factory",
"//api/video_codecs:builtin_video_encoder_factory",
"//api/video_codecs:video_codecs_api",
"//media:media_constants",
"//modules/video_coding:video_codec_interface",
"//modules/video_coding:video_coding_utility",
"//modules/video_coding/codecs/av1:av1_svc_config",
"//modules/video_coding/svc:scalability_mode_util",
"//rtc_base:logging",
"//test:y4m_frame_generator",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
]
}
}
if (rtc_include_tests) {
if (!build_with_chromium) {
if (rtc_enable_protobuf) {
rtc_executable("event_log_visualizer") {
# TODO(bugs.webrtc.org/14248): Remove once usage of std::tmpnam
# is removed (in favor of in memory InputAudioFile.
cflags_cc = [ "-Wno-deprecated-declarations" ]
sources = [
"rtc_event_log_visualizer/conversational_speech_en.h",
"rtc_event_log_visualizer/main.cc",
]
deps = [
":event_log_visualizer_utils",
"../api/neteq:neteq_api",
"../api/rtc_event_log",
"../logging:rtc_event_log_parser",
"../modules/audio_coding:neteq",
"../modules/rtp_rtcp:rtp_rtcp_format",
"../rtc_base:checks",
"../rtc_base:logging",
"../rtc_base:protobuf_utils",
"../system_wrappers:field_trial",
"//third_party/abseil-cpp/absl/algorithm:container",
"//third_party/abseil-cpp/absl/flags:config",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
"//third_party/abseil-cpp/absl/strings",
]
}
rtc_executable("rtc_event_log_to_text") {
testonly = true
sources = [
"rtc_event_log_to_text/converter.cc",
"rtc_event_log_to_text/converter.h",
"rtc_event_log_to_text/main.cc",
]
deps = [
"../api/rtc_event_log",
"../logging:ice_log",
"../logging:rtc_event_audio",
"../logging:rtc_event_begin_end",
"../logging:rtc_event_bwe",
"../logging:rtc_event_frame_events",
"../logging:rtc_event_generic_packet_events",
"../logging:rtc_event_log2_proto",
"../logging:rtc_event_log_impl_encoder",
"../logging:rtc_event_log_parser",
"../logging:rtc_event_log_proto",
"../logging:rtc_event_pacing",
"../logging:rtc_event_rtp_rtcp",
"../logging:rtc_event_video",
"../logging:rtc_stream_config",
"../rtc_base:checks",
"../rtc_base:logging",
"//third_party/abseil-cpp/absl/base:core_headers",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
"//third_party/abseil-cpp/absl/flags:usage",
"//third_party/abseil-cpp/absl/strings",
]
}
}
tools_unittests_resources = [
"../resources/foreman_128x96.yuv",
"../resources/foreman_cif.yuv",
"../resources/reference_less_video_test_file.y4m",
"../resources/rtc_event_log/rtc_event_log_500kbps.binarypb",
]
if (is_ios) {
bundle_data("tools_unittests_bundle_data") {
testonly = true
sources = tools_unittests_resources
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
rtc_test("tools_unittests") {
testonly = true
sources = [
"frame_analyzer/linear_least_squares_unittest.cc",
"frame_analyzer/reference_less_video_analysis_unittest.cc",
"frame_analyzer/video_color_aligner_unittest.cc",
"frame_analyzer/video_geometry_aligner_unittest.cc",
"frame_analyzer/video_quality_analysis_unittest.cc",
"frame_analyzer/video_temporal_aligner_unittest.cc",
"sanitizers_unittest.cc",
"video_file_reader_unittest.cc",
"video_file_writer_unittest.cc",
]
deps = [
":video_file_reader",
":video_file_writer",
":video_quality_analysis",
"../api:scoped_refptr",
"../api/test/metrics:metric",
"../api/test/metrics:metrics_logger",
"../api/video:video_frame",
"../api/video:video_rtp_headers",
"../common_video",
"../rtc_base:checks",
"../rtc_base:null_socket_server",
"../rtc_base:threading",
"../system_wrappers",
"../test:fileutils",
"../test:test_main",
"../test:test_support",
"//testing/gtest",
"//third_party/libyuv",
]
if (!build_with_chromium) {
deps += [ ":reference_less_video_analysis_lib" ]
}
if (rtc_enable_protobuf) {
deps += [
":event_log_visualizer_bindings_unittest",
"network_tester:network_tester_unittests",
]
}
data = tools_unittests_resources
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
shard_timeout = 900
}
if (is_ios) {
deps += [ ":tools_unittests_bundle_data" ]
}
}
if (rtc_enable_protobuf) {
rtc_executable("audioproc_f") {
testonly = true
sources = [ "audioproc_f/audioproc_float_main.cc" ]
deps = [
"../api:audioproc_f_api",
"../api/audio:audio_processing",
"../modules/audio_processing",
]
}
rtc_executable("unpack_aecdump") {
visibility = [ "*" ]
sources = [ "unpack_aecdump/unpack.cc" ]
deps = [
"../api:function_view",
"../common_audio",
"../modules/audio_processing",
"../modules/audio_processing:audioproc_debug_proto",
"../modules/audio_processing:audioproc_debug_proto",
"../modules/audio_processing:audioproc_protobuf_utils",
"../rtc_base:checks",
"../rtc_base:macromagic",
"../rtc_base:protobuf_utils",
"../rtc_base:stringutils",
"../rtc_base/system:arch",
"//third_party/abseil-cpp/absl/flags:flag",
"//third_party/abseil-cpp/absl/flags:parse",
]
} # unpack_aecdump
}
}
if (rtc_enable_protobuf) {
copy("rtp_analyzer") {
sources = [
"py_event_log_analyzer/misc.py",
"py_event_log_analyzer/pb_parse.py",
"py_event_log_analyzer/rtp_analyzer.py",
"py_event_log_analyzer/rtp_analyzer.sh",
]
outputs = [ "$root_build_dir/{{source_file_part}}" ]
deps = [ "../logging:rtc_event_log_proto" ]
} # rtp_analyzer
}
}