Skip to content

Commit 5c0daa9

Browse files
committed
Bug 1868223 - Add moz.build files from updated BUILD.gn r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D267542
1 parent 84bd006 commit 5c0daa9

2 files changed

Lines changed: 225 additions & 0 deletions

File tree

Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
6+
### This moz.build was AUTOMATICALLY GENERATED from a GN config, ###
7+
### DO NOT edit it by hand. ###
8+
9+
COMPILE_FLAGS["OS_INCLUDES"] = []
10+
AllowCompilerWarnings()
11+
12+
DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
13+
DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0"
14+
DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True
15+
DEFINES["RTC_ENABLE_VP9"] = True
16+
DEFINES["WEBRTC_ALLOW_DEPRECATED_NAMESPACES"] = True
17+
DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
18+
DEFINES["WEBRTC_LIBRARY_IMPL"] = True
19+
DEFINES["WEBRTC_MOZILLA_BUILD"] = True
20+
DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
21+
DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0"
22+
DEFINES["_LIBCPP_HARDENING_MODE"] = "_LIBCPP_HARDENING_MODE_NONE"
23+
24+
FINAL_LIBRARY = "xul"
25+
26+
27+
LOCAL_INCLUDES += [
28+
"!/dist/include/libwebrtc_overrides",
29+
"!/ipc/ipdl/_ipdlheaders",
30+
"!/third_party/libwebrtc/gen",
31+
"/ipc/chromium/src",
32+
"/third_party/abseil-cpp/",
33+
"/third_party/libwebrtc/",
34+
"/tools/profiler/public"
35+
]
36+
37+
UNIFIED_SOURCES += [
38+
"/third_party/libwebrtc/api/frame_transformer_factory.cc"
39+
]
40+
41+
if not CONFIG["MOZ_DEBUG"]:
42+
43+
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
44+
DEFINES["NDEBUG"] = True
45+
DEFINES["NVALGRIND"] = True
46+
47+
if CONFIG["MOZ_DEBUG"] == "1":
48+
49+
DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
50+
51+
if CONFIG["OS_TARGET"] == "Android":
52+
53+
DEFINES["ANDROID"] = True
54+
DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1"
55+
DEFINES["HAVE_SYS_UIO_H"] = True
56+
DEFINES["WEBRTC_ANDROID"] = True
57+
DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
58+
DEFINES["WEBRTC_LINUX"] = True
59+
DEFINES["WEBRTC_POSIX"] = True
60+
DEFINES["_GNU_SOURCE"] = True
61+
DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True
62+
DEFINES["__STDC_CONSTANT_MACROS"] = True
63+
DEFINES["__STDC_FORMAT_MACROS"] = True
64+
65+
OS_LIBS += [
66+
"GLESv2",
67+
"log"
68+
]
69+
70+
if CONFIG["OS_TARGET"] == "Darwin":
71+
72+
DEFINES["WEBRTC_MAC"] = True
73+
DEFINES["WEBRTC_POSIX"] = True
74+
DEFINES["__STDC_CONSTANT_MACROS"] = True
75+
DEFINES["__STDC_FORMAT_MACROS"] = True
76+
77+
if CONFIG["OS_TARGET"] == "Linux":
78+
79+
DEFINES["USE_AURA"] = "1"
80+
DEFINES["USE_GLIB"] = "1"
81+
DEFINES["USE_OZONE"] = "1"
82+
DEFINES["USE_UDEV"] = True
83+
DEFINES["WEBRTC_LINUX"] = True
84+
DEFINES["WEBRTC_POSIX"] = True
85+
DEFINES["_FILE_OFFSET_BITS"] = "64"
86+
DEFINES["_GLIBCXX_ASSERTIONS"] = "1"
87+
DEFINES["_LARGEFILE64_SOURCE"] = True
88+
DEFINES["_LARGEFILE_SOURCE"] = True
89+
DEFINES["__STDC_CONSTANT_MACROS"] = True
90+
DEFINES["__STDC_FORMAT_MACROS"] = True
91+
92+
if CONFIG["OS_TARGET"] == "OpenBSD":
93+
94+
DEFINES["USE_GLIB"] = "1"
95+
DEFINES["USE_OZONE"] = "1"
96+
DEFINES["WEBRTC_BSD"] = True
97+
DEFINES["WEBRTC_POSIX"] = True
98+
DEFINES["_FILE_OFFSET_BITS"] = "64"
99+
DEFINES["_LARGEFILE64_SOURCE"] = True
100+
DEFINES["_LARGEFILE_SOURCE"] = True
101+
DEFINES["__STDC_CONSTANT_MACROS"] = True
102+
DEFINES["__STDC_FORMAT_MACROS"] = True
103+
104+
if CONFIG["OS_TARGET"] == "WINNT":
105+
106+
DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
107+
DEFINES["NOMINMAX"] = True
108+
DEFINES["NTDDI_VERSION"] = "0x0A000000"
109+
DEFINES["PSAPI_VERSION"] = "2"
110+
DEFINES["RTC_ENABLE_WIN_WGC"] = True
111+
DEFINES["UNICODE"] = True
112+
DEFINES["USE_AURA"] = "1"
113+
DEFINES["WEBRTC_WIN"] = True
114+
DEFINES["WIN32"] = True
115+
DEFINES["WIN32_LEAN_AND_MEAN"] = True
116+
DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
117+
DEFINES["WINVER"] = "0x0A00"
118+
DEFINES["_ATL_NO_OPENGL"] = True
119+
DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
120+
DEFINES["_CRT_RAND_S"] = True
121+
DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
122+
DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
123+
DEFINES["_HAS_EXCEPTIONS"] = "0"
124+
DEFINES["_HAS_NODISCARD"] = True
125+
DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
126+
DEFINES["_SECURE_ATL"] = True
127+
DEFINES["_UNICODE"] = True
128+
DEFINES["_WIN32_WINNT"] = "0x0A00"
129+
DEFINES["_WINDOWS"] = True
130+
DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True
131+
DEFINES["__STD_C"] = True
132+
133+
OS_LIBS += [
134+
"crypt32",
135+
"iphlpapi",
136+
"secur32",
137+
"winmm"
138+
]
139+
140+
if CONFIG["TARGET_CPU"] == "aarch64":
141+
142+
DEFINES["WEBRTC_ARCH_ARM64"] = True
143+
DEFINES["WEBRTC_HAS_NEON"] = True
144+
DEFINES["__ARM_NEON__"] = "1"
145+
146+
if CONFIG["TARGET_CPU"] == "arm":
147+
148+
CXXFLAGS += [
149+
"-mfpu=neon"
150+
]
151+
152+
DEFINES["WEBRTC_ARCH_ARM"] = True
153+
DEFINES["WEBRTC_ARCH_ARM_V7"] = True
154+
DEFINES["WEBRTC_HAS_NEON"] = True
155+
156+
if CONFIG["TARGET_CPU"] == "loongarch64":
157+
158+
DEFINES["_GNU_SOURCE"] = True
159+
160+
if CONFIG["TARGET_CPU"] == "mips32":
161+
162+
DEFINES["MIPS32_LE"] = True
163+
DEFINES["MIPS_FPU_LE"] = True
164+
DEFINES["_GNU_SOURCE"] = True
165+
166+
if CONFIG["TARGET_CPU"] == "mips64":
167+
168+
DEFINES["_GNU_SOURCE"] = True
169+
170+
if CONFIG["TARGET_CPU"] == "x86":
171+
172+
DEFINES["WEBRTC_ENABLE_AVX2"] = True
173+
174+
if CONFIG["TARGET_CPU"] == "x86_64":
175+
176+
DEFINES["WEBRTC_ENABLE_AVX2"] = True
177+
178+
if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
179+
180+
DEFINES["_DEBUG"] = True
181+
182+
if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
183+
184+
DEFINES["_DEBUG"] = True
185+
186+
if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
187+
188+
DEFINES["_DEBUG"] = True
189+
190+
if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
191+
192+
DEFINES["_DEBUG"] = True
193+
194+
if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
195+
196+
DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
197+
198+
if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86":
199+
200+
CXXFLAGS += [
201+
"-msse2"
202+
]
203+
204+
if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64":
205+
206+
DEFINES["_GNU_SOURCE"] = True
207+
208+
if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm":
209+
210+
DEFINES["_GNU_SOURCE"] = True
211+
212+
if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86":
213+
214+
CXXFLAGS += [
215+
"-msse2"
216+
]
217+
218+
DEFINES["_GNU_SOURCE"] = True
219+
220+
if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64":
221+
222+
DEFINES["_GNU_SOURCE"] = True
223+
224+
Library("frame_transformer_factory_gn")

third_party/libwebrtc/moz.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ DIRS += [
4949
"/third_party/libwebrtc/api/field_trials_gn",
5050
"/third_party/libwebrtc/api/field_trials_registry_gn",
5151
"/third_party/libwebrtc/api/field_trials_view_gn",
52+
"/third_party/libwebrtc/api/frame_transformer_factory_gn",
5253
"/third_party/libwebrtc/api/frame_transformer_interface_gn",
5354
"/third_party/libwebrtc/api/function_view_gn",
5455
"/third_party/libwebrtc/api/libjingle_logging_api_gn",

0 commit comments

Comments
 (0)