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