OLD | NEW |
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 // Compiler: | 8 // Compiler: |
9 // COMPILER_MSVC / COMPILER_GCC | 9 // COMPILER_MSVC / COMPILER_GCC |
10 // Processor: | 10 // Processor: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #define TOOLKIT_VIEWS 1 | 43 #define TOOLKIT_VIEWS 1 |
44 #elif defined(__FreeBSD__) | 44 #elif defined(__FreeBSD__) |
45 #define OS_FREEBSD 1 | 45 #define OS_FREEBSD 1 |
46 #define TOOLKIT_GTK | 46 #define TOOLKIT_GTK |
47 #elif defined(__OpenBSD__) | 47 #elif defined(__OpenBSD__) |
48 #define OS_OPENBSD 1 | 48 #define OS_OPENBSD 1 |
49 #define TOOLKIT_GTK | 49 #define TOOLKIT_GTK |
50 #elif defined(__sun) | 50 #elif defined(__sun) |
51 #define OS_SOLARIS 1 | 51 #define OS_SOLARIS 1 |
52 #define TOOLKIT_GTK | 52 #define TOOLKIT_GTK |
| 53 #elif defined(__QNXNTO__) |
| 54 #define OS_QNX 1 |
53 #else | 55 #else |
54 #error Please add support for your platform in build/build_config.h | 56 #error Please add support for your platform in build/build_config.h |
55 #endif | 57 #endif |
56 | 58 |
57 #if defined(USE_OPENSSL) && defined(USE_NSS) | 59 #if defined(USE_OPENSSL) && defined(USE_NSS) |
58 #error Cannot use both OpenSSL and NSS | 60 #error Cannot use both OpenSSL and NSS |
59 #endif | 61 #endif |
60 | 62 |
61 // For access to standard BSD features, use OS_BSD instead of a | 63 // For access to standard BSD features, use OS_BSD instead of a |
62 // more specific macro. | 64 // more specific macro. |
63 #if defined(OS_FREEBSD) || defined(OS_OPENBSD) | 65 #if defined(OS_FREEBSD) || defined(OS_OPENBSD) |
64 #define OS_BSD 1 | 66 #define OS_BSD 1 |
65 #endif | 67 #endif |
66 | 68 |
67 // For access to standard POSIXish features, use OS_POSIX instead of a | 69 // For access to standard POSIXish features, use OS_POSIX instead of a |
68 // more specific macro. | 70 // more specific macro. |
69 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ | 71 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ |
70 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \ | 72 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \ |
71 defined(OS_NACL) | 73 defined(OS_NACL) || defined(OS_QNX) |
72 #define OS_POSIX 1 | 74 #define OS_POSIX 1 |
73 #endif | 75 #endif |
74 | 76 |
75 // Use tcmalloc | 77 // Use tcmalloc |
76 #if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID)) && \ | 78 #if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID)) && \ |
77 !defined(NO_TCMALLOC) | 79 !defined(NO_TCMALLOC) |
78 #define USE_TCMALLOC 1 | 80 #define USE_TCMALLOC 1 |
79 #endif | 81 #endif |
80 | 82 |
81 // Compiler detection. | 83 // Compiler detection. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 #if defined(OS_ANDROID) | 148 #if defined(OS_ANDROID) |
147 // The compiler thinks std::string::const_iterator and "const char*" are | 149 // The compiler thinks std::string::const_iterator and "const char*" are |
148 // equivalent types. | 150 // equivalent types. |
149 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 151 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
150 // The compiler thinks base::string16::const_iterator and "char16*" are | 152 // The compiler thinks base::string16::const_iterator and "char16*" are |
151 // equivalent types. | 153 // equivalent types. |
152 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 154 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
153 #endif | 155 #endif |
154 | 156 |
155 #endif // BUILD_BUILD_CONFIG_H_ | 157 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |