moz.build (4354B)
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/time.cc" 27 ] 28 29 UNIFIED_SOURCES += [ 30 "/third_party/abseil-cpp/absl/time/civil_time.cc", 31 "/third_party/abseil-cpp/absl/time/clock.cc", 32 "/third_party/abseil-cpp/absl/time/duration.cc", 33 "/third_party/abseil-cpp/absl/time/format.cc" 34 ] 35 36 if not CONFIG["MOZ_DEBUG"]: 37 38 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0" 39 DEFINES["NDEBUG"] = True 40 DEFINES["NVALGRIND"] = True 41 42 if CONFIG["MOZ_DEBUG"] == "1": 43 44 DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1" 45 46 if CONFIG["OS_TARGET"] == "Android": 47 48 DEFINES["ANDROID"] = True 49 DEFINES["ANDROID_NDK_VERSION_ROLL"] = "r27_1" 50 DEFINES["HAVE_SYS_UIO_H"] = True 51 DEFINES["_GNU_SOURCE"] = True 52 DEFINES["__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__"] = True 53 54 if CONFIG["OS_TARGET"] == "Linux": 55 56 DEFINES["USE_AURA"] = "1" 57 DEFINES["USE_GLIB"] = "1" 58 DEFINES["USE_OZONE"] = "1" 59 DEFINES["USE_UDEV"] = True 60 DEFINES["_FILE_OFFSET_BITS"] = "64" 61 DEFINES["_LARGEFILE64_SOURCE"] = True 62 DEFINES["_LARGEFILE_SOURCE"] = True 63 64 if CONFIG["OS_TARGET"] == "OpenBSD": 65 66 DEFINES["USE_GLIB"] = "1" 67 DEFINES["USE_OZONE"] = "1" 68 DEFINES["_FILE_OFFSET_BITS"] = "64" 69 DEFINES["_LARGEFILE64_SOURCE"] = True 70 DEFINES["_LARGEFILE_SOURCE"] = True 71 72 if CONFIG["OS_TARGET"] == "WINNT": 73 74 DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True 75 DEFINES["NOMINMAX"] = True 76 DEFINES["NTDDI_VERSION"] = "0x0A000000" 77 DEFINES["PSAPI_VERSION"] = "2" 78 DEFINES["UNICODE"] = True 79 DEFINES["USE_AURA"] = "1" 80 DEFINES["WIN32"] = True 81 DEFINES["WIN32_LEAN_AND_MEAN"] = True 82 DEFINES["WINAPI_FAMILY"] = "WINAPI_FAMILY_DESKTOP_APP" 83 DEFINES["WINVER"] = "0x0A00" 84 DEFINES["_ATL_NO_OPENGL"] = True 85 DEFINES["_CRT_NONSTDC_NO_WARNINGS"] = True 86 DEFINES["_CRT_RAND_S"] = True 87 DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True 88 DEFINES["_ENABLE_EXTENDED_ALIGNED_STORAGE"] = True 89 DEFINES["_HAS_EXCEPTIONS"] = "0" 90 DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True 91 DEFINES["_SECURE_ATL"] = True 92 DEFINES["_UNICODE"] = True 93 DEFINES["_WIN32_WINNT"] = "0x0A00" 94 DEFINES["_WINDOWS"] = True 95 DEFINES["_WINSOCK_DEPRECATED_NO_WARNINGS"] = True 96 DEFINES["__STD_C"] = True 97 98 if CONFIG["TARGET_CPU"] == "aarch64": 99 100 DEFINES["__ARM_NEON__"] = "1" 101 102 if CONFIG["TARGET_CPU"] == "arm": 103 104 CXXFLAGS += [ 105 "-mfpu=neon" 106 ] 107 108 if CONFIG["TARGET_CPU"] == "loongarch64": 109 110 DEFINES["_GNU_SOURCE"] = True 111 112 if CONFIG["TARGET_CPU"] == "mips32": 113 114 DEFINES["_GNU_SOURCE"] = True 115 116 if CONFIG["TARGET_CPU"] == "mips64": 117 118 DEFINES["_GNU_SOURCE"] = True 119 120 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Android": 121 122 DEFINES["_DEBUG"] = True 123 124 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Darwin": 125 126 DEFINES["_DEBUG"] = True 127 128 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "Linux": 129 130 DEFINES["_DEBUG"] = True 131 132 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "OpenBSD": 133 134 DEFINES["_DEBUG"] = True 135 136 if CONFIG["MOZ_DEBUG"] == "1" and CONFIG["OS_TARGET"] == "WINNT": 137 138 DEFINES["_HAS_ITERATOR_DEBUGGING"] = "0" 139 140 if CONFIG["OS_TARGET"] == "Android" and CONFIG["TARGET_CPU"] == "x86": 141 142 CXXFLAGS += [ 143 "-msse2" 144 ] 145 146 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "aarch64": 147 148 DEFINES["_GNU_SOURCE"] = True 149 150 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "arm": 151 152 DEFINES["_GNU_SOURCE"] = True 153 154 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86": 155 156 CXXFLAGS += [ 157 "-msse2" 158 ] 159 160 DEFINES["_GNU_SOURCE"] = True 161 162 if CONFIG["OS_TARGET"] == "Linux" and CONFIG["TARGET_CPU"] == "x86_64": 163 164 DEFINES["_GNU_SOURCE"] = True 165 166 Library("time_gn")