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

Side by Side Diff: build/build_config.h

Issue 558008: Use the USE_NSS macro to help porting to FreeBSD, OpenBSD, etc.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « base/test/test_suite.h ('k') | net/http/des.cc » ('j') | 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:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #define TOOLKIT_USES_GTK 1 42 #define TOOLKIT_USES_GTK 1
43 #endif 43 #endif
44 44
45 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) 45 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
46 #define USE_NSS 1 // Use NSS for crypto. 46 #define USE_NSS 1 // Use NSS for crypto.
47 #define USE_X11 1 // Use X for graphics. 47 #define USE_X11 1 // Use X for graphics.
48 #endif 48 #endif
49 49
50 // For access to standard POSIXish features, use OS_POSIX instead of a 50 // For access to standard POSIXish features, use OS_POSIX instead of a
51 // more specific macro. 51 // more specific macro.
52 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS _OPENBSD) 52 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
53 defined(OS_OPENBSD)
53 #define OS_POSIX 1 54 #define OS_POSIX 1
54 // Use base::DataPack for name/value pairs. 55 // Use base::DataPack for name/value pairs.
55 #define USE_BASE_DATA_PACK 1 56 #define USE_BASE_DATA_PACK 1
56 #endif 57 #endif
57 58
58 // Use tcmalloc 59 // Use tcmalloc
59 #if defined(OS_WIN) && ! defined(NO_TCMALLOC) 60 #if defined(OS_WIN) && !defined(NO_TCMALLOC)
60 #define USE_TCMALLOC 1 61 #define USE_TCMALLOC 1
61 #endif 62 #endif
62 63
63 // Compiler detection. 64 // Compiler detection.
64 #if defined(__GNUC__) 65 #if defined(__GNUC__)
65 #define COMPILER_GCC 1 66 #define COMPILER_GCC 1
66 #elif defined(_MSC_VER) 67 #elif defined(_MSC_VER)
67 #define COMPILER_MSVC 1 68 #define COMPILER_MSVC 1
68 #else 69 #else
69 #error Please add support for your compiler in build/build_config.h 70 #error Please add support for your compiler in build/build_config.h
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to 104 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to
104 // compile in this mode (in particular, Chrome doesn't). This is intended for 105 // compile in this mode (in particular, Chrome doesn't). This is intended for
105 // other projects using base who manage their own dependencies and make sure 106 // other projects using base who manage their own dependencies and make sure
106 // short wchar works for them. 107 // short wchar works for them.
107 #define WCHAR_T_IS_UTF16 108 #define WCHAR_T_IS_UTF16
108 #else 109 #else
109 #error Please add support for your compiler in build/build_config.h 110 #error Please add support for your compiler in build/build_config.h
110 #endif 111 #endif
111 112
112 #endif // BUILD_BUILD_CONFIG_H_ 113 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « base/test/test_suite.h ('k') | net/http/des.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698