moz.build (10159B)
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/modules/rtp_rtcp/source/flexfec_03_header_reader_writer.cc", 38 "/third_party/libwebrtc/modules/rtp_rtcp/source/flexfec_receiver.cc", 39 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtcp_sender.cc", 40 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_format_vp8.cc", 41 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_rtcp_impl2.cc", 42 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_sender_egress.cc", 43 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_sender_video.cc", 44 "/third_party/libwebrtc/modules/rtp_rtcp/source/ulpfec_generator.cc", 45 "/third_party/libwebrtc/modules/rtp_rtcp/source/video_rtp_depacketizer_vp9.cc" 46 ] 47 48 UNIFIED_SOURCES += [ 49 "/third_party/libwebrtc/modules/rtp_rtcp/source/absolute_capture_time_interpolator.cc", 50 "/third_party/libwebrtc/modules/rtp_rtcp/source/absolute_capture_time_sender.cc", 51 "/third_party/libwebrtc/modules/rtp_rtcp/source/active_decode_targets_helper.cc", 52 "/third_party/libwebrtc/modules/rtp_rtcp/source/capture_clock_offset_updater.cc", 53 "/third_party/libwebrtc/modules/rtp_rtcp/source/create_video_rtp_depacketizer.cc", 54 "/third_party/libwebrtc/modules/rtp_rtcp/source/dtmf_queue.cc", 55 "/third_party/libwebrtc/modules/rtp_rtcp/source/fec_private_tables_bursty.cc", 56 "/third_party/libwebrtc/modules/rtp_rtcp/source/fec_private_tables_random.cc", 57 "/third_party/libwebrtc/modules/rtp_rtcp/source/flexfec_header_reader_writer.cc", 58 "/third_party/libwebrtc/modules/rtp_rtcp/source/flexfec_sender.cc", 59 "/third_party/libwebrtc/modules/rtp_rtcp/source/forward_error_correction.cc", 60 "/third_party/libwebrtc/modules/rtp_rtcp/source/forward_error_correction_internal.cc", 61 "/third_party/libwebrtc/modules/rtp_rtcp/source/frame_object.cc", 62 "/third_party/libwebrtc/modules/rtp_rtcp/source/packet_loss_stats.cc", 63 "/third_party/libwebrtc/modules/rtp_rtcp/source/packet_sequencer.cc", 64 "/third_party/libwebrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc", 65 "/third_party/libwebrtc/modules/rtp_rtcp/source/remote_ntp_time_estimator.cc", 66 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtcp_nack_stats.cc", 67 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtcp_receiver.cc", 68 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_descriptor_authentication.cc", 69 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_format.cc", 70 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_format_h264.cc", 71 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_format_video_generic.cc", 72 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_format_vp9.cc", 73 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_header_extension_size.cc", 74 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_packet_history.cc", 75 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_packet_send_info.cc", 76 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_packetizer_av1.cc", 77 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_sender.cc", 78 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_sender_audio.cc", 79 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_sender_video_frame_transformer_delegate.cc", 80 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_sequence_number_map.cc", 81 "/third_party/libwebrtc/modules/rtp_rtcp/source/rtp_video_stream_receiver_frame_transformer_delegate.cc", 82 "/third_party/libwebrtc/modules/rtp_rtcp/source/source_tracker.cc", 83 "/third_party/libwebrtc/modules/rtp_rtcp/source/tmmbr_help.cc", 84 "/third_party/libwebrtc/modules/rtp_rtcp/source/ulpfec_header_reader_writer.cc", 85 "/third_party/libwebrtc/modules/rtp_rtcp/source/ulpfec_receiver.cc", 86 "/third_party/libwebrtc/modules/rtp_rtcp/source/video_rtp_depacketizer.cc", 87 "/third_party/libwebrtc/modules/rtp_rtcp/source/video_rtp_depacketizer_av1.cc", 88 "/third_party/libwebrtc/modules/rtp_rtcp/source/video_rtp_depacketizer_generic.cc", 89 "/third_party/libwebrtc/modules/rtp_rtcp/source/video_rtp_depacketizer_h264.cc", 90 "/third_party/libwebrtc/modules/rtp_rtcp/source/video_rtp_depacketizer_raw.cc", 91 "/third_party/libwebrtc/modules/rtp_rtcp/source/video_rtp_depacketizer_vp8.cc" 92 ] 93 94 if not CONFIG["MOZ_DEBUG"]: 95 96 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 97 DEFINES["NDEBUG"] = True 98 DEFINES["NVALGRIND"] = True 99 100 if CONFIG["MOZ_DEBUG"] == "1": 101 102 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 103 104 if CONFIG["OS_TARGET"] == "Android": 105 106 DEFINES["ANDROID"] = True 107 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" 108 DEFINES["HAVE_SYS_UIO_H"] = True 109 DEFINES["WEBRTC_ANDROID"] = True 110 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 111 DEFINES["WEBRTC_LINUX"] = True 112 DEFINES["WEBRTC_POSIX"] = True 113 DEFINES["_GNU_SOURCE"] = True 114 DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True 115 DEFINES["__STDC_CONSTANT_MACROS"] = True 116 DEFINES["__STDC_FORMAT_MACROS"] = True 117 118 OS_LIBS += [ 119 "GLESv2", 120 "log" 121 ] 122 123 if CONFIG["OS_TARGET"] == "Darwin": 124 125 DEFINES["WEBRTC_MAC"] = True 126 DEFINES["WEBRTC_POSIX"] = True 127 DEFINES["__STDC_CONSTANT_MACROS"] = True 128 DEFINES["__STDC_FORMAT_MACROS"] = True 129 130 if CONFIG["OS_TARGET"] == "Linux": 131 132 DEFINES["USE_AURA"] = "1" 133 DEFINES["USE_GLIB"] = "1" 134 DEFINES["USE_OZONE"] = "1" 135 DEFINES["USE_UDEV"] = True 136 DEFINES["WEBRTC_LINUX"] = True 137 DEFINES["WEBRTC_POSIX"] = True 138 DEFINES["_FILE_OFFSET_BITS"] = "64" 139 DEFINES["_LARGEFILE64_SOURCE"] = True 140 DEFINES["_LARGEFILE_SOURCE"] = True 141 DEFINES["__STDC_CONSTANT_MACROS"] = True 142 DEFINES["__STDC_FORMAT_MACROS"] = True 143 144 if CONFIG["OS_TARGET"] == "OpenBSD": 145 146 DEFINES["USE_GLIB"] = "1" 147 DEFINES["USE_OZONE"] = "1" 148 DEFINES["WEBRTC_BSD"] = True 149 DEFINES["WEBRTC_POSIX"] = True 150 DEFINES["_FILE_OFFSET_BITS"] = "64" 151 DEFINES["_LARGEFILE64_SOURCE"] = True 152 DEFINES["_LARGEFILE_SOURCE"] = True 153 DEFINES["__STDC_CONSTANT_MACROS"] = True 154 DEFINES["__STDC_FORMAT_MACROS"] = True 155 156 if CONFIG["OS_TARGET"] == "WINNT": 157 158 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 159 DEFINES["NOMINMAX"] = True 160 DEFINES["NTDDI_VERSION"] = "0x0A000000" 161 DEFINES["PSAPI_VERSION"] = "2" 162 DEFINES["RTC_ENABLE_WIN_WGC"] = True 163 DEFINES["UNICODE"] = True 164 DEFINES["USE_AURA"] = "1" 165 DEFINES["WEBRTC_WIN"] = True 166 DEFINES["WIN32"] = True 167 DEFINES["WIN32_LEAN_AND_MEAN"] = True 168 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 169 DEFINES["WINVER"] = "0x0A00" 170 DEFINES["_ATL_NO_OPENGL"] = True 171 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True 172 DEFINES["_CRT_RAND_S"] = True 173 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 174 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 175 DEFINES["_HAS_EXCEPTIONS"] = "0" 176 DEFINES["_HAS_NODISCARD"] = True 177 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 178 DEFINES["_SECURE_ATL"] = True 179 DEFINES["_UNICODE"] = True 180 DEFINES["_WIN32_WINNT"] = "0x0A00" 181 DEFINES["_WINDOWS"] = True 182 DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True 183 DEFINES["__STD_C"] = True 184 185 OS_LIBS += [ 186 "crypt32", 187 "iphlpapi", 188 "secur32", 189 "winmm" 190 ] 191 192 if CONFIG["TARGET_CPU"] == "aarch64": 193 194 DEFINES["WEBRTC_ARCH_ARM64"] = True 195 DEFINES["WEBRTC_HAS_NEON"] = True 196 DEFINES["__ARM_NEON__"] = "1" 197 198 if CONFIG["TARGET_CPU"] == "arm": 199 200 CXXFLAGS += [ 201 "-mfpu=neon" 202 ] 203 204 DEFINES["WEBRTC_ARCH_ARM"] = True 205 DEFINES["WEBRTC_ARCH_ARM_V7"] = True 206 DEFINES["WEBRTC_HAS_NEON"] = True 207 208 if CONFIG["TARGET_CPU"] == "loongarch64": 209 210 DEFINES["_GNU_SOURCE"] = True 211 212 if CONFIG["TARGET_CPU"] == "mips32": 213 214 DEFINES["MIPS32_LE"] = True 215 DEFINES["MIPS_FPU_LE"] = True 216 DEFINES["_GNU_SOURCE"] = True 217 218 if CONFIG["TARGET_CPU"] == "mips64": 219 220 DEFINES["_GNU_SOURCE"] = True 221 222 if CONFIG["TARGET_CPU"] == "x86": 223 224 DEFINES["WEBRTC_ENABLE_AVX2"] = True 225 226 if CONFIG["TARGET_CPU"] == "x86_64": 227 228 DEFINES["WEBRTC_ENABLE_AVX2"] = True 229 230 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 231 232 DEFINES["_DEBUG"] = True 233 234 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 235 236 DEFINES["_DEBUG"] = True 237 238 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 239 240 DEFINES["_DEBUG"] = True 241 242 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 243 244 DEFINES["_DEBUG"] = True 245 246 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 247 248 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 249 250 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": 251 252 CXXFLAGS += [ 253 "-msse2" 254 ] 255 256 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": 257 258 DEFINES["_GNU_SOURCE"] = True 259 260 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": 261 262 DEFINES["_GNU_SOURCE"] = True 263 264 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": 265 266 CXXFLAGS += [ 267 "-msse2" 268 ] 269 270 DEFINES["_GNU_SOURCE"] = True 271 272 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": 273 274 DEFINES["_GNU_SOURCE"] = True 275 276 Library("rtp_rtcp_gn")