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