Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: build/build_config.h

Issue 2807463004: GN: aix port along with linux_s390x, linux_ppc64 and linux_ppc64le support. (Closed)
Patch Set: removed the changes from //base/BUILD.gn Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/trace_event/process_memory_dump.cc ('k') | tools/gn/args.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file adds defines about the platform we're currently building on. 5 // This file adds defines about the platform we're currently building on.
6 // Operating System: 6 // Operating System:
7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) / 7 // OS_WIN / OS_MACOSX / OS_LINUX / OS_POSIX (MACOSX or LINUX) /
8 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI 8 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI
9 // OS_CHROMEOS is set by the build system 9 // OS_CHROMEOS is set by the build system
10 // Compiler: 10 // Compiler:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #elif defined(__FreeBSD__) 52 #elif defined(__FreeBSD__)
53 #define OS_FREEBSD 1 53 #define OS_FREEBSD 1
54 #elif defined(__NetBSD__) 54 #elif defined(__NetBSD__)
55 #define OS_NETBSD 1 55 #define OS_NETBSD 1
56 #elif defined(__OpenBSD__) 56 #elif defined(__OpenBSD__)
57 #define OS_OPENBSD 1 57 #define OS_OPENBSD 1
58 #elif defined(__sun) 58 #elif defined(__sun)
59 #define OS_SOLARIS 1 59 #define OS_SOLARIS 1
60 #elif defined(__QNXNTO__) 60 #elif defined(__QNXNTO__)
61 #define OS_QNX 1 61 #define OS_QNX 1
62 #elif defined(_AIX)
63 #define OS_AIX 1
62 #else 64 #else
63 #error Please add support for your platform in build/build_config.h 65 #error Please add support for your platform in build/build_config.h
64 #endif 66 #endif
65 67
66 #if defined(USE_OPENSSL_CERTS) && defined(USE_NSS_CERTS) 68 #if defined(USE_OPENSSL_CERTS) && defined(USE_NSS_CERTS)
67 #error Cannot use both OpenSSL and NSS for certificates 69 #error Cannot use both OpenSSL and NSS for certificates
68 #endif 70 #endif
69 71
70 // For access to standard BSD features, use OS_BSD instead of a 72 // For access to standard BSD features, use OS_BSD instead of a
71 // more specific macro. 73 // more specific macro.
72 #if defined(OS_FREEBSD) || defined(OS_NETBSD) || defined(OS_OPENBSD) 74 #if defined(OS_FREEBSD) || defined(OS_NETBSD) || defined(OS_OPENBSD)
73 #define OS_BSD 1 75 #define OS_BSD 1
74 #endif 76 #endif
75 77
76 // For access to standard POSIXish features, use OS_POSIX instead of a 78 // For access to standard POSIXish features, use OS_POSIX instead of a
77 // more specific macro. 79 // more specific macro.
78 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ 80 #if defined(OS_AIX) || defined(OS_ANDROID) || defined(OS_FREEBSD) || \
79 defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \ 81 defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_NACL) || \
80 defined(OS_ANDROID) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \ 82 defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_QNX) || \
81 defined(OS_ANDROID) || defined(OS_NACL) || defined(OS_QNX) 83 defined(OS_SOLARIS)
82 #define OS_POSIX 1 84 #define OS_POSIX 1
83 #endif 85 #endif
84 86
85 // Use tcmalloc 87 // Use tcmalloc
86 #if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID)) && \ 88 #if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID)) && \
87 !defined(NO_TCMALLOC) 89 !defined(NO_TCMALLOC)
88 #define USE_TCMALLOC 1 90 #define USE_TCMALLOC 1
89 #endif 91 #endif
90 92
91 // Compiler detection. 93 // Compiler detection.
(...skipping 22 matching lines...) Expand all
114 #elif defined(__s390x__) 116 #elif defined(__s390x__)
115 #define ARCH_CPU_S390_FAMILY 1 117 #define ARCH_CPU_S390_FAMILY 1
116 #define ARCH_CPU_S390X 1 118 #define ARCH_CPU_S390X 1
117 #define ARCH_CPU_64_BITS 1 119 #define ARCH_CPU_64_BITS 1
118 #define ARCH_CPU_BIG_ENDIAN 1 120 #define ARCH_CPU_BIG_ENDIAN 1
119 #elif defined(__s390__) 121 #elif defined(__s390__)
120 #define ARCH_CPU_S390_FAMILY 1 122 #define ARCH_CPU_S390_FAMILY 1
121 #define ARCH_CPU_S390 1 123 #define ARCH_CPU_S390 1
122 #define ARCH_CPU_31_BITS 1 124 #define ARCH_CPU_31_BITS 1
123 #define ARCH_CPU_BIG_ENDIAN 1 125 #define ARCH_CPU_BIG_ENDIAN 1
124 #elif defined(__PPC64__) && defined(__BIG_ENDIAN__) 126 #elif (defined(__PPC64__) || defined(__PPC__)) && defined(__BIG_ENDIAN__)
125 #define ARCH_CPU_PPC64_FAMILY 1 127 #define ARCH_CPU_PPC64_FAMILY 1
126 #define ARCH_CPU_PPC64 1 128 #define ARCH_CPU_PPC64 1
127 #define ARCH_CPU_64_BITS 1 129 #define ARCH_CPU_64_BITS 1
128 #define ARCH_CPU_BIG_ENDIAN 1 130 #define ARCH_CPU_BIG_ENDIAN 1
129 #elif defined(__PPC64__) && defined(__LITTLE_ENDIAN__) 131 #elif defined(__PPC64__)
130 #define ARCH_CPU_PPC64_FAMILY 1 132 #define ARCH_CPU_PPC64_FAMILY 1
131 #define ARCH_CPU_PPC64 1 133 #define ARCH_CPU_PPC64 1
132 #define ARCH_CPU_64_BITS 1 134 #define ARCH_CPU_64_BITS 1
133 #define ARCH_CPU_LITTLE_ENDIAN 1 135 #define ARCH_CPU_LITTLE_ENDIAN 1
134 #elif defined(__PPC__)
135 #define ARCH_CPU_PPC_FAMILY 1
136 #define ARCH_CPU_PPC 1
137 #define ARCH_CPU_32_BITS 1
138 #define ARCH_CPU_BIG_ENDIAN 1
139 #elif defined(__ARMEL__) 136 #elif defined(__ARMEL__)
140 #define ARCH_CPU_ARM_FAMILY 1 137 #define ARCH_CPU_ARM_FAMILY 1
141 #define ARCH_CPU_ARMEL 1 138 #define ARCH_CPU_ARMEL 1
142 #define ARCH_CPU_32_BITS 1 139 #define ARCH_CPU_32_BITS 1
143 #define ARCH_CPU_LITTLE_ENDIAN 1 140 #define ARCH_CPU_LITTLE_ENDIAN 1
144 #elif defined(__aarch64__) 141 #elif defined(__aarch64__)
145 #define ARCH_CPU_ARM_FAMILY 1 142 #define ARCH_CPU_ARM_FAMILY 1
146 #define ARCH_CPU_ARM64 1 143 #define ARCH_CPU_ARM64 1
147 #define ARCH_CPU_64_BITS 1 144 #define ARCH_CPU_64_BITS 1
148 #define ARCH_CPU_LITTLE_ENDIAN 1 145 #define ARCH_CPU_LITTLE_ENDIAN 1
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 #if defined(OS_ANDROID) 184 #if defined(OS_ANDROID)
188 // The compiler thinks std::string::const_iterator and "const char*" are 185 // The compiler thinks std::string::const_iterator and "const char*" are
189 // equivalent types. 186 // equivalent types.
190 #define STD_STRING_ITERATOR_IS_CHAR_POINTER 187 #define STD_STRING_ITERATOR_IS_CHAR_POINTER
191 // The compiler thinks base::string16::const_iterator and "char16*" are 188 // The compiler thinks base::string16::const_iterator and "char16*" are
192 // equivalent types. 189 // equivalent types.
193 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER 190 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
194 #endif 191 #endif
195 192
196 #endif // BUILD_BUILD_CONFIG_H_ 193 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_dump.cc ('k') | tools/gn/args.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698