| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 25 matching lines...) Expand all Loading... |
| 36 #elif defined(__OpenBSD__) | 36 #elif defined(__OpenBSD__) |
| 37 #define OS_OPENBSD 1 | 37 #define OS_OPENBSD 1 |
| 38 #define TOOLKIT_GTK | 38 #define TOOLKIT_GTK |
| 39 #elif defined(__sun) | 39 #elif defined(__sun) |
| 40 #define OS_SOLARIS 1 | 40 #define OS_SOLARIS 1 |
| 41 #define TOOLKIT_GTK | 41 #define TOOLKIT_GTK |
| 42 #else | 42 #else |
| 43 #error Please add support for your platform in build/build_config.h | 43 #error Please add support for your platform in build/build_config.h |
| 44 #endif | 44 #endif |
| 45 | 45 |
| 46 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || \ | |
| 47 defined(OS_SOLARIS) | |
| 48 #define USE_X11 1 // Use X for graphics. | |
| 49 #endif | |
| 50 | |
| 51 #if defined(USE_OPENSSL) && defined(USE_NSS) | 46 #if defined(USE_OPENSSL) && defined(USE_NSS) |
| 52 #error Cannot use both OpenSSL and NSS | 47 #error Cannot use both OpenSSL and NSS |
| 53 #endif | 48 #endif |
| 54 | 49 |
| 50 // For access to standard BSD features, use OS_BSD instead of a |
| 51 // more specific macro. |
| 52 #if defined(OS_FREEBSD) || defined(OS_OPENBSD) |
| 53 #define OS_BSD 1 |
| 54 #endif |
| 55 |
| 55 // For access to standard POSIXish features, use OS_POSIX instead of a | 56 // For access to standard POSIXish features, use OS_POSIX instead of a |
| 56 // more specific macro. | 57 // more specific macro. |
| 57 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ | 58 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ |
| 58 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \ | 59 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \ |
| 59 defined(OS_NACL) | 60 defined(OS_NACL) |
| 60 #define OS_POSIX 1 | 61 #define OS_POSIX 1 |
| 61 #endif | 62 #endif |
| 62 | 63 |
| 64 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ |
| 65 !defined(OS_NACL) |
| 66 #define USE_X11 1 // Use X for graphics. |
| 67 #endif |
| 68 |
| 63 // Use tcmalloc | 69 // Use tcmalloc |
| 64 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC) | 70 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC) |
| 65 #define USE_TCMALLOC 1 | 71 #define USE_TCMALLOC 1 |
| 66 #endif | 72 #endif |
| 67 | 73 |
| 68 // Use heapchecker. | 74 // Use heapchecker. |
| 69 #if defined(OS_LINUX) && !defined(NO_HEAPCHECKER) | 75 #if defined(OS_LINUX) && !defined(NO_HEAPCHECKER) |
| 70 #define USE_HEAPCHECKER 1 | 76 #define USE_HEAPCHECKER 1 |
| 71 #endif | 77 #endif |
| 72 | 78 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 #if defined(OS_ANDROID) | 139 #if defined(OS_ANDROID) |
| 134 // The compiler thinks std::string::const_iterator and "const char*" are | 140 // The compiler thinks std::string::const_iterator and "const char*" are |
| 135 // equivalent types. | 141 // equivalent types. |
| 136 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 142 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
| 137 // The compiler thinks base::string16::const_iterator and "char16*" are | 143 // The compiler thinks base::string16::const_iterator and "char16*" are |
| 138 // equivalent types. | 144 // equivalent types. |
| 139 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 145 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
| 140 #endif | 146 #endif |
| 141 | 147 |
| 142 #endif // BUILD_BUILD_CONFIG_H_ | 148 #endif // BUILD_BUILD_CONFIG_H_ |
| OLD | NEW |