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