| 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 11 matching lines...) Expand all Loading... |
| 22 // Use TOOLKIT_GTK on linux if TOOLKIT_VIEWS isn't defined. | 22 // Use TOOLKIT_GTK on linux if TOOLKIT_VIEWS isn't defined. |
| 23 #if !defined(TOOLKIT_VIEWS) | 23 #if !defined(TOOLKIT_VIEWS) |
| 24 #define TOOLKIT_GTK | 24 #define TOOLKIT_GTK |
| 25 #endif | 25 #endif |
| 26 #elif defined(_WIN32) | 26 #elif defined(_WIN32) |
| 27 #define OS_WIN 1 | 27 #define OS_WIN 1 |
| 28 #define TOOLKIT_VIEWS 1 | 28 #define TOOLKIT_VIEWS 1 |
| 29 #elif defined(__FreeBSD__) | 29 #elif defined(__FreeBSD__) |
| 30 #define OS_FREEBSD 1 | 30 #define OS_FREEBSD 1 |
| 31 #define TOOLKIT_GTK | 31 #define TOOLKIT_GTK |
| 32 #elif defined(__OpenBSD__) |
| 33 #define OS_OPENBSD 1 |
| 34 #define TOOLKIT_GTK |
| 32 #else | 35 #else |
| 33 #error Please add support for your platform in build/build_config.h | 36 #error Please add support for your platform in build/build_config.h |
| 34 #endif | 37 #endif |
| 35 | 38 |
| 39 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) |
| 40 #define USE_NSS 1 // Use NSS for crypto. |
| 41 #define USE_X11 1 // Use X for graphics. |
| 42 #endif |
| 43 |
| 36 // For access to standard POSIXish features, use OS_POSIX instead of a | 44 // For access to standard POSIXish features, use OS_POSIX instead of a |
| 37 // more specific macro. | 45 // more specific macro. |
| 38 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) | 46 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) |
| 39 #define OS_POSIX 1 | 47 #define OS_POSIX 1 |
| 40 #endif | 48 #endif |
| 41 | 49 |
| 42 // Use base::DataPack for name/value pairs. | 50 // Use base::DataPack for name/value pairs. |
| 43 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) | 51 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) |
| 44 #define USE_BASE_DATA_PACK 1 | 52 #define USE_BASE_DATA_PACK 1 |
| 45 #endif | 53 #endif |
| 46 | 54 |
| 47 // Use NSS for crypto. | |
| 48 #if defined(OS_LINUX) || defined(OS_FREEBSD) | |
| 49 #define USE_NSS 1 | |
| 50 #endif | |
| 51 | |
| 52 // Use X11 (and hence GTK/GDK) | |
| 53 #if defined(OS_LINUX) || defined(OS_FREEBSD) | |
| 54 #define USE_X11 1 | |
| 55 #endif | |
| 56 | |
| 57 // Use tcmalloc | 55 // Use tcmalloc |
| 58 #if defined(OS_WIN) && ! defined(NO_TCMALLOC) | 56 #if defined(OS_WIN) && ! defined(NO_TCMALLOC) |
| 59 #define USE_TCMALLOC 1 | 57 #define USE_TCMALLOC 1 |
| 60 #endif | 58 #endif |
| 61 | 59 |
| 62 // Compiler detection. | 60 // Compiler detection. |
| 63 #if defined(__GNUC__) | 61 #if defined(__GNUC__) |
| 64 #define COMPILER_GCC 1 | 62 #define COMPILER_GCC 1 |
| 65 #elif defined(_MSC_VER) | 63 #elif defined(_MSC_VER) |
| 66 #define COMPILER_MSVC 1 | 64 #define COMPILER_MSVC 1 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to | 100 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to |
| 103 // compile in this mode (in particular, Chrome doesn't). This is intended for | 101 // compile in this mode (in particular, Chrome doesn't). This is intended for |
| 104 // other projects using base who manage their own dependencies and make sure | 102 // other projects using base who manage their own dependencies and make sure |
| 105 // short wchar works for them. | 103 // short wchar works for them. |
| 106 #define WCHAR_T_IS_UTF16 | 104 #define WCHAR_T_IS_UTF16 |
| 107 #else | 105 #else |
| 108 #error Please add support for your compiler in build/build_config.h | 106 #error Please add support for your compiler in build/build_config.h |
| 109 #endif | 107 #endif |
| 110 | 108 |
| 111 #endif // BUILD_BUILD_CONFIG_H_ | 109 #endif // BUILD_BUILD_CONFIG_H_ |
| OLD | NEW |