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