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 9COMPILE_FLAGS["OS_INCLUDES"] = [] 10AllowCompilerWarnings() 11 12CXXFLAGS += [ 13 "-mavx2", 14 "-mfma" 15] 16 17DEFINES["ABSL_ALLOCATOR_NOTHROW"] = "1" 18DEFINES["RTC_ENABLE_VP9"] = True 19DEFINES["WEBRTC_APM_DEBUG_DUMP"] = "0" 20DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0" 21DEFINES["WEBRTC_LIBRARY_IMPL"] = True 22DEFINES["WEBRTC_MOZILLA_BUILD"] = True 23DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0" 24 25FINAL_LIBRARY = "webrtc" 26 27 28LOCAL_INCLUDES += [ 29 "!/ipc/ipdl/_ipdlheaders", 30 "/ipc/chromium/src", 31 "/third_party/libwebrtc/", 32 "/third_party/libwebrtc/third_party/abseil-cpp/", 33 "/tools/profiler/public" 34] 35 36UNIFIED_SOURCES += [ 37 "/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc", 38 "/third_party/libwebrtc/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc", 39 "/third_party/libwebrtc/modules/audio_processing/aec3/fft_data_avx2.cc", 40 "/third_party/libwebrtc/modules/audio_processing/aec3/matched_filter_avx2.cc", 41 "/third_party/libwebrtc/modules/audio_processing/aec3/vector_math_avx2.cc" 42] 43 44if not CONFIG["MOZ_DEBUG"]: 45 46 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 47 DEFINES["NDEBUG"] = True 48 DEFINES["NVALGRIND"] = True 49 50if CONFIG["MOZ_DEBUG"] == "1": 51 52 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 53 54if CONFIG["OS_TARGET"] == "Android": 55 56 DEFINES["ANDROID"] = True 57 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r20_1" 58 DEFINES["HAVE_SYS_UIO_H"] = True 59 DEFINES["WEBRTC_ANDROID"] = True 60 DEFINES["WEBRTC_ANDROID_OPENSLES"] = True 61 DEFINES["WEBRTC_LINUX"] = True 62 DEFINES["WEBRTC_POSIX"] = True 63 DEFINES["_GNU_SOURCE"] = True 64 DEFINES["__STDC_CONSTANT_MACROS"] = True 65 DEFINES["__STDC_FORMAT_MACROS"] = True 66 67 OS_LIBS += [ 68 "log" 69 ] 70 71if CONFIG["OS_TARGET"] == "Darwin": 72 73 DEFINES["WEBRTC_MAC"] = True 74 DEFINES["WEBRTC_POSIX"] = True 75 DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True 76 DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" 77 DEFINES["__STDC_CONSTANT_MACROS"] = True 78 DEFINES["__STDC_FORMAT_MACROS"] = True 79 80if CONFIG["OS_TARGET"] == "FreeBSD": 81 82 DEFINES["USE_GLIB"] = "1" 83 DEFINES["WEBRTC_BSD"] = True 84 DEFINES["WEBRTC_POSIX"] = True 85 DEFINES["_FILE_OFFSET_BITS"] = "64" 86 DEFINES["_LARGEFILE64_SOURCE"] = True 87 DEFINES["_LARGEFILE_SOURCE"] = True 88 DEFINES["__STDC_CONSTANT_MACROS"] = True 89 DEFINES["__STDC_FORMAT_MACROS"] = True 90 91if CONFIG["OS_TARGET"] == "Linux": 92 93 DEFINES["USE_AURA"] = "1" 94 DEFINES["USE_GLIB"] = "1" 95 DEFINES["USE_NSS_CERTS"] = "1" 96 DEFINES["USE_OZONE"] = "1" 97 DEFINES["USE_UDEV"] = True 98 DEFINES["USE_X11"] = "1" 99 DEFINES["WEBRTC_LINUX"] = True 100 DEFINES["WEBRTC_POSIX"] = True 101 DEFINES["_FILE_OFFSET_BITS"] = "64" 102 DEFINES["_GNU_SOURCE"] = True 103 DEFINES["_LARGEFILE64_SOURCE"] = True 104 DEFINES["_LARGEFILE_SOURCE"] = True 105 DEFINES["__STDC_CONSTANT_MACROS"] = True 106 DEFINES["__STDC_FORMAT_MACROS"] = True 107 108 OS_LIBS += [ 109 "rt" 110 ] 111 112if CONFIG["OS_TARGET"] == "OpenBSD": 113 114 DEFINES["USE_GLIB"] = "1" 115 DEFINES["WEBRTC_BSD"] = True 116 DEFINES["WEBRTC_POSIX"] = True 117 DEFINES["_FILE_OFFSET_BITS"] = "64" 118 DEFINES["_LARGEFILE64_SOURCE"] = True 119 DEFINES["_LARGEFILE_SOURCE"] = True 120 DEFINES["__STDC_CONSTANT_MACROS"] = True 121 DEFINES["__STDC_FORMAT_MACROS"] = True 122 123if CONFIG["OS_TARGET"] == "WINNT": 124 125 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 126 DEFINES["NOMINMAX"] = True 127 DEFINES["NTDDI_VERSION"] = "0x0A000000" 128 DEFINES["PSAPI_VERSION"] = "2" 129 DEFINES["UNICODE"] = True 130 DEFINES["USE_AURA"] = "1" 131 DEFINES["WEBRTC_WIN"] = True 132 DEFINES["WIN32"] = True 133 DEFINES["WIN32_LEAN_AND_MEAN"] = True 134 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 135 DEFINES["WINVER"] = "0x0A00" 136 DEFINES["_ATL_NO_OPENGL"] = True 137 DEFINES["_CRT_RAND_S"] = True 138 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 139 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 140 DEFINES["_HAS_EXCEPTIONS"] = "0" 141 DEFINES["_HAS_NODISCARD"] = True 142 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 143 DEFINES["_SECURE_ATL"] = True 144 DEFINES["_UNICODE"] = True 145 DEFINES["_WIN32_WINNT"] = "0x0A00" 146 DEFINES["_WINDOWS"] = True 147 DEFINES["__STD_C"] = True 148 149 OS_LIBS += [ 150 "crypt32", 151 "iphlpapi", 152 "secur32", 153 "winmm" 154 ] 155 156if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Android": 157 158 DEFINES["_FORTIFY_SOURCE"] = "2" 159 160if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin": 161 162 DEFINES["_FORTIFY_SOURCE"] = "2" 163 164if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD": 165 166 DEFINES["_FORTIFY_SOURCE"] = "2" 167 168if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Linux": 169 170 DEFINES["_FORTIFY_SOURCE"] = "2" 171 172if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD": 173 174 DEFINES["_FORTIFY_SOURCE"] = "2" 175 176if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 177 178 DEFINES["_DEBUG"] = True 179 180if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 181 182 DEFINES["_DEBUG"] = True 183 184if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD": 185 186 DEFINES["_DEBUG"] = True 187 188if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 189 190 DEFINES["_DEBUG"] = True 191 192if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 193 194 DEFINES["_DEBUG"] = True 195 196if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 197 198 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 199 200if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": 201 202 CXXFLAGS += [ 203 "-msse2" 204 ] 205 206 OS_LIBS += [ 207 "android_support" 208 ] 209 210if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD": 211 212 CXXFLAGS += [ 213 "-msse2" 214 ] 215 216if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": 217 218 CXXFLAGS += [ 219 "-msse2" 220 ] 221 222 DEFINES["CR_SYSROOT_HASH"] = "d967bcef40477dbc39acef141ff22bf73f3e7cdb" 223 224if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": 225 226 DEFINES["CR_SYSROOT_HASH"] = "5f64b417e1018dcf8fcc81dc2714e0f264b9b911" 227 228Library("aec3_avx2_gn") 229