moz.build (7040B)
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 9 COMPILE_FLAGS["OS_INCLUDES"] = [] 10 AllowCompilerWarnings() 11 12 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" 13 DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" 14 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True 15 DEFINES["RTC_ENABLE_VP9"] = True 16 DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" 17 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" 18 DEFINES["WEBRTC_ENCODER_PSNR_STATS"] = True 19 DEFINES["WEBRTC_LIBRARY_IMPL"] = True 20 DEFINES["WEBRTC_MOZILLA_BUILD"] = True 21 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" 22 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" 23 24 FINAL_LIBRARY = "xul" 25 26 27 LOCAL_INCLUDES += [ 28 "!/dist/include/libwebrtc_overrides", 29 "!/ipc/ipdl/_ipdlheaders", 30 "!/third_party/libwebrtc/gen", 31 "/ipc/chromium/src", 32 "/third_party/abseil-cpp/", 33 "/third_party/libwebrtc/", 34 "/tools/profiler/public" 35 ] 36 37 UNIFIED_SOURCES += [ 38 "/third_party/libwebrtc/modules/audio_processing/ns/fast_math.cc", 39 "/third_party/libwebrtc/modules/audio_processing/ns/histograms.cc", 40 "/third_party/libwebrtc/modules/audio_processing/ns/noise_estimator.cc", 41 "/third_party/libwebrtc/modules/audio_processing/ns/noise_suppressor.cc", 42 "/third_party/libwebrtc/modules/audio_processing/ns/ns_fft.cc", 43 "/third_party/libwebrtc/modules/audio_processing/ns/prior_signal_model.cc", 44 "/third_party/libwebrtc/modules/audio_processing/ns/prior_signal_model_estimator.cc", 45 "/third_party/libwebrtc/modules/audio_processing/ns/quantile_noise_estimator.cc", 46 "/third_party/libwebrtc/modules/audio_processing/ns/signal_model.cc", 47 "/third_party/libwebrtc/modules/audio_processing/ns/signal_model_estimator.cc", 48 "/third_party/libwebrtc/modules/audio_processing/ns/speech_probability_estimator.cc", 49 "/third_party/libwebrtc/modules/audio_processing/ns/suppression_params.cc", 50 "/third_party/libwebrtc/modules/audio_processing/ns/wiener_filter.cc" 51 ] 52 53 if not CONFIG["MOZ_DEBUG"]: 54 55 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 56 DEFINES["NDEBUG"] = True 57 DEFINES["NVALGRIND"] = True 58 59 if CONFIG["MOZ_DEBUG"] == "1": 60 61 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 62 63 if CONFIG["OS_TARGET"] == "Android": 64 65 DEFINES["ANDROID"] = True 66 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" 67 DEFINES["HAVE_SYS_UIO_H"] = True 68 DEFINES["WEBRTC_ANDROID"] = True 69 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 70 DEFINES["WEBRTC_LINUX"] = True 71 DEFINES["WEBRTC_POSIX"] = True 72 DEFINES["_GNU_SOURCE"] = True 73 DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True 74 DEFINES["__STDC_CONSTANT_MACROS"] = True 75 DEFINES["__STDC_FORMAT_MACROS"] = True 76 77 OS_LIBS += [ 78 "log" 79 ] 80 81 if CONFIG["OS_TARGET"] == "Darwin": 82 83 DEFINES["WEBRTC_MAC"] = True 84 DEFINES["WEBRTC_POSIX"] = True 85 DEFINES["__STDC_CONSTANT_MACROS"] = True 86 DEFINES["__STDC_FORMAT_MACROS"] = True 87 88 if CONFIG["OS_TARGET"] == "Linux": 89 90 DEFINES["USE_AURA"] = "1" 91 DEFINES["USE_GLIB"] = "1" 92 DEFINES["USE_OZONE"] = "1" 93 DEFINES["USE_UDEV"] = True 94 DEFINES["WEBRTC_LINUX"] = True 95 DEFINES["WEBRTC_POSIX"] = True 96 DEFINES["_FILE_OFFSET_BITS"] = "64" 97 DEFINES["_LARGEFILE64_SOURCE"] = True 98 DEFINES["_LARGEFILE_SOURCE"] = True 99 DEFINES["__STDC_CONSTANT_MACROS"] = True 100 DEFINES["__STDC_FORMAT_MACROS"] = True 101 102 if CONFIG["OS_TARGET"] == "OpenBSD": 103 104 DEFINES["USE_GLIB"] = "1" 105 DEFINES["USE_OZONE"] = "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 114 if 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["RTC_ENABLE_WIN_WGC"] = True 121 DEFINES["UNICODE"] = True 122 DEFINES["USE_AURA"] = "1" 123 DEFINES["WEBRTC_WIN"] = True 124 DEFINES["WIN32"] = True 125 DEFINES["WIN32_LEAN_AND_MEAN"] = True 126 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 127 DEFINES["WINVER"] = "0x0A00" 128 DEFINES["_ATL_NO_OPENGL"] = True 129 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True 130 DEFINES["_CRT_RAND_S"] = True 131 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 132 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 133 DEFINES["_HAS_EXCEPTIONS"] = "0" 134 DEFINES["_HAS_NODISCARD"] = True 135 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 136 DEFINES["_SECURE_ATL"] = True 137 DEFINES["_UNICODE"] = True 138 DEFINES["_WIN32_WINNT"] = "0x0A00" 139 DEFINES["_WINDOWS"] = True 140 DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True 141 DEFINES["__STD_C"] = True 142 143 OS_LIBS += [ 144 "crypt32", 145 "iphlpapi", 146 "secur32", 147 "winmm" 148 ] 149 150 if CONFIG["TARGET_CPU"] == "aarch64": 151 152 DEFINES["WEBRTC_ARCH_ARM64"] = True 153 DEFINES["WEBRTC_HAS_NEON"] = True 154 DEFINES["__ARM_NEON__"] = "1" 155 156 if CONFIG["TARGET_CPU"] == "arm": 157 158 CXXFLAGS += [ 159 "-mfpu=neon" 160 ] 161 162 DEFINES["WEBRTC_ARCH_ARM"] = True 163 DEFINES["WEBRTC_ARCH_ARM_V7"] = True 164 DEFINES["WEBRTC_HAS_NEON"] = True 165 166 if CONFIG["TARGET_CPU"] == "loongarch64": 167 168 DEFINES["_GNU_SOURCE"] = True 169 170 if CONFIG["TARGET_CPU"] == "mips32": 171 172 DEFINES["MIPS32_LE"] = True 173 DEFINES["MIPS_FPU_LE"] = True 174 DEFINES["_GNU_SOURCE"] = True 175 176 if CONFIG["TARGET_CPU"] == "mips64": 177 178 DEFINES["_GNU_SOURCE"] = True 179 180 if CONFIG["TARGET_CPU"] == "x86": 181 182 DEFINES["WEBRTC_ENABLE_AVX2"] = True 183 184 if CONFIG["TARGET_CPU"] == "x86_64": 185 186 DEFINES["WEBRTC_ENABLE_AVX2"] = True 187 188 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 189 190 DEFINES["_DEBUG"] = True 191 192 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 193 194 DEFINES["_DEBUG"] = True 195 196 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 197 198 DEFINES["_DEBUG"] = True 199 200 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 201 202 DEFINES["_DEBUG"] = True 203 204 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 205 206 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 207 208 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": 209 210 CXXFLAGS += [ 211 "-msse2" 212 ] 213 214 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": 215 216 DEFINES["_GNU_SOURCE"] = True 217 218 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": 219 220 DEFINES["_GNU_SOURCE"] = True 221 222 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": 223 224 CXXFLAGS += [ 225 "-msse2" 226 ] 227 228 DEFINES["_GNU_SOURCE"] = True 229 230 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": 231 232 DEFINES["_GNU_SOURCE"] = True 233 234 Library("ns_gn")