File: 0001.patch

package info (click to toggle)
firefox 146.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,653,260 kB
  • sloc: cpp: 7,587,892; javascript: 6,509,455; ansic: 3,755,295; python: 1,410,813; xml: 629,201; asm: 438,677; java: 186,096; sh: 62,697; makefile: 18,086; objc: 13,087; perl: 12,811; yacc: 4,583; cs: 3,846; pascal: 3,448; lex: 1,720; ruby: 1,003; php: 436; lisp: 258; awk: 247; sql: 66; sed: 54; csh: 10; exp: 6
file content (93 lines) | stat: -rw-r--r-- 3,136 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
From: Michael Froman <mfroman@mozilla.com>
Date: Tue, 7 Jun 2022 22:34:00 -0500
Subject: Bug 1772400 - pt2 - Rollup of various patches to
 third_party/libwebrtc/third_party r?ng!

Several of these patches have been unindented to match the original content
of the files to make merging easier in the fast-foward work.

127ace4d8887 - Bug 1654112 - Tweak upstream gn files for Firefox build.
65562b1a98a3 - Bug 1654112 - minimize abseil-cpp build and usage in libwebrtc.
58f47eacaf10 - Bug 1654112 - deconflate the target and host architectures in libwebrtc build files

Differential Revision: https://phabricator.services.mozilla.com/D148809
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/29bb1b6d7fc465aad44e15837e7b731bc40bc98a
---
 abseil-cpp/BUILD.gn | 24 +++++++++++++++++++++---
 abseil-cpp/absl.gni |  1 +
 2 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/abseil-cpp/BUILD.gn b/abseil-cpp/BUILD.gn
index 8b8bcfe69fe..97b460e4fd4 100644
--- a/abseil-cpp/BUILD.gn
+++ b/abseil-cpp/BUILD.gn
@@ -26,7 +26,7 @@ component("absl") {
     public_configs = [ ":absl_component_build" ]
 
     if (is_win && is_clang) {
-      if (current_cpu == "x64") {
+      if (target_cpu == "x64") {
         if (is_debug) {
           sources = [ "symbols_x64_dbg.def" ]
         } else {
@@ -37,14 +37,14 @@ component("absl") {
           }
         }
       }
-      if (current_cpu == "x86") {
+      if (target_cpu == "x86") {
         if (is_debug) {
           sources = [ "symbols_x86_dbg.def" ]
         } else {
           sources = [ "symbols_x86_rel.def" ]
         }
       }
-      if (current_cpu == "arm64") {
+      if (target_cpu == "arm64") {
         if (is_debug) {
           sources = [ "symbols_arm64_dbg.def" ]
         } else {
@@ -56,6 +56,7 @@ component("absl") {
 }
 
 group("absl_component_deps") {
+  if (false) {
   public_deps = [
     "//third_party/abseil-cpp/absl/algorithm",
     "//third_party/abseil-cpp/absl/algorithm:container",
@@ -125,6 +126,23 @@ group("absl_component_deps") {
     # absl internal utilities used by protobuf.
     "//third_party/abseil-cpp/absl/container:layout",
   ]
+  } else {
+  public_deps = [
+    "//abseil-cpp/absl/algorithm:container",
+    "//abseil-cpp/absl/base:nullability",
+    "//abseil-cpp/absl/cleanup",
+    "//abseil-cpp/absl/container:inlined_vector",
+    "//abseil-cpp/absl/functional:any_invocable",
+    "//abseil-cpp/absl/functional:bind_front",
+    "//abseil-cpp/absl/strings",
+    "//abseil-cpp/absl/strings:str_format",
+    "//abseil-cpp/absl/strings:string_view",
+    "//abseil-cpp/absl/types:optional",
+    "//abseil-cpp/absl/types:span",
+    "//abseil-cpp/absl/types:variant",
+    "//abseil-cpp/absl/utility",
+  ]
+  }
 
   if (is_component_build) {
     public_deps += [ ":absl_full_deps" ]
diff --git a/abseil-cpp/absl.gni b/abseil-cpp/absl.gni
index 48e1ce78384..b19ac75675a 100644
--- a/abseil-cpp/absl.gni
+++ b/abseil-cpp/absl.gni
@@ -21,6 +21,7 @@ import("//build_overrides/build.gni")
 
 declare_args() {
   absl_build_tests = build_with_chromium
+  moz_webrtc_build = true
 }
 
 template("absl_source_set") {