mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-17 07:37:51 +01:00

WebRTC is now using C++14 so there is no need to use the Abseil version of std::make_unique. This CL has been created with the following steps: git grep -l absl::make_unique | sort | uniq > /tmp/make_unique.txt git grep -l absl::WrapUnique | sort | uniq > /tmp/wrap_unique.txt git grep -l "#include <memory>" | sort | uniq > /tmp/memory.txt diff --new-line-format="" --unchanged-line-format="" \ /tmp/make_unique.txt /tmp/wrap_unique.txt | sort | \ uniq > /tmp/only_make_unique.txt diff --new-line-format="" --unchanged-line-format="" \ /tmp/only_make_unique.txt /tmp/memory.txt | \ xargs grep -l "absl/memory" > /tmp/add-memory.txt git grep -l "\babsl::make_unique\b" | \ xargs sed -i "s/\babsl::make_unique\b/std::make_unique/g" git checkout PRESUBMIT.py abseil-in-webrtc.md cat /tmp/add-memory.txt | \ xargs sed -i \ 's/#include "absl\/memory\/memory.h"/#include <memory>/g' git cl format # Manual fix order of the new inserted #include <memory> cat /tmp/only_make_unique | xargs grep -l "#include <memory>" | \ xargs sed -i '/#include "absl\/memory\/memory.h"/d' git ls-files | grep BUILD.gn | \ xargs sed -i '/\/\/third_party\/abseil-cpp\/absl\/memory/d' python tools_webrtc/gn_check_autofix.py \ -m tryserver.webrtc -b linux_rel # Repead the gn_check_autofix step for other platforms git ls-files | grep BUILD.gn | \ xargs sed -i 's/absl\/memory:memory/absl\/memory/g' git cl format Bug: webrtc:10945 Change-Id: I3fe28ea80f4dd3ba3cf28effd151d5e1f19aff89 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/153221 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29209}
253 lines
6.8 KiB
Text
253 lines
6.8 KiB
Text
# Copyright (c) 2018 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")
|
|
|
|
rtc_static_library("alr_experiment") {
|
|
sources = [
|
|
"alr_experiment.cc",
|
|
"alr_experiment.h",
|
|
]
|
|
deps = [
|
|
"../:rtc_base_approved",
|
|
"../../api/transport:field_trial_based_config",
|
|
"../../api/transport:webrtc_key_value_config",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("audio_allocation_settings") {
|
|
sources = [
|
|
"audio_allocation_settings.cc",
|
|
"audio_allocation_settings.h",
|
|
]
|
|
defines = []
|
|
if (rtc_opus_support_120ms_ptime) {
|
|
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ]
|
|
} else {
|
|
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ]
|
|
}
|
|
deps = [
|
|
":field_trial_parser",
|
|
"../:rtc_base_approved",
|
|
"../../system_wrappers:field_trial",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("field_trial_parser") {
|
|
sources = [
|
|
"field_trial_list.cc",
|
|
"field_trial_list.h",
|
|
"field_trial_parser.cc",
|
|
"field_trial_parser.h",
|
|
"field_trial_units.cc",
|
|
"field_trial_units.h",
|
|
"struct_parameters_parser.cc",
|
|
"struct_parameters_parser.h",
|
|
]
|
|
deps = [
|
|
"../../api/units:data_rate",
|
|
"../../api/units:data_size",
|
|
"../../api/units:time_delta",
|
|
"../../rtc_base:checks",
|
|
"../../rtc_base:logging",
|
|
"../../rtc_base:safe_conversions",
|
|
"../../rtc_base:stringutils",
|
|
"//third_party/abseil-cpp/absl/memory",
|
|
"//third_party/abseil-cpp/absl/strings:strings",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("quality_scaler_settings") {
|
|
sources = [
|
|
"quality_scaler_settings.cc",
|
|
"quality_scaler_settings.h",
|
|
]
|
|
deps = [
|
|
":field_trial_parser",
|
|
"../:rtc_base_approved",
|
|
"../../api/transport:field_trial_based_config",
|
|
"../../api/transport:webrtc_key_value_config",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("quality_scaling_experiment") {
|
|
sources = [
|
|
"quality_scaling_experiment.cc",
|
|
"quality_scaling_experiment.h",
|
|
]
|
|
deps = [
|
|
"../:rtc_base_approved",
|
|
"../../api/video_codecs:video_codecs_api",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("normalize_simulcast_size_experiment") {
|
|
sources = [
|
|
"normalize_simulcast_size_experiment.cc",
|
|
"normalize_simulcast_size_experiment.h",
|
|
]
|
|
deps = [
|
|
"../:rtc_base_approved",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("balanced_degradation_settings") {
|
|
sources = [
|
|
"balanced_degradation_settings.cc",
|
|
"balanced_degradation_settings.h",
|
|
]
|
|
deps = [
|
|
":field_trial_parser",
|
|
"../:rtc_base_approved",
|
|
"../../api/video_codecs:video_codecs_api",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("cpu_speed_experiment") {
|
|
sources = [
|
|
"cpu_speed_experiment.cc",
|
|
"cpu_speed_experiment.h",
|
|
]
|
|
deps = [
|
|
"../:rtc_base_approved",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("rtt_mult_experiment") {
|
|
sources = [
|
|
"rtt_mult_experiment.cc",
|
|
"rtt_mult_experiment.h",
|
|
]
|
|
deps = [
|
|
"../:rtc_base_approved",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("jitter_upper_bound_experiment") {
|
|
sources = [
|
|
"jitter_upper_bound_experiment.cc",
|
|
"jitter_upper_bound_experiment.h",
|
|
]
|
|
deps = [
|
|
"../:rtc_base_approved",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("rate_control_settings") {
|
|
sources = [
|
|
"rate_control_settings.cc",
|
|
"rate_control_settings.h",
|
|
]
|
|
deps = [
|
|
":field_trial_parser",
|
|
"../:rtc_base_approved",
|
|
"../../api/transport:field_trial_based_config",
|
|
"../../api/transport:webrtc_key_value_config",
|
|
"../../api/video_codecs:video_codecs_api",
|
|
"../../system_wrappers:field_trial",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("keyframe_interval_settings_experiment") {
|
|
sources = [
|
|
"keyframe_interval_settings.cc",
|
|
"keyframe_interval_settings.h",
|
|
]
|
|
deps = [
|
|
":field_trial_parser",
|
|
"../../api/transport:field_trial_based_config",
|
|
"../../api/transport:webrtc_key_value_config",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("experimental_screenshare_settings") {
|
|
sources = [
|
|
"experimental_screenshare_settings.cc",
|
|
"experimental_screenshare_settings.h",
|
|
]
|
|
deps = [
|
|
":field_trial_parser",
|
|
"../../api/transport:field_trial_based_config",
|
|
"../../api/transport:webrtc_key_value_config",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
rtc_static_library("stable_target_rate_experiment") {
|
|
sources = [
|
|
"stable_target_rate_experiment.cc",
|
|
"stable_target_rate_experiment.h",
|
|
]
|
|
deps = [
|
|
":field_trial_parser",
|
|
":rate_control_settings",
|
|
"../../api/transport:field_trial_based_config",
|
|
"../../api/transport:webrtc_key_value_config",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_source_set("experiments_unittests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"balanced_degradation_settings_unittest.cc",
|
|
"cpu_speed_experiment_unittest.cc",
|
|
"field_trial_list_unittest.cc",
|
|
"field_trial_parser_unittest.cc",
|
|
"field_trial_units_unittest.cc",
|
|
"keyframe_interval_settings_unittest.cc",
|
|
"normalize_simulcast_size_experiment_unittest.cc",
|
|
"quality_scaler_settings_unittest.cc",
|
|
"quality_scaling_experiment_unittest.cc",
|
|
"rate_control_settings_unittest.cc",
|
|
"rtt_mult_experiment_unittest.cc",
|
|
"stable_target_rate_experiment_unittest.cc",
|
|
"struct_parameters_parser_unittest.cc",
|
|
]
|
|
deps = [
|
|
":balanced_degradation_settings",
|
|
":cpu_speed_experiment",
|
|
":field_trial_parser",
|
|
":keyframe_interval_settings_experiment",
|
|
":normalize_simulcast_size_experiment",
|
|
":quality_scaler_settings",
|
|
":quality_scaling_experiment",
|
|
":rate_control_settings",
|
|
":rtt_mult_experiment",
|
|
":stable_target_rate_experiment",
|
|
"..:gunit_helpers",
|
|
"../:rtc_base_tests_utils",
|
|
"../../api/video_codecs:video_codecs_api",
|
|
"../../system_wrappers:field_trial",
|
|
"../../test:field_trial",
|
|
"../../test:test_main",
|
|
"../../test:test_support",
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
]
|
|
}
|
|
}
|