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" 13DEFINES["RTC_ENABLE_VP9"] = True 14DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" 15DEFINES["WEBRTC_LIBRARY_IMPL"] = True 16DEFINES["WEBRTC_MOZILLA_BUILD"] = True 17DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" 18 19FINAL_LIBRARY = "webrtc" 20 21 22LOCAL_INCLUDES += [ 23 "!/ipc/ipdl/_ipdlheaders", 24 "/ipc/chromium/src", 25 "/third_party/libwebrtc/", 26 "/third_party/libwebrtc/third_party/abseil-cpp/", 27 "/tools/profiler/public" 28] 29 30UNIFIED_SOURCES += [ 31 "/third_party/libwebrtc/modules/congestion_controller/goog_cc/alr_detector.cc" 32] 33 34if not CONFIG["MOZ_DEBUG"]: 35 36 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 37 DEFINES["NDEBUG"] = True 38 DEFINES["NVALGRIND"] = True 39 40if CONFIG["MOZ_DEBUG"] == "1": 41 42 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 43 44if CONFIG["OS_TARGET"] == "Android": 45 46 DEFINES["ANDROID"] = True 47 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r20_1" 48 DEFINES["HAVE_SYS_UIO_H"] = True 49 DEFINES["WEBRTC_ANDROID"] = True 50 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 51 DEFINES["WEBRTC_LINUX"] = True 52 DEFINES["WEBRTC_POSIX"] = True 53 DEFINES["_GNU_SOURCE"] = True 54 DEFINES["__STDC_CONSTANT_MACROS"] = True 55 DEFINES["__STDC_FORMAT_MACROS"] = True 56 57 OS_LIBS += [ 58 "log" 59 ] 60 61if CONFIG["OS_TARGET"] == "Darwin": 62 63 DEFINES["WEBRTC_MAC"] = True 64 DEFINES["WEBRTC_POSIX"] = True 65 DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True 66 DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" 67 DEFINES["__STDC_CONSTANT_MACROS"] = True 68 DEFINES["__STDC_FORMAT_MACROS"] = True 69 70if CONFIG["OS_TARGET"] == "FreeBSD": 71 72 DEFINES["USE_GLIB"] = "1" 73 DEFINES["WEBRTC_BSD"] = True 74 DEFINES["WEBRTC_POSIX"] = True 75 DEFINES["_FILE_OFFSET_BITS"] = "64" 76 DEFINES["_LARGEFILE64_SOURCE"] = True 77 DEFINES["_LARGEFILE_SOURCE"] = True 78 DEFINES["__STDC_CONSTANT_MACROS"] = True 79 DEFINES["__STDC_FORMAT_MACROS"] = True 80 81if CONFIG["OS_TARGET"] == "Linux": 82 83 DEFINES["USE_AURA"] = "1" 84 DEFINES["USE_GLIB"] = "1" 85 DEFINES["USE_NSS_CERTS"] = "1" 86 DEFINES["USE_OZONE"] = "1" 87 DEFINES["USE_UDEV"] = True 88 DEFINES["USE_X11"] = "1" 89 DEFINES["WEBRTC_LINUX"] = True 90 DEFINES["WEBRTC_POSIX"] = True 91 DEFINES["_FILE_OFFSET_BITS"] = "64" 92 DEFINES["_GNU_SOURCE"] = True 93 DEFINES["_LARGEFILE64_SOURCE"] = True 94 DEFINES["_LARGEFILE_SOURCE"] = True 95 DEFINES["__STDC_CONSTANT_MACROS"] = True 96 DEFINES["__STDC_FORMAT_MACROS"] = True 97 98if CONFIG["OS_TARGET"] == "OpenBSD": 99 100 DEFINES["USE_GLIB"] = "1" 101 DEFINES["WEBRTC_BSD"] = True 102 DEFINES["WEBRTC_POSIX"] = True 103 DEFINES["_FILE_OFFSET_BITS"] = "64" 104 DEFINES["_LARGEFILE64_SOURCE"] = True 105 DEFINES["_LARGEFILE_SOURCE"] = True 106 DEFINES["__STDC_CONSTANT_MACROS"] = True 107 DEFINES["__STDC_FORMAT_MACROS"] = True 108 109if CONFIG["OS_TARGET"] == "WINNT": 110 111 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 112 DEFINES["NOMINMAX"] = True 113 DEFINES["NTDDI_VERSION"] = "0x0A000000" 114 DEFINES["PSAPI_VERSION"] = "2" 115 DEFINES["UNICODE"] = True 116 DEFINES["USE_AURA"] = "1" 117 DEFINES["WEBRTC_WIN"] = True 118 DEFINES["WIN32"] = True 119 DEFINES["WIN32_LEAN_AND_MEAN"] = True 120 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 121 DEFINES["WINVER"] = "0x0A00" 122 DEFINES["_ATL_NO_OPENGL"] = True 123 DEFINES["_CRT_RAND_S"] = True 124 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 125 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 126 DEFINES["_HAS_EXCEPTIONS"] = "0" 127 DEFINES["_HAS_NODISCARD"] = True 128 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 129 DEFINES["_SECURE_ATL"] = True 130 DEFINES["_UNICODE"] = True 131 DEFINES["_WIN32_WINNT"] = "0x0A00" 132 DEFINES["_WINDOWS"] = True 133 DEFINES["__STD_C"] = True 134 135 OS_LIBS += [ 136 "winmm" 137 ] 138 139if CONFIG["CPU_ARCH"] == "aarch64": 140 141 DEFINES["WEBRTC_ARCH_ARM64"] = True 142 DEFINES["WEBRTC_HAS_NEON"] = True 143 144if CONFIG["CPU_ARCH"] == "arm": 145 146 CXXFLAGS += [ 147 "-mfpu=neon" 148 ] 149 150 DEFINES["WEBRTC_ARCH_ARM"] = True 151 DEFINES["WEBRTC_ARCH_ARM_V7"] = True 152 DEFINES["WEBRTC_HAS_NEON"] = True 153 154 OS_LIBS += [ 155 "android_support", 156 "unwind" 157 ] 158 159if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Android": 160 161 DEFINES["_FORTIFY_SOURCE"] = "2" 162 163if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin": 164 165 DEFINES["_FORTIFY_SOURCE"] = "2" 166 167if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD": 168 169 DEFINES["_FORTIFY_SOURCE"] = "2" 170 171if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Linux": 172 173 DEFINES["_FORTIFY_SOURCE"] = "2" 174 175if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD": 176 177 DEFINES["_FORTIFY_SOURCE"] = "2" 178 179if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 180 181 DEFINES["_DEBUG"] = True 182 183if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 184 185 DEFINES["_DEBUG"] = True 186 187if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD": 188 189 DEFINES["_DEBUG"] = True 190 191if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 192 193 DEFINES["_DEBUG"] = True 194 195if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 196 197 DEFINES["_DEBUG"] = True 198 199if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 200 201 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 202 203if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": 204 205 CXXFLAGS += [ 206 "-msse2" 207 ] 208 209 OS_LIBS += [ 210 "android_support" 211 ] 212 213if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD": 214 215 CXXFLAGS += [ 216 "-msse2" 217 ] 218 219if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": 220 221 DEFINES["CR_SYSROOT_HASH"] = "ef67b6ca8fd6e2e51515a243d043d1ea4caf45e6" 222 223if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": 224 225 CXXFLAGS += [ 226 "-msse2" 227 ] 228 229 DEFINES["CR_SYSROOT_HASH"] = "d967bcef40477dbc39acef141ff22bf73f3e7cdb" 230 231if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": 232 233 DEFINES["CR_SYSROOT_HASH"] = "5f64b417e1018dcf8fcc81dc2714e0f264b9b911" 234 235Library("alr_detector_gn") 236