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

Side by Side Diff: build/build_config.h

Issue 519030: bsds: views/ and webkit/ support for FreeBSD/OpenBSD (Closed)
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
« no previous file with comments | « no previous file | views/view.cc » ('j') | webkit/tools/test_shell/test_shell_request_context.cc » ('J')
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 18 matching lines...) Expand all
29 #elif defined(__FreeBSD__) 29 #elif defined(__FreeBSD__)
30 #define OS_FREEBSD 1 30 #define OS_FREEBSD 1
31 #define TOOLKIT_GTK 31 #define TOOLKIT_GTK
32 #elif defined(__OpenBSD__) 32 #elif defined(__OpenBSD__)
33 #define OS_OPENBSD 1 33 #define OS_OPENBSD 1
34 #define TOOLKIT_GTK 34 #define TOOLKIT_GTK
35 #else 35 #else
36 #error Please add support for your platform in build/build_config.h 36 #error Please add support for your platform in build/build_config.h
37 #endif 37 #endif
38 38
39 // A flag derived from the above flags, used to cover GTK code in
40 // both TOOLKIT_GTK and TOOLKIT_VIEWS.
41 #if defined(TOOLKIT_GTK) || (defined(TOOLKIT_VIEWS) && !defined(OS_WIN))
42 #define TOOLKIT_USES_GTK 1
43 #endif
44
39 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) 45 #if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD)
40 #define USE_NSS 1 // Use NSS for crypto. 46 #define USE_NSS 1 // Use NSS for crypto.
41 #define USE_X11 1 // Use X for graphics. 47 #define USE_X11 1 // Use X for graphics.
42 #endif 48 #endif
43 49
44 // 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
45 // more specific macro. 51 // more specific macro.
46 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS _OPENBSD) 52 #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS _OPENBSD)
47 #define OS_POSIX 1 53 #define OS_POSIX 1
48 // Use base::DataPack for name/value pairs. 54 // Use base::DataPack for name/value pairs.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to 103 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to
98 // compile in this mode (in particular, Chrome doesn't). This is intended for 104 // compile in this mode (in particular, Chrome doesn't). This is intended for
99 // other projects using base who manage their own dependencies and make sure 105 // other projects using base who manage their own dependencies and make sure
100 // short wchar works for them. 106 // short wchar works for them.
101 #define WCHAR_T_IS_UTF16 107 #define WCHAR_T_IS_UTF16
102 #else 108 #else
103 #error Please add support for your compiler in build/build_config.h 109 #error Please add support for your compiler in build/build_config.h
104 #endif 110 #endif
105 111
106 #endif // BUILD_BUILD_CONFIG_H_ 112 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | views/view.cc » ('j') | webkit/tools/test_shell/test_shell_request_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698