moz.build (6613B)
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 SOURCES += [ 37 "/third_party/libwebrtc/audio/channel_send_frame_transformer_delegate.cc" 38 ] 39 40 UNIFIED_SOURCES += [ 41 "/third_party/libwebrtc/audio/audio_level.cc", 42 "/third_party/libwebrtc/audio/audio_receive_stream.cc", 43 "/third_party/libwebrtc/audio/audio_send_stream.cc", 44 "/third_party/libwebrtc/audio/audio_state.cc", 45 "/third_party/libwebrtc/audio/audio_transport_impl.cc", 46 "/third_party/libwebrtc/audio/channel_receive.cc", 47 "/third_party/libwebrtc/audio/channel_receive_frame_transformer_delegate.cc", 48 "/third_party/libwebrtc/audio/channel_send.cc", 49 "/third_party/libwebrtc/audio/remix_resample.cc" 50 ] 51 52 if not CONFIG["MOZ_DEBUG"]: 53 54 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 55 DEFINES["NDEBUG"] = True 56 DEFINES["NVALGRIND"] = True 57 58 if CONFIG["MOZ_DEBUG"] == "1": 59 60 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 61 62 if CONFIG["OS_TARGET"] == "Android": 63 64 DEFINES["ANDROID"] = True 65 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" 66 DEFINES["HAVE_SYS_UIO_H"] = True 67 DEFINES["WEBRTC_ANDROID"] = True 68 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 69 DEFINES["WEBRTC_LINUX"] = True 70 DEFINES["WEBRTC_POSIX"] = True 71 DEFINES["_GNU_SOURCE"] = True 72 DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True 73 DEFINES["__STDC_CONSTANT_MACROS"] = True 74 DEFINES["__STDC_FORMAT_MACROS"] = True 75 76 OS_LIBS += [ 77 "GLESv2", 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("audio_gn")