2017-06-30 03:04:59 -07:00
|
|
|
# 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("//third_party/protobuf/proto_library.gni")
|
|
|
|
|
import("../webrtc.gni")
|
|
|
|
|
|
|
|
|
|
group("rtc_tools") {
|
|
|
|
|
# This target shall build all targets in tools/.
|
|
|
|
|
testonly = true
|
|
|
|
|
|
2017-12-06 16:31:18 +01:00
|
|
|
deps = [
|
2017-06-30 03:04:59 -07:00
|
|
|
":command_line_parser",
|
|
|
|
|
":frame_analyzer",
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2017-09-04 23:42:45 -07:00
|
|
|
":video_quality_analysis",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
2017-09-04 23:42:45 -07:00
|
|
|
if (!build_with_chromium) {
|
2017-12-06 16:31:18 +01:00
|
|
|
deps += [
|
2017-09-04 23:42:45 -07:00
|
|
|
":frame_editor",
|
|
|
|
|
":psnr_ssim_analyzer",
|
|
|
|
|
":rgba_to_i420_converter",
|
|
|
|
|
]
|
|
|
|
|
if (rtc_enable_protobuf) {
|
2017-12-06 16:31:18 +01:00
|
|
|
deps += [ ":chart_proto" ]
|
2017-09-04 23:42:45 -07:00
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2017-12-06 16:31:18 +01:00
|
|
|
deps += [
|
2017-06-30 03:04:59 -07:00
|
|
|
":activity_metric",
|
|
|
|
|
":tools_unittests",
|
|
|
|
|
]
|
|
|
|
|
if (rtc_enable_protobuf) {
|
2018-10-30 21:12:42 +01:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
deps += [ ":event_log_visualizer" ]
|
|
|
|
|
}
|
2017-12-06 16:31:18 +01:00
|
|
|
deps += [
|
2017-06-30 03:04:59 -07:00
|
|
|
":rtp_analyzer",
|
2017-12-12 15:53:31 +01:00
|
|
|
":unpack_aecdump",
|
2017-06-30 03:04:59 -07:00
|
|
|
"network_tester",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_static_library("command_line_parser") {
|
|
|
|
|
sources = [
|
|
|
|
|
"simple_command_line_parser.cc",
|
|
|
|
|
"simple_command_line_parser.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:gtest_prod",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-05 10:46:18 +02:00
|
|
|
rtc_static_library("video_file_reader") {
|
|
|
|
|
sources = [
|
|
|
|
|
"video_file_reader.cc",
|
|
|
|
|
"video_file_reader.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-09-05 10:46:18 +02:00
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../rtc_base:checks",
|
2018-09-05 10:46:18 +02:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-12-13 17:41:25 -08:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-09-05 10:46:18 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-14 11:32:00 +02:00
|
|
|
rtc_static_library("video_file_writer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"video_file_writer.cc",
|
|
|
|
|
"video_file_writer.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":video_file_reader",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-09-14 11:32:00 +02:00
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-12-13 17:41:25 -08:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-09-14 11:32:00 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-30 03:04:59 -07:00
|
|
|
rtc_static_library("video_quality_analysis") {
|
|
|
|
|
sources = [
|
2018-09-11 12:56:06 +02:00
|
|
|
"frame_analyzer/linear_least_squares.cc",
|
|
|
|
|
"frame_analyzer/linear_least_squares.h",
|
|
|
|
|
"frame_analyzer/video_color_aligner.cc",
|
|
|
|
|
"frame_analyzer/video_color_aligner.h",
|
2018-11-22 15:17:30 +01:00
|
|
|
"frame_analyzer/video_geometry_aligner.cc",
|
|
|
|
|
"frame_analyzer/video_geometry_aligner.h",
|
2017-06-30 03:04:59 -07:00
|
|
|
"frame_analyzer/video_quality_analysis.cc",
|
|
|
|
|
"frame_analyzer/video_quality_analysis.h",
|
2018-09-05 15:04:08 +02:00
|
|
|
"frame_analyzer/video_temporal_aligner.cc",
|
|
|
|
|
"frame_analyzer/video_temporal_aligner.h",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
2017-12-01 13:53:04 +01:00
|
|
|
deps = [
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2018-09-11 12:56:06 +02:00
|
|
|
"../api:array_view",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-22 15:17:30 +01:00
|
|
|
"../api/video:video_frame",
|
2018-09-05 10:46:18 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2017-12-06 16:31:18 +01:00
|
|
|
"../common_video",
|
2018-09-05 15:04:08 +02:00
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-01-30 15:33:02 +01:00
|
|
|
"../test:perf_test",
|
2018-09-05 15:04:08 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-12-14 11:24:00 +01:00
|
|
|
"//third_party/libyuv",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_executable("frame_analyzer") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-06-30 03:04:59 -07:00
|
|
|
sources = [
|
|
|
|
|
"frame_analyzer/frame_analyzer.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":command_line_parser",
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2018-09-14 11:32:00 +02:00
|
|
|
":video_file_writer",
|
2017-06-30 03:04:59 -07:00
|
|
|
":video_quality_analysis",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-09-05 16:11:48 +02:00
|
|
|
"../rtc_base:stringutils",
|
2018-01-30 15:33:02 +01:00
|
|
|
"../test:perf_test",
|
2018-12-13 17:41:25 -08:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-09-18 13:39:37 +02:00
|
|
|
if (!build_with_chromium && !build_with_mozilla) {
|
|
|
|
|
action("frame_analyzer_host") {
|
|
|
|
|
script = "//tools_webrtc/executable_host_build.py"
|
|
|
|
|
outputs = [
|
|
|
|
|
"${root_out_dir}/frame_analyzer_host",
|
|
|
|
|
]
|
|
|
|
|
args = [
|
|
|
|
|
"--executable_name",
|
|
|
|
|
"frame_analyzer",
|
|
|
|
|
]
|
|
|
|
|
}
|
2018-09-18 11:03:39 +02:00
|
|
|
}
|
|
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
# 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) {
|
2019-02-04 15:21:46 +01:00
|
|
|
rtc_executable("rtp_generator") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"rtp_generator/main.cc",
|
|
|
|
|
"rtp_generator/rtp_generator.cc",
|
|
|
|
|
"rtp_generator/rtp_generator.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":command_line_parser",
|
|
|
|
|
"../api:libjingle_peerconnection_api",
|
|
|
|
|
"../api:transport_api",
|
|
|
|
|
"../api/video:builtin_video_bitrate_allocator_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_encoder_factory",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../call:fake_network",
|
|
|
|
|
"../call:rtp_interfaces",
|
|
|
|
|
"../call:rtp_sender",
|
|
|
|
|
"../call:simulated_network",
|
|
|
|
|
"../call:simulated_packet_receiver",
|
|
|
|
|
"../call:video_stream_api",
|
|
|
|
|
"../logging:rtc_event_log_api",
|
|
|
|
|
"../logging:rtc_event_log_impl_base",
|
|
|
|
|
"../media:rtc_audio_video",
|
|
|
|
|
"../media:rtc_media_base",
|
|
|
|
|
"../rtc_base:rtc_base",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_json",
|
|
|
|
|
"../rtc_base/system:file_wrapper",
|
|
|
|
|
"../test:fileutils",
|
|
|
|
|
"../test:rtp_test_utils",
|
|
|
|
|
"../test:video_test_common",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_executable("psnr_ssim_analyzer") {
|
|
|
|
|
sources = [
|
|
|
|
|
"psnr_ssim_analyzer/psnr_ssim_analyzer.cc",
|
|
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
deps = [
|
|
|
|
|
":command_line_parser",
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2017-09-04 23:42:45 -07:00
|
|
|
":video_quality_analysis",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_frame",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_static_library("reference_less_video_analysis_lib") {
|
|
|
|
|
sources = [
|
|
|
|
|
"frame_analyzer/reference_less_video_analysis_lib.cc",
|
|
|
|
|
"frame_analyzer/reference_less_video_analysis_lib.h",
|
|
|
|
|
]
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
deps = [
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2017-09-04 23:42:45 -07:00
|
|
|
":video_quality_analysis",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_frame",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_executable("reference_less_video_analysis") {
|
2017-06-30 03:04:59 -07:00
|
|
|
sources = [
|
2017-09-04 23:42:45 -07:00
|
|
|
"frame_analyzer/reference_less_video_analysis.cc",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2017-09-04 23:42:45 -07:00
|
|
|
":command_line_parser",
|
|
|
|
|
":reference_less_video_analysis_lib",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_executable("rgba_to_i420_converter") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-06-30 03:04:59 -07:00
|
|
|
sources = [
|
2017-09-04 23:42:45 -07:00
|
|
|
"converter/converter.cc",
|
|
|
|
|
"converter/converter.h",
|
|
|
|
|
"converter/rgba_to_i420_converter.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":command_line_parser",
|
|
|
|
|
"../common_video",
|
2017-12-14 11:24:00 +01:00
|
|
|
"//third_party/libyuv",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-04 23:42:45 -07:00
|
|
|
rtc_static_library("frame_editing_lib") {
|
2017-06-30 03:04:59 -07:00
|
|
|
sources = [
|
2017-09-04 23:42:45 -07:00
|
|
|
"frame_editing/frame_editing_lib.cc",
|
|
|
|
|
"frame_editing/frame_editing_lib.h",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
2017-09-04 23:42:45 -07:00
|
|
|
|
2017-06-30 03:04:59 -07:00
|
|
|
deps = [
|
2017-09-04 23:42:45 -07:00
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../common_video",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
2017-09-04 23:42:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_executable("frame_editor") {
|
|
|
|
|
sources = [
|
|
|
|
|
"frame_editing/frame_editing.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":command_line_parser",
|
|
|
|
|
":frame_editing_lib",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
2017-09-04 23:42:45 -07:00
|
|
|
|
|
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
proto_library("chart_proto") {
|
|
|
|
|
sources = [
|
2018-12-10 18:42:09 +01:00
|
|
|
"event_log_visualizer/proto/chart.proto",
|
|
|
|
|
"event_log_visualizer/proto/chart_enums.proto",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
2018-12-10 18:42:09 +01:00
|
|
|
proto_out_dir = "rtc_tools/event_log_visualizer/proto"
|
2017-09-04 23:42:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_static_library("event_log_visualizer_utils") {
|
2018-01-10 15:57:32 +00:00
|
|
|
visibility = [ "*" ]
|
2017-09-04 23:42:45 -07:00
|
|
|
sources = [
|
|
|
|
|
"event_log_visualizer/analyzer.cc",
|
|
|
|
|
"event_log_visualizer/analyzer.h",
|
|
|
|
|
"event_log_visualizer/plot_base.cc",
|
|
|
|
|
"event_log_visualizer/plot_base.h",
|
|
|
|
|
"event_log_visualizer/plot_protobuf.cc",
|
|
|
|
|
"event_log_visualizer/plot_protobuf.h",
|
|
|
|
|
"event_log_visualizer/plot_python.cc",
|
|
|
|
|
"event_log_visualizer/plot_python.h",
|
2017-11-30 15:15:25 +01:00
|
|
|
"event_log_visualizer/triage_notifications.h",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
defines = [ "ENABLE_RTC_EVENT_LOG" ]
|
|
|
|
|
deps = [
|
2017-12-06 16:31:18 +01:00
|
|
|
":chart_proto",
|
2017-12-12 12:46:13 +01:00
|
|
|
"../:webrtc_common",
|
2018-12-19 15:06:17 +01:00
|
|
|
|
|
|
|
|
# TODO(kwiberg): Remove this dependency.
|
|
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2019-01-17 16:24:12 +01:00
|
|
|
"../api/transport:field_trial_based_config",
|
2018-12-19 15:06:17 +01:00
|
|
|
"../api/transport:goog_cc",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../call:video_stream_api",
|
2017-12-12 12:46:13 +01:00
|
|
|
"../logging:rtc_event_log_api",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_event_log_impl_base",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../logging:rtc_event_log_parser",
|
2018-02-01 11:04:46 -08:00
|
|
|
"../logging:rtc_stream_config",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../modules/audio_coding:ana_debug_dump_proto",
|
2017-12-12 12:46:13 +01:00
|
|
|
"../modules/audio_coding:audio_network_adaptor",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../modules/audio_coding:neteq_tools",
|
|
|
|
|
"../modules/congestion_controller",
|
2018-07-02 09:25:25 +02:00
|
|
|
"../modules/congestion_controller/goog_cc:delay_based_bwe",
|
2018-05-24 14:17:06 +02:00
|
|
|
"../modules/congestion_controller/goog_cc:estimators",
|
2018-10-15 18:46:51 +02:00
|
|
|
"../modules/congestion_controller/rtp:transport_feedback",
|
2017-10-31 10:19:10 +01:00
|
|
|
"../modules/pacing",
|
2018-10-15 18:46:51 +02:00
|
|
|
"../modules/remote_bitrate_estimator",
|
2017-09-04 23:42:45 -07:00
|
|
|
"../modules/rtp_rtcp",
|
2018-12-19 15:06:17 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base:rtc_numerics",
|
|
|
|
|
"../rtc_base:stringutils",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2019-01-11 13:01:29 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2017-09-04 23:42:45 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2018-10-30 21:12:42 +01:00
|
|
|
if (rtc_enable_protobuf && !build_with_chromium) {
|
2017-06-30 03:04:59 -07:00
|
|
|
rtc_executable("event_log_visualizer") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"event_log_visualizer/main.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
defines = [ "ENABLE_RTC_EVENT_LOG" ]
|
|
|
|
|
deps = [
|
|
|
|
|
":event_log_visualizer_utils",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../logging:rtc_event_log_api",
|
2017-12-06 16:31:18 +01:00
|
|
|
"../logging:rtc_event_log_parser",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../modules/audio_coding:neteq",
|
|
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
|
|
|
|
"../rtc_base:checks",
|
2017-12-12 12:46:13 +01:00
|
|
|
"../rtc_base:protobuf_utils",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
2017-06-30 03:04:59 -07:00
|
|
|
"../test:field_trial",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-06-30 03:04:59 -07:00
|
|
|
"../test:test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_executable("activity_metric") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"agc/activity_metric.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
2018-04-12 22:44:09 +02:00
|
|
|
"../api/audio:audio_frame_api",
|
2018-07-06 14:54:30 +02:00
|
|
|
"../modules/audio_processing/agc:level_estimation",
|
2018-02-05 11:15:23 +01:00
|
|
|
"../modules/audio_processing/vad",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-03-07 14:18:56 +01:00
|
|
|
"../rtc_base:safe_minmax",
|
2017-06-30 03:04:59 -07:00
|
|
|
"../test:test_support",
|
|
|
|
|
"//testing/gtest",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tools_unittests_resources = [
|
2018-09-05 15:04:08 +02:00
|
|
|
"../resources/foreman_128x96.yuv",
|
2017-09-15 06:47:31 +02:00
|
|
|
"../resources/foreman_cif.yuv",
|
|
|
|
|
"../resources/reference_less_video_test_file.y4m",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
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 = [
|
2018-09-11 12:56:06 +02:00
|
|
|
"frame_analyzer/linear_least_squares_unittest.cc",
|
2017-06-30 03:04:59 -07:00
|
|
|
"frame_analyzer/reference_less_video_analysis_unittest.cc",
|
2018-09-11 12:56:06 +02:00
|
|
|
"frame_analyzer/video_color_aligner_unittest.cc",
|
2018-11-22 15:17:30 +01:00
|
|
|
"frame_analyzer/video_geometry_aligner_unittest.cc",
|
2017-06-30 03:04:59 -07:00
|
|
|
"frame_analyzer/video_quality_analysis_unittest.cc",
|
2018-09-05 15:04:08 +02:00
|
|
|
"frame_analyzer/video_temporal_aligner_unittest.cc",
|
2017-06-30 03:04:59 -07:00
|
|
|
"frame_editing/frame_editing_unittest.cc",
|
2017-09-14 13:05:00 +02:00
|
|
|
"sanitizers_unittest.cc",
|
2017-06-30 03:04:59 -07:00
|
|
|
"simple_command_line_parser_unittest.cc",
|
2018-09-05 10:46:18 +02:00
|
|
|
"video_file_reader_unittest.cc",
|
2018-09-14 11:32:00 +02:00
|
|
|
"video_file_writer_unittest.cc",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":command_line_parser",
|
2018-09-05 10:46:18 +02:00
|
|
|
":video_file_reader",
|
2018-09-14 11:32:00 +02:00
|
|
|
":video_file_writer",
|
2017-06-30 03:04:59 -07:00
|
|
|
":video_quality_analysis",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../:webrtc_common",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
2017-12-01 13:53:04 +01:00
|
|
|
"../common_video:common_video",
|
2017-09-14 13:05:00 +02:00
|
|
|
"../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../test:fileutils",
|
2017-06-30 03:04:59 -07:00
|
|
|
"../test:test_main",
|
2018-10-30 21:12:42 +01:00
|
|
|
"../test:test_support",
|
2017-06-30 03:04:59 -07:00
|
|
|
"//testing/gtest",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2018-09-11 12:56:06 +02:00
|
|
|
"//third_party/libyuv",
|
2017-06-30 03:04:59 -07:00
|
|
|
]
|
|
|
|
|
|
2018-10-30 21:12:42 +01:00
|
|
|
if (!build_with_chromium) {
|
|
|
|
|
deps += [
|
|
|
|
|
":frame_editing_lib",
|
|
|
|
|
":reference_less_video_analysis_lib",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-30 03:04:59 -07:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
deps += [ "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) {
|
|
|
|
|
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",
|
|
|
|
|
]
|
2017-12-12 15:53:31 +01:00
|
|
|
} # rtp_analyzer
|
|
|
|
|
|
|
|
|
|
rtc_executable("unpack_aecdump") {
|
2018-01-10 22:18:27 +01:00
|
|
|
visibility = [ "*" ]
|
2017-12-12 15:53:31 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"unpack_aecdump/unpack.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../common_audio",
|
|
|
|
|
"../modules/audio_processing",
|
|
|
|
|
"../modules/audio_processing:audioproc_debug_proto",
|
|
|
|
|
"../modules/audio_processing:audioproc_debug_proto",
|
|
|
|
|
"../modules/audio_processing:audioproc_protobuf_utils",
|
|
|
|
|
"../modules/audio_processing:audioproc_test_utils",
|
|
|
|
|
"../rtc_base:protobuf_utils",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
} # unpack_aecdump
|
2017-06-30 03:04:59 -07:00
|
|
|
}
|
|
|
|
|
}
|