Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit b2e2448

Browse files
committed
Update webrtc stack to M88
1 parent 56f83d9 commit b2e2448

34 files changed

+803
-511
lines changed

DEPS

Lines changed: 682 additions & 206 deletions
Large diffs are not rendered by default.

build_overrides/build.gni

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,14 @@ declare_args() {
7777

7878
# Some non-Chromium builds don't support building java targets.
7979
enable_java_templates = true
80+
81+
# If true, it assumes that //third_party/abseil-cpp is an available
82+
# dependency for googletest.
83+
gtest_enable_absl_printers = true
84+
85+
# WebRTC doesn't depend on //base from production code but only for testing
86+
# purposes. In any case, it doesn't depend on //third_party/perfetto which
87+
# is used for base tracing, so this feature is disabled.
88+
enable_base_tracing = false
89+
use_perfetto_client_library = false
8090
}

scripts/prepare_dev.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
TESTING_PATH = os.path.join(HOME_PATH, 'testing')
1818
THIRD_PARTY_PATH = os.path.join(HOME_PATH, 'third_party')
1919
LIBSRTP_PATH = os.path.join(THIRD_PARTY_PATH, 'libsrtp')
20-
LIBJPEG_TURBO_PATH = os.path.join(THIRD_PARTY_PATH, 'libjpeg_turbo')
2120
FFMPEG_PATH = os.path.join(THIRD_PARTY_PATH, 'ffmpeg')
2221
WEBRTC_OVERRIDES_PATH = os.path.join(THIRD_PARTY_PATH, 'webrtc_overrides')
2322
BUILD_PATH = os.path.join(HOME_PATH, 'build')
@@ -38,8 +37,6 @@
3837
('0007-Fix-examples-path-error.patch', BUILD_PATH),
3938
('0008-Disable-loop-range-analysis-when-build-with-Xcode-cl.patch', BUILD_PATH),
4039
('0009-Export-WebRTC-symbols-on-iOS.patch', BUILD_PATH),
41-
('0010-mac-make-find_sdk.py-work-when-the-sdk-goes-to-11.patch', BUILD_PATH),
42-
('0011-libjpeg_turbo-fix-for-CVE-2018-20330-and-19664.patch', LIBJPEG_TURBO_PATH),
4340
('0013-Remove-unused-gni-for-av1-build.patch', THIRD_PARTY_PATH),
4441
('0014-Fix-missing-ffmpeg-configure-item-for-msvc-build.patch', FFMPEG_PATH)
4542
]
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
From 4928b9815f8063c4dd832d3a3a61355d60c5a0cc Mon Sep 17 00:00:00 2001
1+
From b17939a2d0c21ae5cfd6956ed98b47789d4dee8f Mon Sep 17 00:00:00 2001
22
From: Qiu Jainlin <[email protected]>
3-
Date: Thu, 7 May 2020 09:30:40 +0800
3+
Date: Mon, 4 Jan 2021 15:49:43 +0800
44
Subject: [PATCH] Use OpenSSL for usrsctp
55

66
---
77
usrsctp/BUILD.gn | 10 +++++++++-
88
1 file changed, 9 insertions(+), 1 deletion(-)
99

1010
diff --git a/usrsctp/BUILD.gn b/usrsctp/BUILD.gn
11-
index e8a5b1f9d41..684603c4ce3 100644
11+
index 0c5947f1785..7aff0d50687 100644
1212
--- a/usrsctp/BUILD.gn
1313
+++ b/usrsctp/BUILD.gn
1414
@@ -3,6 +3,7 @@
1515
# found in the LICENSE file.
1616

1717
import("//build/toolchain/toolchain.gni")
1818
+import("//build_overrides/ssl/ssl.gni")
19+
import("//testing/libfuzzer/fuzzer_test.gni")
1920

