Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
# Copyright (c) 2016 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("//build/config/linux/pkg_config.gni")
|
2017-01-24 06:58:22 -08:00
|
|
|
import("../webrtc.gni")
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
|
|
|
|
|
group("media") {
|
2018-01-15 10:20:00 -05:00
|
|
|
deps = []
|
|
|
|
|
if (!build_with_mozilla) {
|
|
|
|
|
deps += [
|
|
|
|
|
":rtc_media",
|
|
|
|
|
":rtc_media_base",
|
|
|
|
|
]
|
|
|
|
|
}
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("rtc_media_defines_config") {
|
2019-02-05 12:43:03 +01:00
|
|
|
defines = [ "HAVE_WEBRTC_VIDEO" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_h264_profile_id") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2017-06-21 01:02:59 -07:00
|
|
|
sources = [
|
|
|
|
|
"base/h264_profile_level_id.cc",
|
|
|
|
|
"base/h264_profile_level_id.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
Remove CodecInst pt.2
The following APIs on AudioCodingModule are deprecated with this CL:
static int NumberOfCodecs();
static int Codec(int, CodecInst*);
static int Codec(const char*, CodecInst*, int, size_t);
static int Codec(const char*, int, size_t);
absl::optional<CodecInst> SendCodec() const;
bool RegisterReceiveCodec(int, const SdpAudioFormat&);
int RegisterExternalReceiveCodec(int, AudioDecoder*, int, int, const std::string&);
int UnregisterReceiveCodec(uint8_t);
int32_t ReceiveCodec(CodecInst*);
absl::optional<SdpAudioFormat> ReceiveFormat();
As well as this method on RtpRtcp module:
int32_t RegisterSendPayload(const CodecInst&);
Bug: webrtc:7626
Change-Id: I1230732136f1fe9048cf74afdeab767ca57ac9ce
Reviewed-on: https://webrtc-review.googlesource.com/c/113816
Commit-Queue: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26025}
2018-12-11 12:22:10 +01:00
|
|
|
"../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-10-16 14:13:50 +02:00
|
|
|
"../rtc_base/system:rtc_export",
|
2018-06-15 15:58:38 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-06-21 01:02:59 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-23 10:37:42 +01:00
|
|
|
rtc_source_set("rtc_media_config") {
|
|
|
|
|
visibility = [ "*" ]
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"base/media_config.h",
|
2018-01-23 10:37:42 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_vp9_profile") {
|
2018-12-04 11:00:52 -05:00
|
|
|
visibility = [ "*" ]
|
2018-06-28 10:59:02 -07:00
|
|
|
sources = [
|
|
|
|
|
"base/vp9_profile.cc",
|
|
|
|
|
"base/vp9_profile.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2019-04-02 11:33:59 +02:00
|
|
|
"../rtc_base/system:rtc_export",
|
2018-06-28 10:59:02 -07:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_media_base") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
defines = []
|
|
|
|
|
libs = []
|
2017-12-13 16:05:42 +01:00
|
|
|
deps = [
|
2019-04-10 12:50:24 +02:00
|
|
|
":rtc_h264_profile_id",
|
|
|
|
|
":rtc_media_config",
|
|
|
|
|
":rtc_vp9_profile",
|
|
|
|
|
"..:webrtc_common",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api:array_view",
|
2018-01-19 11:28:54 +01:00
|
|
|
"../api:audio_options_api",
|
2019-09-17 14:30:41 +02:00
|
|
|
"../api:media_stream_interface",
|
2019-09-10 10:51:23 +02:00
|
|
|
"../api:rtc_error",
|
2019-08-26 10:45:28 +02:00
|
|
|
"../api:rtp_parameters",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2019-09-13 14:42:15 +02:00
|
|
|
"../api/crypto:frame_decryptor_interface",
|
|
|
|
|
"../api/crypto:frame_encryptor_interface",
|
|
|
|
|
"../api/crypto:options",
|
2019-09-12 13:59:36 +02:00
|
|
|
"../api/transport/media:media_transport_interface",
|
2019-09-02 15:16:49 +02:00
|
|
|
"../api/transport/rtp:rtp_source",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video:video_bitrate_allocation",
|
2019-04-17 07:38:40 +02:00
|
|
|
"../api/video:video_bitrate_allocator_factory",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../modules/audio_processing:audio_processing_statistics",
|
2019-05-27 10:44:24 +02:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2019-09-02 13:09:58 +02:00
|
|
|
"../p2p:stun_types",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2018-03-19 11:12:48 +01:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-03-19 11:12:48 +01:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:sanitizer",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../rtc_base:stringutils",
|
2019-04-09 13:44:04 +02:00
|
|
|
"../rtc_base/synchronization:sequence_checker",
|
2019-06-11 14:04:16 +02:00
|
|
|
"../rtc_base/system:file_wrapper",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base/system:rtc_export",
|
|
|
|
|
"../rtc_base/third_party/sigslot",
|
2019-10-18 15:03:13 +02:00
|
|
|
"../system_wrappers:field_trial",
|
2019-04-10 12:50:24 +02:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-12-13 16:05:42 +01:00
|
|
|
]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"base/adapted_video_track_source.cc",
|
|
|
|
|
"base/adapted_video_track_source.h",
|
|
|
|
|
"base/audio_source.h",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
"base/codec.cc",
|
|
|
|
|
"base/codec.h",
|
2019-02-27 15:32:48 +01:00
|
|
|
"base/delayable.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"base/media_channel.cc",
|
|
|
|
|
"base/media_channel.h",
|
|
|
|
|
"base/media_constants.cc",
|
|
|
|
|
"base/media_constants.h",
|
|
|
|
|
"base/media_engine.cc",
|
|
|
|
|
"base/media_engine.h",
|
|
|
|
|
"base/rid_description.cc",
|
|
|
|
|
"base/rid_description.h",
|
|
|
|
|
"base/rtp_data_engine.cc",
|
|
|
|
|
"base/rtp_data_engine.h",
|
|
|
|
|
"base/rtp_utils.cc",
|
|
|
|
|
"base/rtp_utils.h",
|
|
|
|
|
"base/stream_params.cc",
|
|
|
|
|
"base/stream_params.h",
|
|
|
|
|
"base/turn_utils.cc",
|
|
|
|
|
"base/turn_utils.h",
|
|
|
|
|
"base/video_adapter.cc",
|
|
|
|
|
"base/video_adapter.h",
|
|
|
|
|
"base/video_broadcaster.cc",
|
|
|
|
|
"base/video_broadcaster.h",
|
|
|
|
|
"base/video_common.cc",
|
|
|
|
|
"base/video_common.h",
|
|
|
|
|
"base/video_source_base.cc",
|
|
|
|
|
"base/video_source_base.h",
|
2016-11-25 00:40:18 -08:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_constants") {
|
2016-11-25 00:40:18 -08:00
|
|
|
defines = []
|
|
|
|
|
libs = []
|
2018-01-04 15:10:22 +01:00
|
|
|
deps = []
|
2016-11-25 00:40:18 -08:00
|
|
|
sources = [
|
2017-11-20 17:48:13 +05:30
|
|
|
"engine/constants.cc",
|
2017-09-14 13:53:02 -07:00
|
|
|
"engine/constants.h",
|
2018-01-04 15:10:22 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_simulcast_encoder_adapter") {
|
2018-10-19 00:51:18 -07:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
defines = []
|
|
|
|
|
libs = []
|
|
|
|
|
sources = [
|
|
|
|
|
"engine/simulcast_encoder_adapter.cc",
|
|
|
|
|
"engine/simulcast_encoder_adapter.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
2019-06-28 15:19:43 +02:00
|
|
|
"../api:fec_controller_api",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2019-01-16 17:10:57 +01:00
|
|
|
"../api/video:video_codec_constants",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_frame",
|
2018-10-19 00:51:18 -07:00
|
|
|
"../api/video:video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2019-10-01 18:50:03 +02:00
|
|
|
"../api/video_codecs:rtc_software_fallback_wrappers",
|
2018-10-19 00:51:18 -07:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../modules/video_coding:video_codec_interface",
|
|
|
|
|
"../modules/video_coding:video_coding_utility",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
"../rtc_base:rtc_base_approved",
|
2019-02-13 10:49:37 +01:00
|
|
|
"../rtc_base/experiments:rate_control_settings",
|
2019-04-09 13:44:04 +02:00
|
|
|
"../rtc_base/synchronization:sequence_checker",
|
2019-04-02 11:33:59 +02:00
|
|
|
"../rtc_base/system:rtc_export",
|
2018-10-19 00:51:18 -07:00
|
|
|
"../system_wrappers",
|
|
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
|
|
|
|
"//third_party/libyuv",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_encoder_simulcast_proxy") {
|
2018-12-06 13:38:24 +01:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
defines = []
|
|
|
|
|
libs = []
|
|
|
|
|
sources = [
|
|
|
|
|
"engine/encoder_simulcast_proxy.cc",
|
|
|
|
|
"engine/encoder_simulcast_proxy.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rtc_simulcast_encoder_adapter",
|
|
|
|
|
"../api/video:video_bitrate_allocation",
|
|
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2018-12-06 13:38:24 +01:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../modules/video_coding:video_codec_interface",
|
2019-04-02 11:33:59 +02:00
|
|
|
"../rtc_base/system:rtc_export",
|
2018-12-06 13:38:24 +01:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_internal_video_codecs") {
|
2018-01-10 15:57:32 +00:00
|
|
|
visibility = [ "*" ]
|
2018-04-27 04:31:53 +02:00
|
|
|
allow_poison = [ "software_video_codecs" ]
|
2018-01-04 15:10:22 +01:00
|
|
|
defines = []
|
|
|
|
|
libs = []
|
2018-01-08 11:05:10 +01:00
|
|
|
deps = [
|
2019-04-10 12:50:24 +02:00
|
|
|
":rtc_constants",
|
2018-12-06 13:38:24 +01:00
|
|
|
":rtc_encoder_simulcast_proxy",
|
2018-01-11 17:07:30 +01:00
|
|
|
":rtc_h264_profile_id",
|
2019-04-10 12:50:24 +02:00
|
|
|
":rtc_media_base",
|
2018-10-19 00:51:18 -07:00
|
|
|
":rtc_simulcast_encoder_adapter",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../:webrtc_common",
|
|
|
|
|
"../api/video:encoded_image",
|
2018-05-22 15:37:23 +02:00
|
|
|
"../api/video:video_bitrate_allocation",
|
2018-11-20 11:06:58 +01:00
|
|
|
"../api/video:video_frame",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2018-06-12 11:15:56 +02:00
|
|
|
"../api/video_codecs:rtc_software_fallback_wrappers",
|
2018-01-04 15:10:22 +01:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../call:video_stream_api",
|
2019-01-16 15:07:56 -05:00
|
|
|
"../modules:module_api",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../modules/video_coding:video_codec_interface",
|
2018-01-04 15:10:22 +01:00
|
|
|
"../modules/video_coding:webrtc_h264",
|
2018-01-25 13:01:09 -08:00
|
|
|
"../modules/video_coding:webrtc_multiplex",
|
2018-01-04 15:10:22 +01:00
|
|
|
"../modules/video_coding:webrtc_vp8",
|
|
|
|
|
"../modules/video_coding:webrtc_vp9",
|
|
|
|
|
"../rtc_base:checks",
|
2018-12-11 15:44:54 +01:00
|
|
|
"../rtc_base:deprecation",
|
2018-01-04 15:10:22 +01:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-10-16 14:13:50 +02:00
|
|
|
"../rtc_base/system:rtc_export",
|
2019-01-16 15:07:56 -05:00
|
|
|
"../test:fake_video_codecs",
|
2018-10-23 10:07:25 +02:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2018-01-04 15:10:22 +01:00
|
|
|
]
|
2019-04-10 12:50:24 +02:00
|
|
|
sources = [
|
|
|
|
|
"engine/fake_video_codec_factory.cc",
|
|
|
|
|
"engine/fake_video_codec_factory.h",
|
|
|
|
|
"engine/internal_decoder_factory.cc",
|
|
|
|
|
"engine/internal_decoder_factory.h",
|
|
|
|
|
"engine/internal_encoder_factory.cc",
|
|
|
|
|
"engine/internal_encoder_factory.h",
|
|
|
|
|
"engine/multiplex_codec_factory.cc",
|
|
|
|
|
"engine/multiplex_codec_factory.h",
|
|
|
|
|
|
|
|
|
|
# TODO(bugs.webrtc.org/7925): stop exporting this header once downstream
|
|
|
|
|
# targets depend on :rtc_encoder_simulcast_proxy directly.
|
|
|
|
|
"engine/encoder_simulcast_proxy.h",
|
|
|
|
|
]
|
2018-01-04 15:10:22 +01:00
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_audio_video") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2019-01-14 14:23:23 +01:00
|
|
|
allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
|
2018-01-04 15:10:22 +01:00
|
|
|
defines = []
|
|
|
|
|
libs = []
|
|
|
|
|
deps = [
|
2019-04-10 12:50:24 +02:00
|
|
|
":rtc_constants",
|
|
|
|
|
":rtc_media_base",
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../api:call_api",
|
|
|
|
|
"../api:libjingle_peerconnection_api",
|
2019-08-26 10:45:28 +02:00
|
|
|
"../api:rtp_parameters",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api:transport_api",
|
2019-05-31 15:51:04 +02:00
|
|
|
"../api/audio:audio_mixer_api",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/audio_codecs:audio_codecs_api",
|
2019-03-27 18:51:45 +01:00
|
|
|
"../api/task_queue",
|
2019-09-17 14:47:38 +02:00
|
|
|
"../api/transport:bitrate_settings",
|
2019-09-12 13:59:36 +02:00
|
|
|
"../api/transport:datagram_transport_interface",
|
|
|
|
|
"../api/transport/media:media_transport_interface",
|
2019-09-02 15:16:49 +02:00
|
|
|
"../api/transport/rtp:rtp_source",
|
2019-10-11 16:19:43 +02:00
|
|
|
"../api/units:data_rate",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:video_bitrate_allocation",
|
2018-11-08 10:02:56 -08:00
|
|
|
"../api/video:video_bitrate_allocator_factory",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video:video_codec_constants",
|
|
|
|
|
"../api/video:video_frame",
|
|
|
|
|
"../api/video:video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video_codecs:rtc_software_fallback_wrappers",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../call:video_stream_api",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../modules/audio_device",
|
|
|
|
|
"../modules/audio_device:audio_device_impl",
|
|
|
|
|
"../modules/audio_mixer:audio_mixer_impl",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../modules/audio_processing:api",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../modules/audio_processing/aec_dump",
|
2019-10-15 10:10:26 +02:00
|
|
|
"../modules/audio_processing/agc:gain_control_interface",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../modules/video_coding",
|
2018-01-16 10:11:40 +01:00
|
|
|
"../modules/video_coding:video_codec_interface",
|
2018-06-21 16:16:38 +02:00
|
|
|
"../modules/video_coding:video_coding_utility",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base",
|
2018-04-03 13:40:05 +02:00
|
|
|
"../rtc_base:audio_format_to_string",
|
2018-01-04 15:10:22 +01:00
|
|
|
"../rtc_base:checks",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base:rtc_task_queue",
|
|
|
|
|
"../rtc_base:stringutils",
|
2019-08-02 16:32:24 +02:00
|
|
|
"../rtc_base/experiments:experimental_screenshare_settings",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base/experiments:field_trial_parser",
|
2019-10-11 16:19:43 +02:00
|
|
|
"../rtc_base/experiments:min_video_bitrate_experiment",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base/experiments:normalize_simulcast_size_experiment",
|
2019-10-30 13:01:46 +01:00
|
|
|
"../rtc_base/experiments:rate_control_settings",
|
2018-10-16 14:13:50 +02:00
|
|
|
"../rtc_base/system:rtc_export",
|
2018-07-23 17:38:12 +02:00
|
|
|
"../rtc_base/third_party/base64",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../system_wrappers",
|
2018-09-28 08:51:10 +02:00
|
|
|
"../system_wrappers:field_trial",
|
|
|
|
|
"../system_wrappers:metrics",
|
2019-04-10 12:50:24 +02:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
|
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2018-01-04 15:10:22 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
|
"engine/adm_helpers.cc",
|
|
|
|
|
"engine/adm_helpers.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"engine/null_webrtc_video_engine.h",
|
2018-01-04 15:10:22 +01:00
|
|
|
"engine/payload_type_mapper.cc",
|
|
|
|
|
"engine/payload_type_mapper.h",
|
2018-01-30 10:32:13 +01:00
|
|
|
"engine/simulcast.cc",
|
|
|
|
|
"engine/simulcast.h",
|
2019-03-18 10:59:40 +01:00
|
|
|
"engine/unhandled_packets_buffer.cc",
|
|
|
|
|
"engine/unhandled_packets_buffer.h",
|
2019-01-11 09:11:00 -08:00
|
|
|
"engine/webrtc_media_engine.cc",
|
|
|
|
|
"engine/webrtc_media_engine.h",
|
|
|
|
|
"engine/webrtc_video_engine.cc",
|
|
|
|
|
"engine/webrtc_video_engine.h",
|
|
|
|
|
"engine/webrtc_voice_engine.cc",
|
|
|
|
|
"engine/webrtc_voice_engine.h",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
]
|
|
|
|
|
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = []
|
2019-04-09 08:24:58 +02:00
|
|
|
if (!build_with_chromium) {
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
public_configs += [ ":rtc_media_defines_config" ]
|
|
|
|
|
deps += [ "../modules/video_capture:video_capture_internal_impl" ]
|
|
|
|
|
}
|
Reland of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #1 id:1 of https://codereview.webrtc.org/2910633002/ )
Reason for revert:
Revert of revert of revert of revert of 'Activating..'. Or "reland of reland of 'Activate..'".
*Now* the internal projects are fixed and the fix is verified.
Original issue's description:
> Revert of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #1 id:1 of https://codereview.webrtc.org/2903153005/ )
>
> Reason for revert:
> Reverting again: internal project issues were apparently not completely fixed.
>
> Original issue's description:
> > Reland of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #1 id:1 of https://codereview.webrtc.org/2904893002/ )
> >
> > Reason for revert:
> > Revert the revert now that internal projects are updated.
> >
> > Original issue's description:
> > > Revert of Activate 'offload debug dump recordings from audio thread to TaskQueue'. (patchset #4 id:160001 of https://codereview.webrtc.org/2896813002/ )
> > >
> > > Reason for revert:
> > > Breaks internal project.
> > >
> > > Original issue's description:
> > > > Activate 'offload debug dump recordings from audio thread to TaskQueue'.
> > > >
> > > > A low priority task queue is added to WebRTCVoiceEngine. The
> > > > start/stop debug calls make file logging happen on the task queue.
> > > >
> > > > In a dependent CL (https://codereview.webrtc.org/2888303003), the task queue is moved to PeerConnectionFactory,
> > > > so that it can be shared for low priority tasks between different
> > > > subcomponents. It will require some changes to MediaEngine,
> > > > CompositeMediaEngine, WebRTCVoiceEngine, and changes in internal
> > > > projects.
> > > >
> > > > A task queue must be created and destroyed from the same thread. With
> > > > this CL that will be the worker thread, which creates and destroys
> > > > WebRTCVoiceEngine. With the dependent CL, it will probably change to
> > > > the signaling thread.
> > > >
> > > > NOTRY=True # tests just passed
> > > >
> > > > BUG=webrtc:7404
> > > >
> > > > Review-Url: https://codereview.webrtc.org/2896813002
> > > > Cr-Commit-Position: refs/heads/master@{#18252}
> > > > Committed: https://chromium.googlesource.com/external/webrtc/+/c61bf947b4ac31f3500858ffcae6fee39d799930
> > >
> > > TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
> > > # Skipping CQ checks because original CL landed less than 1 days ago.
> > > NOPRESUBMIT=true
> > > NOTREECHECKS=true
> > > NOTRY=true
> > > BUG=webrtc:7404
> > >
> > > Review-Url: https://codereview.webrtc.org/2904893002
> > > Cr-Commit-Position: refs/heads/master@{#18255}
> > > Committed: https://chromium.googlesource.com/external/webrtc/+/be68b72cfad0686dcd892bba1368b199a7ee16ca
> >
> > TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
> > # Not skipping CQ checks because original CL landed more than 1 days ago.
> > BUG=webrtc:7404
> >
> > Review-Url: https://codereview.webrtc.org/2903153005
> > Cr-Commit-Position: refs/heads/master@{#18270}
> > Committed: https://chromium.googlesource.com/external/webrtc/+/d2303a2338106feab684860f1c133877b46bdd4f
>
> TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
> # Skipping CQ checks because original CL landed less than 1 days ago.
> NOPRESUBMIT=true
> NOTREECHECKS=true
> NOTRY=true
> BUG=webrtc:7404
>
> Review-Url: https://codereview.webrtc.org/2910633002
> Cr-Commit-Position: refs/heads/master@{#18272}
> Committed: https://chromium.googlesource.com/external/webrtc/+/fe9ecb07ea8254d8a09605f25203a4d045b3ffee
TBR=solenberg@webrtc.org,tommi@webrtc.org,perkj@webrtc.org,danilchap@webrtc.org,tommi@chromium.org
# Not skipping CQ checks because original CL landed more than 1 days ago.
BUG=webrtc:7404
Review-Url: https://codereview.webrtc.org/2904423002
Cr-Commit-Position: refs/heads/master@{#18300}
2017-05-29 02:56:27 -07:00
|
|
|
if (rtc_enable_protobuf) {
|
|
|
|
|
deps += [ "../modules/audio_processing/aec_dump:aec_dump_impl" ]
|
|
|
|
|
} else {
|
|
|
|
|
deps += [ "../modules/audio_processing/aec_dump:null_aec_dump_factory" ]
|
|
|
|
|
}
|
2019-04-10 12:50:24 +02:00
|
|
|
}
|
|
|
|
|
|
2019-04-10 14:10:10 +02:00
|
|
|
# Heavy but optional helper for unittests and webrtc users who prefer to use
|
|
|
|
|
# defaults factories or do not worry about extra dependencies and binary size.
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_media_engine_defaults") {
|
2019-04-10 14:10:10 +02:00
|
|
|
visibility = [ "*" ]
|
|
|
|
|
allow_poison = [
|
|
|
|
|
"audio_codecs",
|
2019-07-10 12:44:43 +02:00
|
|
|
"default_task_queue",
|
2019-04-10 14:10:10 +02:00
|
|
|
"software_video_codecs",
|
|
|
|
|
]
|
|
|
|
|
sources = [
|
|
|
|
|
"engine/webrtc_media_engine_defaults.cc",
|
|
|
|
|
"engine/webrtc_media_engine_defaults.h",
|
|
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":rtc_audio_video",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_encoder_factory",
|
|
|
|
|
"../api/task_queue:default_task_queue_factory",
|
|
|
|
|
"../api/video:builtin_video_bitrate_allocator_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_encoder_factory",
|
|
|
|
|
"../modules/audio_processing:api",
|
|
|
|
|
"../rtc_base:checks",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_data") {
|
2019-08-30 09:02:46 -07:00
|
|
|
defines = [
|
|
|
|
|
# "SCTP_DEBUG" # Uncomment for SCTP debugging.
|
|
|
|
|
]
|
2019-04-10 12:50:24 +02:00
|
|
|
deps = [
|
2016-11-25 00:40:18 -08:00
|
|
|
":rtc_media_base",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
"..:webrtc_common",
|
2016-08-31 07:33:05 -07:00
|
|
|
"../api:call_api",
|
2016-11-28 07:02:13 -08:00
|
|
|
"../api:transport_api",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../p2p:rtc_p2p",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base:rtc_base_approved",
|
|
|
|
|
"../rtc_base/third_party/sigslot",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
"../system_wrappers",
|
2019-01-28 17:27:58 -08:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
2019-10-10 11:12:15 +02:00
|
|
|
"//third_party/abseil-cpp/absl/base:core_headers",
|
2019-08-30 09:02:46 -07:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
]
|
2017-06-15 12:52:32 -07:00
|
|
|
|
|
|
|
|
if (rtc_enable_sctp) {
|
|
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"sctp/sctp_transport.cc",
|
|
|
|
|
"sctp/sctp_transport.h",
|
|
|
|
|
"sctp/sctp_transport_internal.h",
|
2017-06-15 12:52:32 -07:00
|
|
|
]
|
2017-12-01 15:26:41 +01:00
|
|
|
} else {
|
|
|
|
|
# libtool on mac does not like empty targets.
|
|
|
|
|
sources = [
|
2017-12-13 07:40:54 +01:00
|
|
|
"sctp/noop.cc",
|
2017-12-01 15:26:41 +01:00
|
|
|
]
|
2017-06-15 12:52:32 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_enable_sctp && rtc_build_usrsctp) {
|
|
|
|
|
include_dirs = [
|
|
|
|
|
# TODO(jiayl): move this into the public_configs of
|
|
|
|
|
# //third_party/usrsctp/BUILD.gn.
|
|
|
|
|
"//third_party/usrsctp/usrsctplib",
|
|
|
|
|
]
|
|
|
|
|
deps += [ "//third_party/usrsctp" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rtc_source_set("rtc_media") {
|
2018-01-10 15:54:53 +00:00
|
|
|
visibility = [ "*" ]
|
2019-01-14 14:23:23 +01:00
|
|
|
allow_poison = [ "audio_codecs" ] # TODO(bugs.webrtc.org/8396): Remove.
|
2018-01-11 17:07:30 +01:00
|
|
|
deps = [
|
2017-06-15 12:52:32 -07:00
|
|
|
":rtc_audio_video",
|
|
|
|
|
":rtc_data",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-12 22:12:01 -07:00
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("rtc_media_tests_utils") {
|
2016-06-12 22:12:01 -07:00
|
|
|
testonly = true
|
|
|
|
|
|
2018-05-14 09:48:06 +02:00
|
|
|
defines = []
|
2017-03-06 06:04:55 -08:00
|
|
|
deps = [
|
2018-01-11 17:07:30 +01:00
|
|
|
":rtc_audio_video",
|
2019-04-10 12:50:24 +02:00
|
|
|
":rtc_internal_video_codecs",
|
|
|
|
|
":rtc_media",
|
|
|
|
|
":rtc_media_base",
|
2018-10-19 00:51:18 -07:00
|
|
|
":rtc_simulcast_encoder_adapter",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api:call_api",
|
2019-06-28 15:19:43 +02:00
|
|
|
"../api:fec_controller_api",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../api/video:encoded_image",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video:video_bitrate_allocation",
|
|
|
|
|
"../api/video:video_frame",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../call:mock_rtp_interfaces",
|
2017-08-22 05:43:23 -07:00
|
|
|
"../call:video_stream_api",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../common_video",
|
|
|
|
|
"../modules/audio_processing",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../modules/audio_processing:api",
|
2017-12-06 07:51:33 +01:00
|
|
|
"../modules/rtp_rtcp:rtp_rtcp_format",
|
2018-01-08 11:05:10 +01:00
|
|
|
"../modules/video_coding:video_codec_interface",
|
2017-09-18 03:08:08 -07:00
|
|
|
"../modules/video_coding:video_coding_utility",
|
2017-03-06 06:04:55 -08:00
|
|
|
"../p2p:rtc_p2p",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2018-11-23 13:15:08 +01:00
|
|
|
"../rtc_base:gunit_helpers",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-03-19 11:12:48 +01:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../rtc_base:stringutils",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base/third_party/sigslot",
|
|
|
|
|
"../test:test_support",
|
|
|
|
|
"//testing/gtest",
|
2019-01-28 17:27:58 -08:00
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
2018-10-30 22:23:02 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2017-03-06 06:04:55 -08:00
|
|
|
]
|
2016-06-12 22:12:01 -07:00
|
|
|
sources = [
|
2019-01-11 09:11:00 -08:00
|
|
|
"base/fake_frame_source.cc",
|
|
|
|
|
"base/fake_frame_source.h",
|
|
|
|
|
"base/fake_media_engine.cc",
|
|
|
|
|
"base/fake_media_engine.h",
|
|
|
|
|
"base/fake_network_interface.h",
|
|
|
|
|
"base/fake_rtp.cc",
|
|
|
|
|
"base/fake_rtp.h",
|
|
|
|
|
"base/fake_video_renderer.cc",
|
|
|
|
|
"base/fake_video_renderer.h",
|
|
|
|
|
"base/test_utils.cc",
|
|
|
|
|
"base/test_utils.h",
|
|
|
|
|
"engine/fake_webrtc_call.cc",
|
|
|
|
|
"engine/fake_webrtc_call.h",
|
|
|
|
|
"engine/fake_webrtc_video_engine.cc",
|
|
|
|
|
"engine/fake_webrtc_video_engine.h",
|
2016-06-12 22:12:01 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-14 05:10:01 -07:00
|
|
|
rtc_media_unittests_resources = [
|
2017-09-15 06:47:31 +02:00
|
|
|
"../resources/media/captured-320x240-2s-48.frames",
|
|
|
|
|
"../resources/media/faces.1280x720_P420.yuv",
|
|
|
|
|
"../resources/media/faces_I420.jpg",
|
|
|
|
|
"../resources/media/faces_I422.jpg",
|
|
|
|
|
"../resources/media/faces_I444.jpg",
|
|
|
|
|
"../resources/media/faces_I411.jpg",
|
|
|
|
|
"../resources/media/faces_I400.jpg",
|
2016-09-14 05:10:01 -07:00
|
|
|
]
|
2016-08-30 02:53:49 -07:00
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
bundle_data("rtc_media_unittests_bundle_data") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = rtc_media_unittests_resources
|
|
|
|
|
outputs = [
|
|
|
|
|
"{{bundle_resources_dir}}/{{source_file_part}}",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("rtc_media_unittests") {
|
2016-06-12 22:12:01 -07:00
|
|
|
testonly = true
|
|
|
|
|
|
2016-08-26 02:59:47 -07:00
|
|
|
defines = []
|
2017-03-06 06:04:55 -08:00
|
|
|
deps = [
|
2018-01-11 17:07:30 +01:00
|
|
|
":rtc_audio_video",
|
2018-01-04 15:10:22 +01:00
|
|
|
":rtc_constants",
|
2018-01-11 17:07:30 +01:00
|
|
|
":rtc_data",
|
2019-04-10 12:50:24 +02:00
|
|
|
":rtc_encoder_simulcast_proxy",
|
|
|
|
|
":rtc_internal_video_codecs",
|
|
|
|
|
":rtc_media",
|
|
|
|
|
":rtc_media_base",
|
2019-04-10 14:10:10 +02:00
|
|
|
":rtc_media_engine_defaults",
|
2019-04-10 12:50:24 +02:00
|
|
|
":rtc_media_tests_utils",
|
|
|
|
|
":rtc_simulcast_encoder_adapter",
|
|
|
|
|
":rtc_vp9_profile",
|
2018-11-28 16:47:49 +01:00
|
|
|
"../:webrtc_common",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api:create_simulcast_test_fixture_api",
|
2019-03-18 10:25:02 -07:00
|
|
|
"../api:fake_media_transport",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api:libjingle_peerconnection_api",
|
|
|
|
|
"../api:mock_video_bitrate_allocator",
|
|
|
|
|
"../api:mock_video_bitrate_allocator_factory",
|
|
|
|
|
"../api:mock_video_codec_factory",
|
2019-04-25 16:01:03 +02:00
|
|
|
"../api:mock_video_encoder",
|
2019-08-26 10:45:28 +02:00
|
|
|
"../api:rtp_parameters",
|
2019-01-25 20:26:48 +01:00
|
|
|
"../api:scoped_refptr",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api:simulcast_test_fixture_api",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_decoder_factory",
|
|
|
|
|
"../api/audio_codecs:builtin_audio_encoder_factory",
|
2019-08-07 12:24:53 +02:00
|
|
|
"../api/rtc_event_log",
|
2019-03-27 18:51:45 +01:00
|
|
|
"../api/task_queue",
|
|
|
|
|
"../api/task_queue:default_task_queue_factory",
|
2018-10-26 15:57:48 +02:00
|
|
|
"../api/test/video:function_video_factory",
|
2019-09-12 13:59:36 +02:00
|
|
|
"../api/transport/media:media_transport_interface",
|
2018-09-26 16:04:32 +02:00
|
|
|
"../api/units:time_delta",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video:builtin_video_bitrate_allocator_factory",
|
|
|
|
|
"../api/video:video_bitrate_allocation",
|
|
|
|
|
"../api/video:video_frame",
|
2018-05-11 11:15:30 +02:00
|
|
|
"../api/video:video_frame_i420",
|
2019-06-10 12:59:38 +02:00
|
|
|
"../api/video:video_rtp_headers",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../api/video_codecs:builtin_video_decoder_factory",
|
|
|
|
|
"../api/video_codecs:builtin_video_encoder_factory",
|
|
|
|
|
"../api/video_codecs:video_codecs_api",
|
|
|
|
|
"../audio",
|
|
|
|
|
"../call:call_interfaces",
|
|
|
|
|
"../common_video",
|
|
|
|
|
"../modules/audio_device:mock_audio_device",
|
|
|
|
|
"../modules/audio_processing",
|
2018-11-07 14:29:54 +00:00
|
|
|
"../modules/audio_processing:api",
|
2017-12-19 16:44:45 +01:00
|
|
|
"../modules/audio_processing:mocks",
|
2018-07-03 10:40:40 +02:00
|
|
|
"../modules/rtp_rtcp",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../modules/video_coding:simulcast_test_fixture_impl",
|
2018-01-08 11:05:10 +01:00
|
|
|
"../modules/video_coding:video_codec_interface",
|
2018-06-21 16:16:38 +02:00
|
|
|
"../modules/video_coding:webrtc_vp8",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../p2p:p2p_test_utils",
|
|
|
|
|
"../rtc_base",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../rtc_base:checks",
|
2018-11-23 13:15:08 +01:00
|
|
|
"../rtc_base:gunit_helpers",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../rtc_base:rtc_base_approved",
|
2018-11-23 13:15:08 +01:00
|
|
|
"../rtc_base:rtc_base_tests_utils",
|
2018-03-19 11:12:48 +01:00
|
|
|
"../rtc_base:rtc_task_queue",
|
2017-12-15 14:40:10 +01:00
|
|
|
"../rtc_base:stringutils",
|
2019-10-11 16:19:43 +02:00
|
|
|
"../rtc_base/experiments:min_video_bitrate_experiment",
|
2019-03-21 13:35:10 +01:00
|
|
|
"../rtc_base/third_party/sigslot",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../test:audio_codec_mocks",
|
2017-03-06 06:04:55 -08:00
|
|
|
"../test:field_trial",
|
2019-08-29 16:39:05 +02:00
|
|
|
"../test:rtp_test_utils",
|
2019-05-21 13:01:58 +02:00
|
|
|
"../test:test_main",
|
2019-04-10 12:50:24 +02:00
|
|
|
"../test:test_support",
|
|
|
|
|
"../test:video_test_common",
|
|
|
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
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-10-30 22:23:02 +01:00
|
|
|
"//third_party/abseil-cpp/absl/strings",
|
2019-05-21 13:01:58 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-03-06 06:04:55 -08:00
|
|
|
]
|
2016-06-12 22:12:01 -07:00
|
|
|
sources = [
|
|
|
|
|
"base/codec_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"base/rtp_data_engine_unittest.cc",
|
|
|
|
|
"base/rtp_utils_unittest.cc",
|
|
|
|
|
"base/stream_params_unittest.cc",
|
|
|
|
|
"base/turn_utils_unittest.cc",
|
|
|
|
|
"base/video_adapter_unittest.cc",
|
|
|
|
|
"base/video_broadcaster_unittest.cc",
|
|
|
|
|
"base/video_common_unittest.cc",
|
2018-12-06 13:38:24 +01:00
|
|
|
"engine/encoder_simulcast_proxy_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"engine/internal_decoder_factory_unittest.cc",
|
|
|
|
|
"engine/multiplex_codec_factory_unittest.cc",
|
|
|
|
|
"engine/null_webrtc_video_engine_unittest.cc",
|
2016-08-17 02:45:41 -07:00
|
|
|
"engine/payload_type_mapper_unittest.cc",
|
2017-07-10 03:26:36 -07:00
|
|
|
"engine/simulcast_encoder_adapter_unittest.cc",
|
2018-06-27 10:44:56 +02:00
|
|
|
"engine/simulcast_unittest.cc",
|
2019-03-18 10:59:40 +01:00
|
|
|
"engine/unhandled_packets_buffer_unittest.cc",
|
2019-01-11 09:11:00 -08:00
|
|
|
"engine/webrtc_media_engine_unittest.cc",
|
|
|
|
|
"engine/webrtc_video_engine_unittest.cc",
|
2016-06-12 22:12:01 -07:00
|
|
|
]
|
|
|
|
|
|
2017-06-22 01:47:20 -07:00
|
|
|
# TODO(kthelgason): Reenable this test on iOS.
|
|
|
|
|
# See bugs.webrtc.org/5569
|
|
|
|
|
if (!is_ios) {
|
2019-01-11 09:11:00 -08:00
|
|
|
sources += [ "engine/webrtc_voice_engine_unittest.cc" ]
|
2017-06-22 01:47:20 -07:00
|
|
|
}
|
|
|
|
|
|
2016-12-22 10:53:38 -08:00
|
|
|
if (rtc_enable_sctp) {
|
2019-10-25 12:48:11 +03:00
|
|
|
sources += [
|
|
|
|
|
"sctp/sctp_transport_reliability_unittest.cc",
|
|
|
|
|
"sctp/sctp_transport_unittest.cc",
|
|
|
|
|
]
|
2016-12-22 10:53:38 -08:00
|
|
|
}
|
|
|
|
|
|
2017-02-16 05:37:06 -08:00
|
|
|
if (rtc_opus_support_120ms_ptime) {
|
|
|
|
|
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=1" ]
|
|
|
|
|
} else {
|
|
|
|
|
defines += [ "WEBRTC_OPUS_SUPPORT_120MS_PTIME=0" ]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-14 05:10:01 -07:00
|
|
|
data = rtc_media_unittests_resources
|
|
|
|
|
|
2016-06-12 22:12:01 -07:00
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
2016-08-24 07:48:42 -07:00
|
|
|
shard_timeout = 900
|
|
|
|
|
}
|
2016-08-30 02:53:49 -07:00
|
|
|
|
|
|
|
|
if (is_ios) {
|
|
|
|
|
deps += [ ":rtc_media_unittests_bundle_data" ]
|
2016-06-12 22:12:01 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|