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" 13 14FINAL_LIBRARY = "webrtc" 15 16 17LOCAL_INCLUDES += [ 18 "!/ipc/ipdl/_ipdlheaders", 19 "/ipc/chromium/src", 20 "/third_party/libwebrtc/", 21 "/third_party/libwebrtc/third_party/abseil-cpp/", 22 "/tools/profiler/public" 23] 24 25UNIFIED_SOURCES += [ 26 "/third_party/libwebrtc/third_party/abseil-cpp/absl/numeric/int128.cc" 27] 28 29if not CONFIG["MOZ_DEBUG"]: 30 31 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 32 DEFINES["NDEBUG"] = True 33 DEFINES["NVALGRIND"] = True 34 35if CONFIG["MOZ_DEBUG"] == "1": 36 37 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 38 39if CONFIG["OS_TARGET"] == "Android": 40 41 DEFINES["ANDROID"] = True 42 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r20_1" 43 DEFINES["HAVE_SYS_UIO_H"] = True 44 DEFINES["_GNU_SOURCE"] = True 45 46if CONFIG["OS_TARGET"] == "Darwin": 47 48 DEFINES["_LIBCPP_HAS_NO_ALIGNED_ALLOCATION"] = True 49 DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES"] = "0" 50 51if CONFIG["OS_TARGET"] == "FreeBSD": 52 53 DEFINES["USE_GLIB"] = "1" 54 DEFINES["_FILE_OFFSET_BITS"] = "64" 55 DEFINES["_LARGEFILE64_SOURCE"] = True 56 DEFINES["_LARGEFILE_SOURCE"] = True 57 58if CONFIG["OS_TARGET"] == "Linux": 59 60 DEFINES["USE_AURA"] = "1" 61 DEFINES["USE_GLIB"] = "1" 62 DEFINES["USE_NSS_CERTS"] = "1" 63 DEFINES["USE_OZONE"] = "1" 64 DEFINES["USE_UDEV"] = True 65 DEFINES["USE_X11"] = "1" 66 DEFINES["_FILE_OFFSET_BITS"] = "64" 67 DEFINES["_GNU_SOURCE"] = True 68 DEFINES["_LARGEFILE64_SOURCE"] = True 69 DEFINES["_LARGEFILE_SOURCE"] = True 70 71if CONFIG["OS_TARGET"] == "OpenBSD": 72 73 DEFINES["USE_GLIB"] = "1" 74 DEFINES["_FILE_OFFSET_BITS"] = "64" 75 DEFINES["_LARGEFILE64_SOURCE"] = True 76 DEFINES["_LARGEFILE_SOURCE"] = True 77 78if CONFIG["OS_TARGET"] == "WINNT": 79 80 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 81 DEFINES["NOMINMAX"] = True 82 DEFINES["NTDDI_VERSION"] = "0x0A000000" 83 DEFINES["PSAPI_VERSION"] = "2" 84 DEFINES["UNICODE"] = True 85 DEFINES["USE_AURA"] = "1" 86 DEFINES["WIN32"] = True 87 DEFINES["WIN32_LEAN_AND_MEAN"] = True 88 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 89 DEFINES["WINVER"] = "0x0A00" 90 DEFINES["_ATL_NO_OPENGL"] = True 91 DEFINES["_CRT_NONSTDC_NO_DEPRECATE"] = True 92 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True 93 DEFINES["_CRT_RAND_S"] = True 94 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 95 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 96 DEFINES["_HAS_EXCEPTIONS"] = "0" 97 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 98 DEFINES["_SECURE_ATL"] = True 99 DEFINES["_UNICODE"] = True 100 DEFINES["_WIN32_WINNT"] = "0x0A00" 101 DEFINES["_WINDOWS"] = True 102 DEFINES["__STD_C"] = True 103 104if CONFIG["CPU_ARCH"] == "arm": 105 106 CXXFLAGS += [ 107 "-mfpu=neon" 108 ] 109 110 OS_LIBS += [ 111 "android_support", 112 "unwind" 113 ] 114 115if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 116 117 DEFINES["_DEBUG"] = True 118 119if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 120 121 DEFINES["_DEBUG"] = True 122 123if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "FreeBSD": 124 125 DEFINES["_DEBUG"] = True 126 127if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 128 129 DEFINES["_DEBUG"] = True 130 131if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 132 133 DEFINES["_DEBUG"] = True 134 135if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 136 137 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 138 139if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android": 140 141 CXXFLAGS += [ 142 "-msse2" 143 ] 144 145 OS_LIBS += [ 146 "android_support" 147 ] 148 149if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD": 150 151 CXXFLAGS += [ 152 "-msse2" 153 ] 154 155if CONFIG["CPU_ARCH"] == "aarch64" and CONFIG["OS_TARGET"] == "Linux": 156 157 DEFINES["CR_SYSROOT_HASH"] = "ef67b6ca8fd6e2e51515a243d043d1ea4caf45e6" 158 159if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Linux": 160 161 CXXFLAGS += [ 162 "-msse2" 163 ] 164 165 DEFINES["CR_SYSROOT_HASH"] = "d967bcef40477dbc39acef141ff22bf73f3e7cdb" 166 167if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Linux": 168 169 DEFINES["CR_SYSROOT_HASH"] = "5f64b417e1018dcf8fcc81dc2714e0f264b9b911" 170 171Library("int128_gn") 172