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