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