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