moz.build (5401B)
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 CXXFLAGS += [ 13 "-mavx2", 14 "-mfma" 15 ] 16 17 DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" 18 DEFINES["PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII"] = "0" 19 DEFINES["RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY"] = True 20 DEFINES["RTC_ENABLE_VP9"] = True 21 DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "1" 22 DEFINES["WEBRTC_ENABLE_AVX2"] = True 23 DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" 24 DEFINES["WEBRTC_ENCODER_PSNR_STATS"] = True 25 DEFINES["WEBRTC_LIBRARY_IMPL"] = True 26 DEFINES["WEBRTC_MOZILLA_BUILD"] = True 27 DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" 28 DEFINES["WEBRTC_STRICT_FIELD_TRIALS"] = "0" 29 30 FINAL_LIBRARY = "xul" 31 32 33 LOCAL_INCLUDES += [ 34 "!/dist/include/libwebrtc_overrides", 35 "!/ipc/ipdl/_ipdlheaders", 36 "!/third_party/libwebrtc/gen", 37 "/ipc/chromium/src", 38 "/third_party/abseil-cpp/", 39 "/third_party/libwebrtc/", 40 "/tools/profiler/public" 41 ] 42 43 UNIFIED_SOURCES += [ 44 "/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc", 45 "/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc", 46 "/third_party/libwebrtc/modules/audio_processing/aec3/fft_data_avx2.cc", 47 "/third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_avx2.cc", 48 "/third_party/libwebrtc/modules/audio_processing/aec3/vector_math_avx2.cc" 49 ] 50 51 if not CONFIG["MOZ_DEBUG"]: 52 53 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 54 DEFINES["NDEBUG"] = True 55 DEFINES["NVALGRIND"] = True 56 57 if CONFIG["MOZ_DEBUG"] == "1": 58 59 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 60 61 if CONFIG["OS_TARGET"] == "Android": 62 63 DEFINES["ANDROID"] = True 64 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" 65 DEFINES["HAVE_SYS_UIO_H"] = True 66 DEFINES["WEBRTC_ANDROID"] = True 67 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 68 DEFINES["WEBRTC_LINUX"] = True 69 DEFINES["WEBRTC_POSIX"] = True 70 DEFINES["_GNU_SOURCE"] = True 71 DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True 72 DEFINES["__STDC_CONSTANT_MACROS"] = True 73 DEFINES["__STDC_FORMAT_MACROS"] = True 74 75 OS_LIBS += [ 76 "log" 77 ] 78 79 if CONFIG["OS_TARGET"] == "Darwin": 80 81 DEFINES["WEBRTC_MAC"] = True 82 DEFINES["WEBRTC_POSIX"] = True 83 DEFINES["__STDC_CONSTANT_MACROS"] = True 84 DEFINES["__STDC_FORMAT_MACROS"] = True 85 86 if CONFIG["OS_TARGET"] == "Linux": 87 88 DEFINES["USE_AURA"] = "1" 89 DEFINES["USE_GLIB"] = "1" 90 DEFINES["USE_OZONE"] = "1" 91 DEFINES["USE_UDEV"] = True 92 DEFINES["WEBRTC_LINUX"] = True 93 DEFINES["WEBRTC_POSIX"] = True 94 DEFINES["_FILE_OFFSET_BITS"] = "64" 95 DEFINES["_GNU_SOURCE"] = True 96 DEFINES["_LARGEFILE64_SOURCE"] = True 97 DEFINES["_LARGEFILE_SOURCE"] = True 98 DEFINES["__STDC_CONSTANT_MACROS"] = True 99 DEFINES["__STDC_FORMAT_MACROS"] = True 100 101 if CONFIG["OS_TARGET"] == "OpenBSD": 102 103 DEFINES["USE_GLIB"] = "1" 104 DEFINES["USE_OZONE"] = "1" 105 DEFINES["WEBRTC_BSD"] = True 106 DEFINES["WEBRTC_POSIX"] = True 107 DEFINES["_FILE_OFFSET_BITS"] = "64" 108 DEFINES["_LARGEFILE64_SOURCE"] = True 109 DEFINES["_LARGEFILE_SOURCE"] = True 110 DEFINES["__STDC_CONSTANT_MACROS"] = True 111 DEFINES["__STDC_FORMAT_MACROS"] = True 112 113 if CONFIG["OS_TARGET"] == "WINNT": 114 115 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 116 DEFINES["NOMINMAX"] = True 117 DEFINES["NTDDI_VERSION"] = "0x0A000000" 118 DEFINES["PSAPI_VERSION"] = "2" 119 DEFINES["RTC_ENABLE_WIN_WGC"] = True 120 DEFINES["UNICODE"] = True 121 DEFINES["USE_AURA"] = "1" 122 DEFINES["WEBRTC_WIN"] = True 123 DEFINES["WIN32"] = True 124 DEFINES["WIN32_LEAN_AND_MEAN"] = True 125 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 126 DEFINES["WINVER"] = "0x0A00" 127 DEFINES["_ATL_NO_OPENGL"] = True 128 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True 129 DEFINES["_CRT_RAND_S"] = True 130 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 131 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 132 DEFINES["_HAS_EXCEPTIONS"] = "0" 133 DEFINES["_HAS_NODISCARD"] = True 134 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 135 DEFINES["_SECURE_ATL"] = True 136 DEFINES["_UNICODE"] = True 137 DEFINES["_WIN32_WINNT"] = "0x0A00" 138 DEFINES["_WINDOWS"] = True 139 DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True 140 DEFINES["__STD_C"] = True 141 142 OS_LIBS += [ 143 "crypt32", 144 "iphlpapi", 145 "secur32", 146 "winmm" 147 ] 148 149 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 150 151 DEFINES["_DEBUG"] = True 152 153 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 154 155 DEFINES["_DEBUG"] = True 156 157 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 158 159 DEFINES["_DEBUG"] = True 160 161 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 162 163 DEFINES["_DEBUG"] = True 164 165 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 166 167 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 168 169 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": 170 171 CXXFLAGS += [ 172 "-msse2" 173 ] 174 175 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": 176 177 CXXFLAGS += [ 178 "-msse2" 179 ] 180 181 Library("aec3_avx2_gn")