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