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