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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // Use NSS for crypto. | 47 // Use NSS for crypto. |
48 #if defined(OS_LINUX) || defined(OS_FREEBSD) | 48 #if defined(OS_LINUX) || defined(OS_FREEBSD) |
49 #define USE_NSS 1 | 49 #define USE_NSS 1 |
50 #endif | 50 #endif |
51 | 51 |
52 // Use X11 (and hence GTK/GDK) | 52 // Use X11 (and hence GTK/GDK) |
53 #if defined(OS_LINUX) || defined(OS_FREEBSD) | 53 #if defined(OS_LINUX) || defined(OS_FREEBSD) |
54 #define USE_X11 1 | 54 #define USE_X11 1 |
55 #endif | 55 #endif |
56 | 56 |
| 57 // Use tcmalloc |
| 58 #if defined(OS_WIN) && ! defined(NO_TCMALLOC) |
| 59 #define USE_TCMALLOC 1 |
| 60 #endif |
| 61 |
57 // Compiler detection. | 62 // Compiler detection. |
58 #if defined(__GNUC__) | 63 #if defined(__GNUC__) |
59 #define COMPILER_GCC 1 | 64 #define COMPILER_GCC 1 |
60 #elif defined(_MSC_VER) | 65 #elif defined(_MSC_VER) |
61 #define COMPILER_MSVC 1 | 66 #define COMPILER_MSVC 1 |
62 #else | 67 #else |
63 #error Please add support for your compiler in build/build_config.h | 68 #error Please add support for your compiler in build/build_config.h |
64 #endif | 69 #endif |
65 | 70 |
66 // Processor architecture detection. For more info on what's defined, see: | 71 // Processor architecture detection. For more info on what's defined, see: |
(...skipping 22 matching lines...) Expand all Loading... |
89 #define WCHAR_T_IS_UTF16 | 94 #define WCHAR_T_IS_UTF16 |
90 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ | 95 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ |
91 defined(__WCHAR_MAX__) && \ | 96 defined(__WCHAR_MAX__) && \ |
92 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) | 97 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) |
93 #define WCHAR_T_IS_UTF32 | 98 #define WCHAR_T_IS_UTF32 |
94 #else | 99 #else |
95 #error Please add support for your compiler in build/build_config.h | 100 #error Please add support for your compiler in build/build_config.h |
96 #endif | 101 #endif |
97 | 102 |
98 #endif // BUILD_BUILD_CONFIG_H_ | 103 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |