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