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