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/utility/delay_estimator.cc", 32 "/third_party/libwebrtc/modules/audio_processing/utility/delay_estimator_wrapper.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 99if CONFIG["OS_TARGET"] == "OpenBSD": 100 101 DEFINES["USE_GLIB"] = "1" 102 DEFINES["WEBRTC_BSD"] = True 103 DEFINES["WEBRTC_POSIX"] = True 104 DEFINES["_FILE_OFFSET_BITS"] = "64" 105 DEFINES["_LARGEFILE64_SOURCE"] = True 106 DEFINES["_LARGEFILE_SOURCE"] = True 107 DEFINES["__STDC_CONSTANT_MACROS"] = True 108 DEFINES["__STDC_FORMAT_MACROS"] = True 109 110if CONFIG["OS_TARGET"] == "WINNT": 111 112 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 113 DEFINES["NOMINMAX"] = True 114 DEFINES["NTDDI_VERSION"] = "0x0A000000" 115 DEFINES["PSAPI_VERSION"] = "2" 116 DEFINES["UNICODE"] = True 117 DEFINES["USE_AURA"] = "1" 118 DEFINES["WEBRTC_WIN"] = True 119 DEFINES["WIN32"] = True 120 DEFINES["WIN32_LEAN_AND_MEAN"] = True 121 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 122 DEFINES["WINVER"] = "0x0A00" 123 DEFINES["_ATL_NO_OPENGL"] = True 124 DEFINES["_CRT_RAND_S"] = True 125 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 126 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 127 DEFINES["_HAS_EXCEPTIONS"] = "0" 128 DEFINES["_HAS_NODISCARD"] = True 129 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 130 DEFINES["_SECURE_ATL"] = True 131 DEFINES["_UNICODE"] = True 132 DEFINES["_WIN32_WINNT"] = "0x0A00" 133 DEFINES["_WINDOWS"] = True 134 DEFINES["__STD_C"] = True 135 136if CONFIG["CPU_ARCH"] == "aarch64": 137 138 DEFINES["WEBRTC_ARCH_ARM64"] = True 139 DEFINES["WEBRTC_HAS_NEON"] = True 140 141if CONFIG["CPU_ARCH"] == "arm": 142 143 CXXFLAGS += [ 144 "-mfpu=neon" 145 ] 146 147 DEFINES["WEBRTC_ARCH_ARM"] = True 148 DEFINES["WEBRTC_ARCH_ARM_V7"] = True 149 DEFINES["WEBRTC_HAS_NEON"] = True 150 151 OS_LIBS += [ 152 "android_support", 153 "unwind" 154 ] 155 156if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Android": 157 158 DEFINES["_FORTIFY_SOURCE"] = "2" 159 160if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin": 161 162 DEFINES["_FORTIFY_SOURCE"] = "2" 163 164if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD": 165 166 DEFINES["_FORTIFY_SOURCE"] = "2" 167 168if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Linux": 169 170 DEFINES["_FORTIFY_SOURCE"] = "2" 171 172if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD": 173 174 DEFINES["_FORTIFY_SOURCE"] = "2" 175 176if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 177 178 DEFINES["_DEBUG"] = True 179 180if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 181 182 DEFINES["_DEBUG"] = True 183 184if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD": 185 186 DEFINES["_DEBUG"] = True 187 188if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 189 190 DEFINES["_DEBUG"] = True 191 192if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 193 194 DEFINES["_DEBUG"] = True 195 196if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 197 198 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 199 200if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": 201 202 CXXFLAGS += [ 203 "-msse2" 204 ] 205 206 OS_LIBS += [ 207 "android_support" 208 ] 209 210if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD": 211 212 CXXFLAGS += [ 213 "-msse2" 214 ] 215 216if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": 217 218 DEFINES["CR_SYSROOT_HASH"] = "ef67b6ca8fd6e2e51515a243d043d1ea4caf45e6" 219 220if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": 221 222 CXXFLAGS += [ 223 "-msse2" 224 ] 225 226 DEFINES["CR_SYSROOT_HASH"] = "d967bcef40477dbc39acef141ff22bf73f3e7cdb" 227 228if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": 229 230 DEFINES["CR_SYSROOT_HASH"] = "5f64b417e1018dcf8fcc81dc2714e0f264b9b911" 231 232Library("legacy_delay_estimator_gn") 233