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