moz.build (6283B)
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 SOURCES += [ 38 "/third_party/libwebrtc/modules/audio_processing/echo_control_mobile_impl.cc", 39 "/third_party/libwebrtc/modules/audio_processing/gain_control_impl.cc" 40 ] 41 42 UNIFIED_SOURCES += [ 43 "/third_party/libwebrtc/modules/audio_processing/audio_processing_impl.cc" 44 ] 45 46 if not CONFIG["MOZ_DEBUG"]: 47 48 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 49 DEFINES["NDEBUG"] = True 50 DEFINES["NVALGRIND"] = True 51 52 if CONFIG["MOZ_DEBUG"] == "1": 53 54 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 55 56 if CONFIG["OS_TARGET"] == "Android": 57 58 DEFINES["ANDROID"] = True 59 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" 60 DEFINES["HAVE_SYS_UIO_H"] = True 61 DEFINES["WEBRTC_ANDROID"] = True 62 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 63 DEFINES["WEBRTC_LINUX"] = True 64 DEFINES["WEBRTC_POSIX"] = True 65 DEFINES["_GNU_SOURCE"] = True 66 DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True 67 DEFINES["__STDC_CONSTANT_MACROS"] = True 68 DEFINES["__STDC_FORMAT_MACROS"] = True 69 70 OS_LIBS += [ 71 "log" 72 ] 73 74 if CONFIG["OS_TARGET"] == "Darwin": 75 76 DEFINES["WEBRTC_MAC"] = True 77 DEFINES["WEBRTC_POSIX"] = True 78 DEFINES["__STDC_CONSTANT_MACROS"] = True 79 DEFINES["__STDC_FORMAT_MACROS"] = True 80 81 if CONFIG["OS_TARGET"] == "Linux": 82 83 DEFINES["USE_AURA"] = "1" 84 DEFINES["USE_GLIB"] = "1" 85 DEFINES["USE_OZONE"] = "1" 86 DEFINES["USE_UDEV"] = True 87 DEFINES["WEBRTC_LINUX"] = True 88 DEFINES["WEBRTC_POSIX"] = True 89 DEFINES["_FILE_OFFSET_BITS"] = "64" 90 DEFINES["_LARGEFILE64_SOURCE"] = True 91 DEFINES["_LARGEFILE_SOURCE"] = True 92 DEFINES["__STDC_CONSTANT_MACROS"] = True 93 DEFINES["__STDC_FORMAT_MACROS"] = True 94 95 if CONFIG["OS_TARGET"] == "OpenBSD": 96 97 DEFINES["USE_GLIB"] = "1" 98 DEFINES["USE_OZONE"] = "1" 99 DEFINES["WEBRTC_BSD"] = True 100 DEFINES["WEBRTC_POSIX"] = True 101 DEFINES["_FILE_OFFSET_BITS"] = "64" 102 DEFINES["_LARGEFILE64_SOURCE"] = True 103 DEFINES["_LARGEFILE_SOURCE"] = True 104 DEFINES["__STDC_CONSTANT_MACROS"] = True 105 DEFINES["__STDC_FORMAT_MACROS"] = True 106 107 if CONFIG["OS_TARGET"] == "WINNT": 108 109 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 110 DEFINES["NOMINMAX"] = True 111 DEFINES["NTDDI_VERSION"] = "0x0A000000" 112 DEFINES["PSAPI_VERSION"] = "2" 113 DEFINES["RTC_ENABLE_WIN_WGC"] = True 114 DEFINES["UNICODE"] = True 115 DEFINES["USE_AURA"] = "1" 116 DEFINES["WEBRTC_WIN"] = True 117 DEFINES["WIN32"] = True 118 DEFINES["WIN32_LEAN_AND_MEAN"] = True 119 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 120 DEFINES["WINVER"] = "0x0A00" 121 DEFINES["_ATL_NO_OPENGL"] = True 122 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = 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["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True 134 DEFINES["__STD_C"] = True 135 136 OS_LIBS += [ 137 "crypt32", 138 "iphlpapi", 139 "secur32", 140 "winmm" 141 ] 142 143 if CONFIG["TARGET_CPU"] == "aarch64": 144 145 DEFINES["WEBRTC_ARCH_ARM64"] = True 146 DEFINES["WEBRTC_HAS_NEON"] = True 147 DEFINES["__ARM_NEON__"] = "1" 148 149 if CONFIG["TARGET_CPU"] == "arm": 150 151 CXXFLAGS += [ 152 "-mfpu=neon" 153 ] 154 155 DEFINES["WEBRTC_ARCH_ARM"] = True 156 DEFINES["WEBRTC_ARCH_ARM_V7"] = True 157 DEFINES["WEBRTC_HAS_NEON"] = True 158 159 if CONFIG["TARGET_CPU"] == "loongarch64": 160 161 DEFINES["_GNU_SOURCE"] = True 162 163 if CONFIG["TARGET_CPU"] == "mips32": 164 165 DEFINES["MIPS32_LE"] = True 166 DEFINES["MIPS_FPU_LE"] = True 167 DEFINES["_GNU_SOURCE"] = True 168 169 if CONFIG["TARGET_CPU"] == "mips64": 170 171 DEFINES["_GNU_SOURCE"] = True 172 173 if CONFIG["TARGET_CPU"] == "x86": 174 175 DEFINES["WEBRTC_ENABLE_AVX2"] = True 176 177 if CONFIG["TARGET_CPU"] == "x86_64": 178 179 DEFINES["WEBRTC_ENABLE_AVX2"] = True 180 181 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 182 183 DEFINES["_DEBUG"] = True 184 185 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 186 187 DEFINES["_DEBUG"] = True 188 189 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 190 191 DEFINES["_DEBUG"] = True 192 193 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 194 195 DEFINES["_DEBUG"] = True 196 197 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 198 199 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 200 201 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": 202 203 CXXFLAGS += [ 204 "-msse2" 205 ] 206 207 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": 208 209 DEFINES["_GNU_SOURCE"] = True 210 211 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": 212 213 DEFINES["_GNU_SOURCE"] = True 214 215 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": 216 217 CXXFLAGS += [ 218 "-msse2" 219 ] 220 221 DEFINES["_GNU_SOURCE"] = True 222 223 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": 224 225 DEFINES["_GNU_SOURCE"] = True 226 227 Library("audio_processing_gn")