20-
config("usrsctp_config") {
21-
include_dirs = [
22-
@@ -145,5 +146,12 @@ static_library("usrsctp") {
23-
if (is_fuchsia) {
24-
defines += [ "__Userspace_os_Fuchsia" ]
21+
config("usrsctp_public_config") {
22+
@@ -161,7 +162,14 @@ static_library("usrsctp") {
23+
if (use_fuzzing_engine) {
24+
defines += [ "INVARIANTS" ]
2525
}
2626
- deps = [ "//third_party/boringssl" ]
2727
+
@@ -33,6 +33,8 @@ index e8a5b1f9d41..684603c4ce3 100644
3333
+ ]
3434
+ }
3535
}
36+
37+
fuzzer_test("usrsctp_fuzzer_listen") {
3638
--
37-
2.24.1.windows.2
39+
2.28.0.windows.1
3840

talk/owt/patches/0004-Remove-webrtc_overrides.patch

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
From a97d58537750064c1d4929a2c141e52fe0206ff9 Mon Sep 17 00:00:00 2001
1+
From 690f2315a218e771f3de98297bca456ca48b5f89 Mon Sep 17 00:00:00 2001
22
From: Qiu Jainlin <[email protected]>
3-
Date: Thu, 7 May 2020 09:57:47 +0800
3+
Date: Mon, 4 Jan 2021 12:44:41 +0800
44
Subject: [PATCH] Remove webrtc_overrides
55

66
---
7-
webrtc_overrides/BUILD.gn | 168 -------------
7+
webrtc_overrides/BUILD.gn | 179 --------------
88
webrtc_overrides/DEPS | 7 -
99
webrtc_overrides/OWNERS | 6 -
1010
webrtc_overrides/README.chromium | 20 --
1111
webrtc_overrides/field_trial.cc | 15 --
12-
webrtc_overrides/init_webrtc.cc | 45 ----
12+
webrtc_overrides/init_webrtc.cc | 44 ----
1313
webrtc_overrides/init_webrtc.h | 15 --
1414
webrtc_overrides/metrics.cc | 57 -----
1515
.../rtc_base/diagnostic_logging.h | 126 ----------
1616
webrtc_overrides/rtc_base/event.cc | 40 ---
1717
webrtc_overrides/rtc_base/event.h | 48 ----
1818
webrtc_overrides/rtc_base/gtest_prod_util.h | 10 -
19-
webrtc_overrides/rtc_base/logging.cc | 230 ------------------
19+
webrtc_overrides/rtc_base/logging.cc | 231 ------------------
2020
webrtc_overrides/rtc_base/logging.h | 123 ----------
21-
webrtc_overrides/task_queue_factory.cc | 144 -----------
21+
webrtc_overrides/task_queue_factory.cc | 143 -----------
2222
webrtc_overrides/task_queue_factory.h | 24 --
23-
16 files changed, 1078 deletions(-)
23+
16 files changed, 1088 deletions(-)
2424
delete mode 100644 webrtc_overrides/BUILD.gn
2525
delete mode 100644 webrtc_overrides/DEPS
2626
delete mode 100644 webrtc_overrides/OWNERS
@@ -40,10 +40,10 @@ Subject: [PATCH] Remove webrtc_overrides
4040

4141
diff --git a/webrtc_overrides/BUILD.gn b/webrtc_overrides/BUILD.gn
4242
deleted file mode 100644
43-
index 4f44c48d26b..00000000000
43+
index f62ec73be77..00000000000
4444
--- a/webrtc_overrides/BUILD.gn
4545
+++ /dev/null
46-
@@ -1,168 +0,0 @@
46+
@@ -1,179 +0,0 @@
4747
-# Copyright 2017 The Chromium Authors. All rights reserved.
4848
-# Use of this source code is governed by a BSD-style license that can be
4949
-# found in the LICENSE file.
@@ -58,15 +58,18 @@ index 4f44c48d26b..00000000000
5858
- ":metrics",
5959
- ":task_queue_factory",
6060
- "//third_party/webrtc/api:callfactory_api",
61+
- "//third_party/webrtc/api:frame_transformer_interface",
6162
- "//third_party/webrtc/api:ice_transport_factory",
6263
- "//third_party/webrtc/api:libjingle_logging_api",
6364
- "//third_party/webrtc/api:libjingle_peerconnection_api",
6465
- "//third_party/webrtc/api:media_stream_interface",
6566
- "//third_party/webrtc/api:packet_socket_factory",
6667
- "//third_party/webrtc/api:rtc_error",
6768
- "//third_party/webrtc/api:rtc_stats_api",
69+
- "//third_party/webrtc/api:rtp_packet_info",
6870
- "//third_party/webrtc/api:rtp_parameters",
6971
- "//third_party/webrtc/api:scoped_refptr",
72+
- "//third_party/webrtc/api/adaptation:resource_adaptation_api",
7073
- "//third_party/webrtc/api/audio:aec3_config",
7174
- "//third_party/webrtc/api/audio:aec3_config_json",
7275
- "//third_party/webrtc/api/audio:aec3_factory",
@@ -84,16 +87,19 @@ index 4f44c48d26b..00000000000
8487
- "//third_party/webrtc/api/audio_codecs/opus:audio_encoder_multiopus",
8588
- "//third_party/webrtc/api/audio_codecs/opus:audio_encoder_opus",
8689
- "//third_party/webrtc/api/rtc_event_log:rtc_event_log_factory",
90+
- "//third_party/webrtc/api/transport:enums",
91+
- "//third_party/webrtc/api/video:recordable_encoded_frame",
8792
- "//third_party/webrtc/api/video:video_bitrate_allocation",
8893
- "//third_party/webrtc/api/video:video_frame",
89-
- "//third_party/webrtc/api/video:video_frame_i420",
94+
- "//third_party/webrtc/api/video:video_frame_metadata",
9095
- "//third_party/webrtc/api/video:video_rtp_headers",
9196
- "//third_party/webrtc/api/video_codecs:builtin_video_decoder_factory",
9297
- "//third_party/webrtc/api/video_codecs:rtc_software_fallback_wrappers",
9398
- "//third_party/webrtc/api/video_codecs:video_codecs_api",
9499
- "//third_party/webrtc/common_video",
95100
- "//third_party/webrtc/common_video:common_video",
96101
- "//third_party/webrtc/media:rtc_audio_video",
102+
- "//third_party/webrtc/media:rtc_h264_profile_id",
97103
- "//third_party/webrtc/media:rtc_internal_video_codecs",
98104
- "//third_party/webrtc/media:rtc_media",
99105
- "//third_party/webrtc/media:rtc_media_base",
@@ -135,9 +141,14 @@ index 4f44c48d26b..00000000000
135141
- ]
136142
- if (is_chromecast) {
137143
- public_deps += [
144+
- "//third_party/webrtc/api:network_state_predictor_api",
138145
- "//third_party/webrtc/api/audio:audio_frame_api",
139146
- "//third_party/webrtc/api/task_queue",
147+
- "//third_party/webrtc/api/transport:goog_cc",
148+
- "//third_party/webrtc/api/transport:network_control",
149+
- "//third_party/webrtc/api/units:time_delta",
140150
- "//third_party/webrtc/api/video:encoded_image",
151+
- "//third_party/webrtc/call:call_interfaces",
141152
- "//third_party/webrtc/media:rtc_h264_profile_id",
142153
- "//third_party/webrtc/media:rtc_media_engine_defaults",
143154
- "//third_party/webrtc/modules/audio_device:audio_device_default",
@@ -286,10 +297,10 @@ index 878e6cc576b..00000000000
286297
-} // namespace webrtc
287298
diff --git a/webrtc_overrides/init_webrtc.cc b/webrtc_overrides/init_webrtc.cc
288299
deleted file mode 100644
289-
index db086b6f758..00000000000
300+
index effc5796caa..00000000000
290301
--- a/webrtc_overrides/init_webrtc.cc
291302
+++ /dev/null
292-
@@ -1,45 +0,0 @@
303+
@@ -1,44 +0,0 @@
293304
-// Copyright 2013 The Chromium Authors. All rights reserved.
294305
-// Use of this source code is governed by a BSD-style license that can be
295306
-// found in the LICENSE file.
@@ -299,7 +310,6 @@ index db086b6f758..00000000000
299310
-#include "base/command_line.h"
300311
-#include "base/files/file_path.h"
301312
-#include "base/files/file_util.h"
302-
-#include "base/logging.h"
303313
-#include "base/native_library.h"
304314
-#include "base/path_service.h"
305315
-#include "base/trace_event/trace_event.h"
@@ -669,10 +679,10 @@ index d57937aa63b..00000000000
669679
-#endif // THIRD_PARTY_WEBRTC_OVERRIDES_RTC_BASE_GTEST_PROD_UTIL_H_
670680
diff --git a/webrtc_overrides/rtc_base/logging.cc b/webrtc_overrides/rtc_base/logging.cc
671681
deleted file mode 100644
672-
index d10fd254db1..00000000000
682+
index 87ae618c496..00000000000
673683
--- a/webrtc_overrides/rtc_base/logging.cc
674684
+++ /dev/null
675-
@@ -1,230 +0,0 @@
685+
@@ -1,231 +0,0 @@
676686
-// Copyright 2015 The Chromium Authors. All rights reserved.
677687
-// Use of this source code is governed by a BSD-style license that can be
678688
-// found in the LICENSE file.
@@ -691,6 +701,7 @@ index d10fd254db1..00000000000
691701
-
692702
-#include "base/atomicops.h"
693703
-#include "base/logging.h"
704+
-#include "base/notreached.h"
694705
-#include "base/strings/string_util.h"
695706
-#include "base/threading/platform_thread.h"
696707
-#include "third_party/webrtc/rtc_base/string_utils.h"
@@ -1034,10 +1045,10 @@ index 5513bc6ef58..00000000000
10341045
-#endif // THIRD_PARTY_WEBRTC_OVERRIDES_WEBRTC_RTC_BASE_LOGGING_H_
10351046
diff --git a/webrtc_overrides/task_queue_factory.cc b/webrtc_overrides/task_queue_factory.cc
10361047
deleted file mode 100644
1037-
index e81ef238494..00000000000
1048+
index 2898c95ef09..00000000000
10381049
--- a/webrtc_overrides/task_queue_factory.cc
10391050
+++ /dev/null
1040-
@@ -1,144 +0,0 @@
1051+
@@ -1,143 +0,0 @@
10411052
-// Copyright 2019 The Chromium Authors. All rights reserved.
10421053
-// Use of this source code is governed by a BSD-style license that can be
10431054
-// found in the LICENSE file.
@@ -1146,7 +1157,6 @@ index e81ef238494..00000000000
11461157
-#else
11471158
- return {base::TaskPriority::HIGHEST};
11481159
-#endif
1149-
- break;
11501160
- case webrtc::TaskQueueFactory::Priority::LOW:
11511161
- return {base::MayBlock(), base::TaskPriority::BEST_EFFORT};
11521162
- case webrtc::TaskQueueFactory::Priority::NORMAL:
@@ -1213,5 +1223,5 @@ index 957cf75e4e9..00000000000
12131223
-
12141224
-#endif // THIRD_PARTY_WEBRTC_OVERRIDES_TASK_QUEUE_FACTORY_H_
12151225
--
1216-
2.24.1.windows.2
1226+
2.28.0.windows.1
12171227

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,39 @@
1-
From 747fecd17c90c578ce0d1898588fb81de9c1d088 Mon Sep 17 00:00:00 2001
2-
From: JinChengShi <[email protected]>
3-
Date: Wed, 27 Nov 2019 09:25:07 +0800
4-
Subject: [PATCH] [PATCH] Fixed compile issue and disable thin archive for
5-
Linux
1+
From 1501f225b3ca51d0b1291ad916def329cecfd2ae Mon Sep 17 00:00:00 2001
2+
From: Qiu Jainlin <[email protected]>
3+
Date: Mon, 4 Jan 2021 13:07:56 +0800
4+
Subject: [PATCH] Fixed compile issue and disable thin archieve
65

76
---
87
config/c++/c++.gni | 2 +-
98
config/compiler/BUILD.gn | 2 +-
109
2 files changed, 2 insertions(+), 2 deletions(-)
1110

1211
diff --git a/config/c++/c++.gni b/config/c++/c++.gni
13-
index 834a943de..c88cb492a 100644
12+
index 77f0e4516..cd7288683 100644
1413
--- a/config/c++/c++.gni
1514
+++ b/config/c++/c++.gni
1615
@@ -13,7 +13,7 @@ declare_args() {
1716
use_custom_libcxx =
1817
is_fuchsia || is_android || is_mac || (is_ios && !use_xcode_clang) ||
1918
(is_win && is_clang) ||
20-
- (is_linux &&
21-
+ (is_linux && is_clang &&
19+
- ((is_linux || is_chromeos) &&
20+
+ ((is_linux && is_clang) &&
2221
(!is_chromeos || default_toolchain != "//build/toolchain/cros:target"))
2322

2423
# Use libc++ instead of stdlibc++ when using the host_cpu toolchain, even if
2524
diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn
26-
index 93ad68a61..7d31ccbea 100644
25+
index 9bc7dda39..1b002fe08 100644
2726
--- a/config/compiler/BUILD.gn
2827
+++ b/config/compiler/BUILD.gn
29-
@@ -1738,7 +1738,7 @@ config("thin_archive") {
28+
@@ -1764,7 +1764,7 @@ config("thin_archive") {
3029
# Mac and iOS use the mac-specific "libtool" command, not ar, which doesn't
3130
# have a "thin archive" mode (it does accept -T, but it means truncating
3231
# archive names to 16 characters, which is not what we want).
33-
- if ((is_posix && !is_nacl && !is_mac && !is_ios) || is_fuchsia) {
34-
+ if ((is_posix && !is_nacl && !is_mac && !is_ios && !is_linux) || is_fuchsia) {
32+
- if ((is_posix && !is_nacl && !is_apple) || is_fuchsia) {
33+
+ if ((is_posix && !is_nacl && !is_apple && !is_linux) || is_fuchsia) {
3534
arflags = [ "-T" ]
3635
} else if (is_win && use_lld) {
3736
arflags = [ "/llvmlibthin" ]
3837
--
39-
2.17.1
38+
2.28.0.windows.1
4039

talk/owt/patches/0010-mac-make-find_sdk.py-work-when-the-sdk-goes-to-11.patch

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)