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