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

Side by Side Diff: build/build_config.h

Issue 4812002: Bring up IPC in NaCl.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « base/logging.cc ('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) 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:
11 // ARCH_CPU_X86 / ARCH_CPU_X86_64 / ARCH_CPU_X86_FAMILY (X86 or X86_64) 11 // ARCH_CPU_X86 / ARCH_CPU_X86_64 / ARCH_CPU_X86_FAMILY (X86 or X86_64)
12 // ARCH_CPU_32_BITS / ARCH_CPU_64_BITS 12 // ARCH_CPU_32_BITS / ARCH_CPU_64_BITS
13 13
14 #ifndef BUILD_BUILD_CONFIG_H_ 14 #ifndef BUILD_BUILD_CONFIG_H_
15 #define BUILD_BUILD_CONFIG_H_ 15 #define BUILD_BUILD_CONFIG_H_
16 16
17 // A set of macros to use for platform detection. 17 // A set of macros to use for platform detection.
18 #if defined(__APPLE__) 18 #if defined(__APPLE__)
19 #define OS_MACOSX 1 19 #define OS_MACOSX 1
20 #elif defined(__native_client__)
21 #define OS_NACL 1
20 #elif defined(__linux__) 22 #elif defined(__linux__)
21 #define OS_LINUX 1 23 #define OS_LINUX 1
22 // Use TOOLKIT_GTK on linux if TOOLKIT_VIEWS isn't defined. 24 // Use TOOLKIT_GTK on linux if TOOLKIT_VIEWS isn't defined.
23 #if !defined(TOOLKIT_VIEWS) 25 #if !defined(TOOLKIT_VIEWS)
24 #define TOOLKIT_GTK 26 #define TOOLKIT_GTK
25 #endif 27 #endif
26 #elif defined(_WIN32) 28 #elif defined(_WIN32)
27 #define OS_WIN 1 29 #define OS_WIN 1
28 #define TOOLKIT_VIEWS 1 30 #define TOOLKIT_VIEWS 1
29 #elif defined(__FreeBSD__) 31 #elif defined(__FreeBSD__)
(...skipping 23 matching lines...) Expand all
53 #define USE_X11 1 // Use X for graphics. 55 #define USE_X11 1 // Use X for graphics.
54 #endif 56 #endif
55 57
56 #if defined(USE_OPENSSL) && defined(USE_NSS) 58 #if defined(USE_OPENSSL) && defined(USE_NSS)
57 #error Cannot use both OpenSSL and NSS 59 #error Cannot use both OpenSSL and NSS
58 #endif 60 #endif
59 61
60 // For access to standard POSIXish features, use OS_POSIX instead of a 62 // For access to standard POSIXish features, use OS_POSIX instead of a
61 // more specific macro. 63 // more specific macro.
62 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ 64 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
63 defined(OS_OPENBSD) || defined(OS_SOLARIS) 65 defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_NACL)
64 #define OS_POSIX 1 66 #define OS_POSIX 1
65 // Use base::DataPack for name/value pairs. 67 // Use base::DataPack for name/value pairs.
66 #define USE_BASE_DATA_PACK 1 68 #define USE_BASE_DATA_PACK 1
67 #endif 69 #endif
68 70
69 // Use tcmalloc 71 // Use tcmalloc
70 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC) 72 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(NO_TCMALLOC)
71 #define USE_TCMALLOC 1 73 #define USE_TCMALLOC 1
72 #endif 74 #endif
73 75
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to 121 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to
120 // compile in this mode (in particular, Chrome doesn't). This is intended for 122 // compile in this mode (in particular, Chrome doesn't). This is intended for
121 // other projects using base who manage their own dependencies and make sure 123 // other projects using base who manage their own dependencies and make sure
122 // short wchar works for them. 124 // short wchar works for them.
123 #define WCHAR_T_IS_UTF16 125 #define WCHAR_T_IS_UTF16
124 #else 126 #else
125 #error Please add support for your compiler in build/build_config.h 127 #error Please add support for your compiler in build/build_config.h
126 #endif 128 #endif
127 129
128 #endif // BUILD_BUILD_CONFIG_H_ 130 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « base/logging.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698