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