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
9COMPILE_FLAGS["OS_INCLUDES"] = []
10AllowCompilerWarnings()
11
12DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1"
13
14FINAL_LIBRARY = "webrtc"
15
16
17LOCAL_INCLUDES += [
18    "!/ipc/ipdl/_ipdlheaders",
19    "/ipc/chromium/src",
20    "/third_party/libwebrtc/",
21    "/third_party/libwebrtc/third_party/abseil-cpp/",
22    "/tools/profiler/public"
23]
24
25if not CONFIG["MOZ_DEBUG"]:
26
27    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
28    DEFINES["NDEBUG"] = True
29    DEFINES["NVALGRIND"] = True
30
31if CONFIG["MOZ_DEBUG"] == "1":
32
33    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
34
35if CONFIG["OS_TARGET"] == "Android":
36
37    DEFINES["ANDROID"] = True
38    DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r20_1"
39    DEFINES["HAVE_SYS_UIO_H"] = True
40    DEFINES["_GNU_SOURCE"] = True
41
42if CONFIG["OS_TARGET"] == "Darwin":
43
44    DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True
45    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0"
46
47if CONFIG["OS_TARGET"] == "FreeBSD":
48
49    DEFINES["USE_GLIB"] = "1"
50    DEFINES["_FILE_OFFSET_BITS"] = "64"
51    DEFINES["_LARGEFILE64_SOURCE"] = True
52    DEFINES["_LARGEFILE_SOURCE"] = True
53
54if CONFIG["OS_TARGET"] == "Linux":
55
56    DEFINES["USE_AURA"] = "1"
57    DEFINES["USE_GLIB"] = "1"
58    DEFINES["USE_NSS_CERTS"] = "1"
59    DEFINES["USE_OZONE"] = "1"
60    DEFINES["USE_UDEV"] = True
61    DEFINES["USE_X11"] = "1"
62    DEFINES["_FILE_OFFSET_BITS"] = "64"
63    DEFINES["_GNU_SOURCE"] = True
64    DEFINES["_LARGEFILE64_SOURCE"] = True
65    DEFINES["_LARGEFILE_SOURCE"] = True
66
67if CONFIG["OS_TARGET"] == "OpenBSD":
68
69    DEFINES["USE_GLIB"] = "1"
70    DEFINES["_FILE_OFFSET_BITS"] = "64"
71    DEFINES["_LARGEFILE64_SOURCE"] = True
72    DEFINES["_LARGEFILE_SOURCE"] = True
73
74if CONFIG["OS_TARGET"] == "WINNT":
75
76    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
77    DEFINES["NOMINMAX"] = True
78    DEFINES["NTDDI_VERSION"] = "0x0A000000"
79    DEFINES["PSAPI_VERSION"] = "2"
80    DEFINES["UNICODE"] = True
81    DEFINES["USE_AURA"] = "1"
82    DEFINES["WIN32"] = True
83    DEFINES["WIN32_LEAN_AND_MEAN"] = True
84    DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP"
85    DEFINES["WINVER"] = "0x0A00"
86    DEFINES["_ATL_NO_OPENGL"] = True
87    DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True
88    DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True
89    DEFINES["_CRT_RAND_S"] = True
90    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
91    DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True
92    DEFINES["_HAS_EXCEPTIONS"] = "0"
93    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
94    DEFINES["_SECURE_ATL"] = True
95    DEFINES["_UNICODE"] = True
96    DEFINES["_WIN32_WINNT"] = "0x0A00"
97    DEFINES["_WINDOWS"] = True
98    DEFINES["__STD_C"] = True
99
100if CONFIG["CPU_ARCH"] == "arm":
101
102    OS_LIBS += [
103        "android_support",
104        "unwind"
105    ]
106
107if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android":
108
109    DEFINES["_DEBUG"] = True
110
111if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin":
112
113    DEFINES["_DEBUG"] = True
114
115if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD":
116
117    DEFINES["_DEBUG"] = True
118
119if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux":
120
121    DEFINES["_DEBUG"] = True
122
123if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD":
124
125    DEFINES["_DEBUG"] = True
126
127if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT":
128
129    DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0"
130
131if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":
132
133    OS_LIBS += [
134        "android_support"
135    ]
136
137if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux":
138
139    DEFINES["CR_SYSROOT_HASH"] = "ef67b6ca8fd6e2e51515a243d043d1ea4caf45e6"
140
141if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux":
142
143    DEFINES["CR_SYSROOT_HASH"] = "d967bcef40477dbc39acef141ff22bf73f3e7cdb"
144
145if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux":
146
147    DEFINES["CR_SYSROOT_HASH"] = "5f64b417e1018dcf8fcc81dc2714e0f264b9b911"
148
149Library("utility_gn")
150