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