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