OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 12 matching lines...) Expand all Loading... |
23 #define OS_ANDROID 1 | 23 #define OS_ANDROID 1 |
24 #elif defined(__APPLE__) | 24 #elif defined(__APPLE__) |
25 #define OS_MACOSX 1 | 25 #define OS_MACOSX 1 |
26 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE | 26 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE |
27 #define OS_IOS 1 | 27 #define OS_IOS 1 |
28 #endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE | 28 #endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE |
29 #elif defined(__native_client__) | 29 #elif defined(__native_client__) |
30 #define OS_NACL 1 | 30 #define OS_NACL 1 |
31 #elif defined(__linux__) | 31 #elif defined(__linux__) |
32 #define OS_LINUX 1 | 32 #define OS_LINUX 1 |
33 // Use TOOLKIT_GTK on linux if TOOLKIT_VIEWS isn't defined. | |
34 #if !defined(TOOLKIT_VIEWS) && defined(USE_X11) && !defined(USE_AURA) | |
35 #define TOOLKIT_GTK | |
36 #endif | |
37 #if defined(__GLIBC__) && !defined(__UCLIBC__) | 33 #if defined(__GLIBC__) && !defined(__UCLIBC__) |
38 // we really are using glibc, not uClibc pretending to be glibc | 34 // we really are using glibc, not uClibc pretending to be glibc |
39 #define LIBC_GLIBC | 35 #define LIBC_GLIBC |
40 #endif | 36 #endif |
41 #elif defined(_WIN32) | 37 #elif defined(_WIN32) |
42 #define OS_WIN 1 | 38 #define OS_WIN 1 |
43 #define TOOLKIT_VIEWS 1 | 39 #define TOOLKIT_VIEWS 1 |
44 #elif defined(__FreeBSD__) | 40 #elif defined(__FreeBSD__) |
45 #define OS_FREEBSD 1 | 41 #define OS_FREEBSD 1 |
46 #define TOOLKIT_GTK | |
47 #elif defined(__OpenBSD__) | 42 #elif defined(__OpenBSD__) |
48 #define OS_OPENBSD 1 | 43 #define OS_OPENBSD 1 |
49 #define TOOLKIT_GTK | |
50 #elif defined(__sun) | 44 #elif defined(__sun) |
51 #define OS_SOLARIS 1 | 45 #define OS_SOLARIS 1 |
52 #define TOOLKIT_GTK | |
53 #elif defined(__QNXNTO__) | 46 #elif defined(__QNXNTO__) |
54 #define OS_QNX 1 | 47 #define OS_QNX 1 |
55 #else | 48 #else |
56 #error Please add support for your platform in build/build_config.h | 49 #error Please add support for your platform in build/build_config.h |
57 #endif | 50 #endif |
58 | 51 |
| 52 // Use TOOLKIT_GTK on X11 if TOOLKIT_VIEWS and USE_AURA aren't defined. |
| 53 #if defined(USE_X11) && !defined(TOOLKIT_VIEWS) && !defined(USE_AURA) && \ |
| 54 !defined(OS_NACL) |
| 55 #define TOOLKIT_GTK |
| 56 #endif |
| 57 |
59 #if defined(USE_OPENSSL) && defined(USE_NSS) | 58 #if defined(USE_OPENSSL) && defined(USE_NSS) |
60 #error Cannot use both OpenSSL and NSS | 59 #error Cannot use both OpenSSL and NSS |
61 #endif | 60 #endif |
62 | 61 |
63 // For access to standard BSD features, use OS_BSD instead of a | 62 // For access to standard BSD features, use OS_BSD instead of a |
64 // more specific macro. | 63 // more specific macro. |
65 #if defined(OS_FREEBSD) || defined(OS_OPENBSD) | 64 #if defined(OS_FREEBSD) || defined(OS_OPENBSD) |
66 #define OS_BSD 1 | 65 #define OS_BSD 1 |
67 #endif | 66 #endif |
68 | 67 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 #if defined(OS_ANDROID) | 152 #if defined(OS_ANDROID) |
154 // The compiler thinks std::string::const_iterator and "const char*" are | 153 // The compiler thinks std::string::const_iterator and "const char*" are |
155 // equivalent types. | 154 // equivalent types. |
156 #define STD_STRING_ITERATOR_IS_CHAR_POINTER | 155 #define STD_STRING_ITERATOR_IS_CHAR_POINTER |
157 // The compiler thinks base::string16::const_iterator and "char16*" are | 156 // The compiler thinks base::string16::const_iterator and "char16*" are |
158 // equivalent types. | 157 // equivalent types. |
159 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER | 158 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER |
160 #endif | 159 #endif |
161 | 160 |
162 #endif // BUILD_BUILD_CONFIG_H_ | 161 #endif // BUILD_BUILD_CONFIG_H_ |
OLD | NEW |