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