Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: build/build_config.h

Issue 2195203002: Recognize new Operating System: NetBSD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Recognize new OS type: OS_NETBSD Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI 8 // OS_NACL (NACL_SFI or NACL_NONSFI) / OS_NACL_SFI / OS_NACL_NONSFI
9 // Compiler: 9 // Compiler:
10 // COMPILER_MSVC / COMPILER_GCC 10 // COMPILER_MSVC / COMPILER_GCC
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include <unistd.h> 44 #include <unistd.h>
45 #if defined(__GLIBC__) && !defined(__UCLIBC__) 45 #if defined(__GLIBC__) && !defined(__UCLIBC__)
46 // we really are using glibc, not uClibc pretending to be glibc 46 // we really are using glibc, not uClibc pretending to be glibc
47 #define LIBC_GLIBC 1 47 #define LIBC_GLIBC 1
48 #endif 48 #endif
49 #elif defined(_WIN32) 49 #elif defined(_WIN32)
50 #define OS_WIN 1 50 #define OS_WIN 1
51 #define TOOLKIT_VIEWS 1 51 #define TOOLKIT_VIEWS 1
52 #elif defined(__FreeBSD__) 52 #elif defined(__FreeBSD__)
53 #define OS_FREEBSD 1 53 #define OS_FREEBSD 1
54 #elif defined(__NetBSD__)
55 #define OS_NETBSD 1
54 #elif defined(__OpenBSD__) 56 #elif defined(__OpenBSD__)
55 #define OS_OPENBSD 1 57 #define OS_OPENBSD 1
56 #elif defined(__sun) 58 #elif defined(__sun)
57 #define OS_SOLARIS 1 59 #define OS_SOLARIS 1
58 #elif defined(__QNXNTO__) 60 #elif defined(__QNXNTO__)
59 #define OS_QNX 1 61 #define OS_QNX 1
60 #else 62 #else
61 #error Please add support for your platform in build/build_config.h 63 #error Please add support for your platform in build/build_config.h
62 #endif 64 #endif
63 65
64 #if defined(USE_OPENSSL_CERTS) && defined(USE_NSS_CERTS) 66 #if defined(USE_OPENSSL_CERTS) && defined(USE_NSS_CERTS)
65 #error Cannot use both OpenSSL and NSS for certificates 67 #error Cannot use both OpenSSL and NSS for certificates
66 #endif 68 #endif
67 69
68 // For access to standard BSD features, use OS_BSD instead of a 70 // For access to standard BSD features, use OS_BSD instead of a
69 // more specific macro. 71 // more specific macro.
70 #if defined(OS_FREEBSD) || defined(OS_OPENBSD) 72 #if defined(OS_FREEBSD) || defined(OS_NETBSD) || defined(OS_OPENBSD)
71 #define OS_BSD 1 73 #define OS_BSD 1
72 #endif 74 #endif
73 75
74 // For access to standard POSIXish features, use OS_POSIX instead of a 76 // For access to standard POSIXish features, use OS_POSIX instead of a
75 // more specific macro. 77 // more specific macro.
76 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ 78 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
77 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \ 79 defined(OS_NETBSD) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \
78 defined(OS_NACL) || defined(OS_QNX) 80 defined(OS_ANDROID) || defined(OS_OPENBSD) || defined(OS_SOLARIS) || \
81 defined(OS_ANDROID) || defined(OS_NACL) || defined(OS_QNX)
79 #define OS_POSIX 1 82 #define OS_POSIX 1
80 #endif 83 #endif
81 84
82 // Use tcmalloc 85 // Use tcmalloc
83 #if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID)) && \ 86 #if (defined(OS_WIN) || defined(OS_LINUX) || defined(OS_ANDROID)) && \
84 !defined(NO_TCMALLOC) 87 !defined(NO_TCMALLOC)
85 #define USE_TCMALLOC 1 88 #define USE_TCMALLOC 1
86 #endif 89 #endif
87 90
88 // Compiler detection. 91 // Compiler detection.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 #if defined(OS_ANDROID) 162 #if defined(OS_ANDROID)
160 // The compiler thinks std::string::const_iterator and "const char*" are 163 // The compiler thinks std::string::const_iterator and "const char*" are
161 // equivalent types. 164 // equivalent types.
162 #define STD_STRING_ITERATOR_IS_CHAR_POINTER 165 #define STD_STRING_ITERATOR_IS_CHAR_POINTER
163 // The compiler thinks base::string16::const_iterator and "char16*" are 166 // The compiler thinks base::string16::const_iterator and "char16*" are
164 // equivalent types. 167 // equivalent types.
165 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER 168 #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
166 #endif 169 #endif
167 170
168 #endif // BUILD_BUILD_CONFIG_H_ 171 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698