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