Files
sousa-gecko/third_party/libwebrtc/moz-patch-stack/s0095.patch
T
Nico Grunbaum 2e3e260bd1 Bug 2047265 - Vendor libwebrtc from b2887131ee
Upstream commit: https://webrtc.googlesource.com/src/+/b2887131ee7872b53724e7b9e7d67aab7b18d9b5
    Adds rust version of webrtc::RateTracker

    This includes some updates to how units FFI is exposed and removes the
    previous bridge tests as now we have real tests for cxx bridges.

    Bug: webrtc:416446214
    Change-Id: I027e68b4521e14d5a1687dd0f0d03ed16a6a6964
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/470180
    Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
    Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
    Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
    Reviewed-by: Victor Boivie <boivie@webrtc.org>
    Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#47663}
2026-06-19 13:47:49 +00:00

101 lines
3.2 KiB
Diff

From: Michael Froman <mfroman@mozilla.com>
Date: Thu, 10 Oct 2024 13:42:00 +0000
Subject: Bug 1921707 - webrtc.gni - filter out '//third_party/abseil-cpp/'
deps r=ng,webrtc-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224079
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/45b99d1ba95b46896506de1c7dd92f19e4dc9207
---
webrtc.gni | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+)
diff --git a/webrtc.gni b/webrtc.gni
index d5daa54c3f..f06d224db7 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -696,6 +696,36 @@ template("rtc_source_set") {
deps += [ "//third_party/abseil-cpp:absl" ]
}
}
+
+ # Rather than widespread changes to most, if not all, BUILD.gn files
+ # we'll do some filtering on dependencies here.
+ if (build_with_mozilla && defined(deps)) {
+ # Now that abseil-cpp is moved to Mozilla's third_party directory
+ # we remove all the abseil-cpp dependency listings so moz.build
+ # generation succeed.
+ filtered_deps = []
+ foreach (dep, deps) {
+ newdep = string_replace(dep, "//third_party/abseil-cpp/", "")
+ if (newdep == dep) {
+ filtered_deps += [ dep ]
+ }
+ }
+ deps = []
+ deps = filtered_deps
+
+ # We don't build any of the test code, but many of the test
+ # targets list gtest/gmock as a dependency. We can simply
+ # filter them out here.
+ filtered_deps = []
+ foreach (dep, deps) {
+ newdep = string_replace(dep, "//testing/g", "")
+ if (newdep == dep) {
+ filtered_deps += [ dep ]
+ }
+ }
+ deps = []
+ deps = filtered_deps
+ }
}
}
@@ -931,6 +961,47 @@ template("rtc_library") {
deps += [ "//third_party/abseil-cpp:absl" ]
}
}
+
+ # Rather than widespread changes to most, if not all, BUILD.gn files
+ # we'll do some filtering on dependencies here.
+ if (build_with_mozilla && defined(deps)) {
+ # Now that abseil-cpp is moved to Mozilla's third_party directory
+ # we remove all the abseil-cpp dependency listings so moz.build
+ # generation succeed.
+ filtered_deps = []
+ foreach (dep, deps) {
+ newdep = string_replace(dep, "//third_party/abseil-cpp/", "")
+ if (newdep == dep) {
+ filtered_deps += [ dep ]
+ }
+ }
+ deps = []
+ deps = filtered_deps
+
+ # We don't build any of the test code, but many of the test
+ # targets list gtest/gmock as a dependency. We can simply
+ # filter them out here.
+ filtered_deps = []
+ foreach (dep, deps) {
+ newdep = string_replace(dep, "//testing/g", "")
+ if (newdep == dep) {
+ filtered_deps += [ dep ]
+ }
+ }
+ deps = []
+ deps = filtered_deps
+
+ # Moving the google build directory requires looking for libwebrtc's
+ # third_party dependencies under libwebrtc/third_party instead of
+ # simply third_party.
+ modified_deps = []
+ foreach (dep, deps) {
+ newdep = string_replace(dep, "//third_party/", "//libwebrtc/third_party/")
+ modified_deps += [ newdep ]
+ }
+ deps = []
+ deps = modified_deps
+ }
}
}