| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 29 matching lines...) Expand all Loading... |
| 40 #endif | 40 #endif |
| 41 | 41 |
| 42 // A flag derived from the above flags, used to cover GTK code in | 42 // A flag derived from the above flags, used to cover GTK code in |
| 43 // both TOOLKIT_GTK and TOOLKIT_VIEWS. | 43 // both TOOLKIT_GTK and TOOLKIT_VIEWS. |
| 44 #if defined(TOOLKIT_GTK) || (defined(TOOLKIT_VIEWS) && !defined(OS_WIN)) | 44 #if defined(TOOLKIT_GTK) || (defined(TOOLKIT_VIEWS) && !defined(OS_WIN)) |
| 45 #define TOOLKIT_USES_GTK 1 | 45 #define TOOLKIT_USES_GTK 1 |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || \ | 48 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || \ |
| 49 defined(OS_SOLARIS) | 49 defined(OS_SOLARIS) |
| 50 #define USE_NSS 1 // Use NSS for crypto. | 50 #if !defined(USE_OPENSSL) |
| 51 #define USE_NSS 1 // Default to use NSS for crypto, unless OpenSSL is chosen. |
| 52 #endif |
| 51 #define USE_X11 1 // Use X for graphics. | 53 #define USE_X11 1 // Use X for graphics. |
| 52 #endif | 54 #endif |
| 53 | 55 |
| 56 #if defined(USE_OPENSSL) && defined(USE_NSS) |
| 57 #error Cannot use both OpenSSL and NSS |
| 58 #endif |
| 59 |
| 54 // For access to standard POSIXish features, use OS_POSIX instead of a | 60 // For access to standard POSIXish features, use OS_POSIX instead of a |
| 55 // more specific macro. | 61 // more specific macro. |
| 56 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ | 62 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ |
| 57 defined(OS_OPENBSD) || defined(OS_SOLARIS) | 63 defined(OS_OPENBSD) || defined(OS_SOLARIS) |
| 58 #define OS_POSIX 1 | 64 #define OS_POSIX 1 |
| 59 // Use base::DataPack for name/value pairs. | 65 // Use base::DataPack for name/value pairs. |
| 60 #define USE_BASE_DATA_PACK 1 | 66 #define USE_BASE_DATA_PACK 1 |
| 61 #endif | 67 #endif |
| 62 | 68 |
| 63 // Use tcmalloc | 69 // Use tcmalloc |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to | 119 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to |
| 114 // compile in this mode (in particular, Chrome doesn't). This is intended for | 120 // compile in this mode (in particular, Chrome doesn't). This is intended for |
| 115 // other projects using base who manage their own dependencies and make sure | 121 // other projects using base who manage their own dependencies and make sure |
| 116 // short wchar works for them. | 122 // short wchar works for them. |
| 117 #define WCHAR_T_IS_UTF16 | 123 #define WCHAR_T_IS_UTF16 |
| 118 #else | 124 #else |
| 119 #error Please add support for your compiler in build/build_config.h | 125 #error Please add support for your compiler in build/build_config.h |
| 120 #endif | 126 #endif |
| 121 | 127 |
| 122 #endif // BUILD_BUILD_CONFIG_H_ | 128 #endif // BUILD_BUILD_CONFIG_H_ |
| OLD | NEW |