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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ | 64 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) && \ |
65 !defined(OS_NACL) | 65 !defined(OS_NACL) |
66 #define USE_X11 1 // Use X for graphics. | 66 #define USE_X11 1 // Use X for graphics. |
67 #endif | 67 #endif |
68 | 68 |
69 // Use tcmalloc | 69 // Use tcmalloc |
70 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC) | 70 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC) |
71 #define USE_TCMALLOC 1 | 71 #define USE_TCMALLOC 1 |
72 #endif | 72 #endif |
73 | 73 |
74 // Use heapchecker. | |
75 #if defined(OS_LINUX) && !defined(NO_HEAPCHECKER) | |
76 #define USE_HEAPCHECKER 1 | |
77 #endif | |
78 | |
79 // Compiler detection. | 74 // Compiler detection. |
80 #if defined(__GNUC__) | 75 #if defined(__GNUC__) |
81 #define COMPILER_GCC 1 | 76 #define COMPILER_GCC 1 |
82 #elif defined(_MSC_VER) | 77 #elif defined(_MSC_VER) |
83 #define COMPILER_MSVC 1 | 78 #define COMPILER_MSVC 1 |
84 #else | 79 #else |
85 #error Please add support for your compiler in build/build_config.h | 80 #error Please add support for your compiler in build/build_config.h |
86 #endif | 81 #endif |
87 | 82 |
88 // Processor architecture detection. For more info on what's defined, see: | 83 // Processor architecture detection. For more info on what's defined, see: |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 #if defined(OS_ANDROID) | 134 #if defined(OS_ANDROID) |
140 // The compiler thinks std::string::const_iterator and "const char*" are | 135 // The compiler thinks std::string::const_iterator and "const char*" are |
141 // equivalent types. | 136 // equivalent types. |
142 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 137 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
143 // The compiler thinks base::string16::const_iterator and "char16*" are | 138 // The compiler thinks base::string16::const_iterator and "char16*" are |
144 // equivalent types. | 139 // equivalent types. |
145 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 140 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
146 #endif | 141 #endif |
147 | 142 |
148 #endif // BUILD_BUILD_CONFIG_H_ | 143 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |