moz.build (10732B)
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/aec3/adaptive_fir_filter.cc", 39 "/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl.cc", 40 "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_common.cc", 41 "/third_party/libwebrtc/modules/audio_processing/aec3/aec3_fft.cc", 42 "/third_party/libwebrtc/modules/audio_processing/aec3/aec_state.cc", 43 "/third_party/libwebrtc/modules/audio_processing/aec3/alignment_mixer.cc", 44 "/third_party/libwebrtc/modules/audio_processing/aec3/api_call_jitter_metrics.cc", 45 "/third_party/libwebrtc/modules/audio_processing/aec3/block_buffer.cc", 46 "/third_party/libwebrtc/modules/audio_processing/aec3/block_delay_buffer.cc", 47 "/third_party/libwebrtc/modules/audio_processing/aec3/block_framer.cc", 48 "/third_party/libwebrtc/modules/audio_processing/aec3/block_processor.cc", 49 "/third_party/libwebrtc/modules/audio_processing/aec3/block_processor_metrics.cc", 50 "/third_party/libwebrtc/modules/audio_processing/aec3/clockdrift_detector.cc", 51 "/third_party/libwebrtc/modules/audio_processing/aec3/coarse_filter_update_gain.cc", 52 "/third_party/libwebrtc/modules/audio_processing/aec3/comfort_noise_generator.cc", 53 "/third_party/libwebrtc/modules/audio_processing/aec3/config_selector.cc", 54 "/third_party/libwebrtc/modules/audio_processing/aec3/decimator.cc", 55 "/third_party/libwebrtc/modules/audio_processing/aec3/dominant_nearend_detector.cc", 56 "/third_party/libwebrtc/modules/audio_processing/aec3/downsampled_render_buffer.cc", 57 "/third_party/libwebrtc/modules/audio_processing/aec3/echo_audibility.cc", 58 "/third_party/libwebrtc/modules/audio_processing/aec3/echo_canceller3.cc", 59 "/third_party/libwebrtc/modules/audio_processing/aec3/echo_path_delay_estimator.cc", 60 "/third_party/libwebrtc/modules/audio_processing/aec3/echo_path_variability.cc", 61 "/third_party/libwebrtc/modules/audio_processing/aec3/echo_remover.cc", 62 "/third_party/libwebrtc/modules/audio_processing/aec3/echo_remover_metrics.cc", 63 "/third_party/libwebrtc/modules/audio_processing/aec3/erl_estimator.cc", 64 "/third_party/libwebrtc/modules/audio_processing/aec3/erle_estimator.cc", 65 "/third_party/libwebrtc/modules/audio_processing/aec3/fft_buffer.cc", 66 "/third_party/libwebrtc/modules/audio_processing/aec3/filter_analyzer.cc", 67 "/third_party/libwebrtc/modules/audio_processing/aec3/frame_blocker.cc", 68 "/third_party/libwebrtc/modules/audio_processing/aec3/fullband_erle_estimator.cc", 69 "/third_party/libwebrtc/modules/audio_processing/aec3/matched_filter.cc", 70 "/third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_lag_aggregator.cc", 71 "/third_party/libwebrtc/modules/audio_processing/aec3/moving_average.cc", 72 "/third_party/libwebrtc/modules/audio_processing/aec3/multi_channel_content_detector.cc", 73 "/third_party/libwebrtc/modules/audio_processing/aec3/refined_filter_update_gain.cc", 74 "/third_party/libwebrtc/modules/audio_processing/aec3/render_buffer.cc", 75 "/third_party/libwebrtc/modules/audio_processing/aec3/render_delay_buffer.cc", 76 "/third_party/libwebrtc/modules/audio_processing/aec3/render_delay_controller.cc", 77 "/third_party/libwebrtc/modules/audio_processing/aec3/render_delay_controller_metrics.cc", 78 "/third_party/libwebrtc/modules/audio_processing/aec3/render_signal_analyzer.cc", 79 "/third_party/libwebrtc/modules/audio_processing/aec3/residual_echo_estimator.cc", 80 "/third_party/libwebrtc/modules/audio_processing/aec3/reverb_decay_estimator.cc", 81 "/third_party/libwebrtc/modules/audio_processing/aec3/reverb_frequency_response.cc", 82 "/third_party/libwebrtc/modules/audio_processing/aec3/reverb_model.cc", 83 "/third_party/libwebrtc/modules/audio_processing/aec3/reverb_model_estimator.cc", 84 "/third_party/libwebrtc/modules/audio_processing/aec3/signal_dependent_erle_estimator.cc", 85 "/third_party/libwebrtc/modules/audio_processing/aec3/spectrum_buffer.cc", 86 "/third_party/libwebrtc/modules/audio_processing/aec3/stationarity_estimator.cc", 87 "/third_party/libwebrtc/modules/audio_processing/aec3/subband_erle_estimator.cc", 88 "/third_party/libwebrtc/modules/audio_processing/aec3/subband_nearend_detector.cc", 89 "/third_party/libwebrtc/modules/audio_processing/aec3/subtractor.cc", 90 "/third_party/libwebrtc/modules/audio_processing/aec3/subtractor_output.cc", 91 "/third_party/libwebrtc/modules/audio_processing/aec3/subtractor_output_analyzer.cc", 92 "/third_party/libwebrtc/modules/audio_processing/aec3/suppression_filter.cc", 93 "/third_party/libwebrtc/modules/audio_processing/aec3/suppression_gain.cc", 94 "/third_party/libwebrtc/modules/audio_processing/aec3/transparent_mode.cc" 95 ] 96 97 if not CONFIG["MOZ_DEBUG"]: 98 99 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 100 DEFINES["NDEBUG"] = True 101 DEFINES["NVALGRIND"] = True 102 103 if CONFIG["MOZ_DEBUG"] == "1": 104 105 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 106 107 if CONFIG["OS_TARGET"] == "Android": 108 109 DEFINES["ANDROID"] = True 110 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" 111 DEFINES["HAVE_SYS_UIO_H"] = True 112 DEFINES["WEBRTC_ANDROID"] = True 113 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 114 DEFINES["WEBRTC_LINUX"] = True 115 DEFINES["WEBRTC_POSIX"] = True 116 DEFINES["_GNU_SOURCE"] = True 117 DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True 118 DEFINES["__STDC_CONSTANT_MACROS"] = True 119 DEFINES["__STDC_FORMAT_MACROS"] = True 120 121 OS_LIBS += [ 122 "log" 123 ] 124 125 if CONFIG["OS_TARGET"] == "Darwin": 126 127 DEFINES["WEBRTC_MAC"] = True 128 DEFINES["WEBRTC_POSIX"] = True 129 DEFINES["__STDC_CONSTANT_MACROS"] = True 130 DEFINES["__STDC_FORMAT_MACROS"] = True 131 132 if CONFIG["OS_TARGET"] == "Linux": 133 134 DEFINES["USE_AURA"] = "1" 135 DEFINES["USE_GLIB"] = "1" 136 DEFINES["USE_OZONE"] = "1" 137 DEFINES["USE_UDEV"] = True 138 DEFINES["WEBRTC_LINUX"] = True 139 DEFINES["WEBRTC_POSIX"] = True 140 DEFINES["_FILE_OFFSET_BITS"] = "64" 141 DEFINES["_LARGEFILE64_SOURCE"] = True 142 DEFINES["_LARGEFILE_SOURCE"] = True 143 DEFINES["__STDC_CONSTANT_MACROS"] = True 144 DEFINES["__STDC_FORMAT_MACROS"] = True 145 146 if CONFIG["OS_TARGET"] == "OpenBSD": 147 148 DEFINES["USE_GLIB"] = "1" 149 DEFINES["USE_OZONE"] = "1" 150 DEFINES["WEBRTC_BSD"] = True 151 DEFINES["WEBRTC_POSIX"] = True 152 DEFINES["_FILE_OFFSET_BITS"] = "64" 153 DEFINES["_LARGEFILE64_SOURCE"] = True 154 DEFINES["_LARGEFILE_SOURCE"] = True 155 DEFINES["__STDC_CONSTANT_MACROS"] = True 156 DEFINES["__STDC_FORMAT_MACROS"] = True 157 158 if CONFIG["OS_TARGET"] == "WINNT": 159 160 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 161 DEFINES["NOMINMAX"] = True 162 DEFINES["NTDDI_VERSION"] = "0x0A000000" 163 DEFINES["PSAPI_VERSION"] = "2" 164 DEFINES["RTC_ENABLE_WIN_WGC"] = True 165 DEFINES["UNICODE"] = True 166 DEFINES["USE_AURA"] = "1" 167 DEFINES["WEBRTC_WIN"] = True 168 DEFINES["WIN32"] = True 169 DEFINES["WIN32_LEAN_AND_MEAN"] = True 170 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 171 DEFINES["WINVER"] = "0x0A00" 172 DEFINES["_ATL_NO_OPENGL"] = True 173 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True 174 DEFINES["_CRT_RAND_S"] = True 175 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 176 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 177 DEFINES["_HAS_EXCEPTIONS"] = "0" 178 DEFINES["_HAS_NODISCARD"] = True 179 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 180 DEFINES["_SECURE_ATL"] = True 181 DEFINES["_UNICODE"] = True 182 DEFINES["_WIN32_WINNT"] = "0x0A00" 183 DEFINES["_WINDOWS"] = True 184 DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True 185 DEFINES["__STD_C"] = True 186 187 OS_LIBS += [ 188 "crypt32", 189 "iphlpapi", 190 "secur32", 191 "winmm" 192 ] 193 194 if CONFIG["TARGET_CPU"] == "aarch64": 195 196 DEFINES["WEBRTC_ARCH_ARM64"] = True 197 DEFINES["WEBRTC_HAS_NEON"] = True 198 DEFINES["__ARM_NEON__"] = "1" 199 200 if CONFIG["TARGET_CPU"] == "arm": 201 202 CXXFLAGS += [ 203 "-mfpu=neon" 204 ] 205 206 DEFINES["WEBRTC_ARCH_ARM"] = True 207 DEFINES["WEBRTC_ARCH_ARM_V7"] = True 208 DEFINES["WEBRTC_HAS_NEON"] = True 209 210 if CONFIG["TARGET_CPU"] == "loongarch64": 211 212 DEFINES["_GNU_SOURCE"] = True 213 214 if CONFIG["TARGET_CPU"] == "mips32": 215 216 DEFINES["MIPS32_LE"] = True 217 DEFINES["MIPS_FPU_LE"] = True 218 DEFINES["_GNU_SOURCE"] = True 219 220 if CONFIG["TARGET_CPU"] == "mips64": 221 222 DEFINES["_GNU_SOURCE"] = True 223 224 if CONFIG["TARGET_CPU"] == "x86": 225 226 DEFINES["WEBRTC_ENABLE_AVX2"] = True 227 228 if CONFIG["TARGET_CPU"] == "x86_64": 229 230 DEFINES["WEBRTC_ENABLE_AVX2"] = True 231 232 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 233 234 DEFINES["_DEBUG"] = True 235 236 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 237 238 DEFINES["_DEBUG"] = True 239 240 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 241 242 DEFINES["_DEBUG"] = True 243 244 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 245 246 DEFINES["_DEBUG"] = True 247 248 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 249 250 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 251 252 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": 253 254 CXXFLAGS += [ 255 "-msse2" 256 ] 257 258 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": 259 260 DEFINES["_GNU_SOURCE"] = True 261 262 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": 263 264 DEFINES["_GNU_SOURCE"] = True 265 266 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": 267 268 CXXFLAGS += [ 269 "-msse2" 270 ] 271 272 DEFINES["_GNU_SOURCE"] = True 273 274 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": 275 276 DEFINES["_GNU_SOURCE"] = True 277 278 Library("aec3_gn")