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

Side by Side Diff: build/build_config.h

Issue 7056026: Implement AES-CTR for NSS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: endian Created 9 years, 6 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 | « no previous file | crypto/crypto.gyp » ('j') | crypto/encryptor.h » ('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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 #error Please add support for your compiler in build/build_config.h 87 #error Please add support for your compiler in build/build_config.h
88 #endif 88 #endif
89 89
90 // Processor architecture detection. For more info on what's defined, see: 90 // Processor architecture detection. For more info on what's defined, see:
91 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx 91 // http://msdn.microsoft.com/en-us/library/b0084kay.aspx
92 // http://www.agner.org/optimize/calling_conventions.pdf 92 // http://www.agner.org/optimize/calling_conventions.pdf
93 // or with gcc, run: "echo | gcc -E -dM -" 93 // or with gcc, run: "echo | gcc -E -dM -"
94 #if defined(_M_X64) || defined(__x86_64__) 94 #if defined(_M_X64) || defined(__x86_64__)
95 #define ARCH_CPU_X86_FAMILY 1 95 #define ARCH_CPU_X86_FAMILY 1
96 #define ARCH_CPU_X86_64 1 96 #define ARCH_CPU_X86_64 1
97 #define ARCH_CPU_64_BITS 1 97 #define ARCH_CPU_64_BITS 1
wtc 2011/06/24 18:06:06 Please define ARCH_CPU_LITTLE_ENDIAN here, repeate
Alpha Left Google 2011/06/24 18:52:27 Done.
98 #elif defined(_M_IX86) || defined(__i386__) 98 #elif defined(_M_IX86) || defined(__i386__)
99 #define ARCH_CPU_X86_FAMILY 1 99 #define ARCH_CPU_X86_FAMILY 1
100 #define ARCH_CPU_X86 1 100 #define ARCH_CPU_X86 1
101 #define ARCH_CPU_32_BITS 1 101 #define ARCH_CPU_32_BITS 1
102 #elif defined(__ARMEL__) 102 #elif defined(__ARMEL__)
103 #define ARCH_CPU_ARM_FAMILY 1 103 #define ARCH_CPU_ARM_FAMILY 1
104 #define ARCH_CPU_ARMEL 1 104 #define ARCH_CPU_ARMEL 1
105 #define ARCH_CPU_32_BITS 1 105 #define ARCH_CPU_32_BITS 1
106 #define WCHAR_T_IS_UNSIGNED 1 106 #define WCHAR_T_IS_UNSIGNED 1
107 #else 107 #else
108 #error Please add support for your architecture in build/build_config.h 108 #error Please add support for your architecture in build/build_config.h
109 #endif 109 #endif
110 110
111 #if defined(ARCH_CPU_X86_64) || defined(ARCH_CPU_X86) || \
112 defined(ARCH_CPU_ARMEL)
113 #define ARCH_CPU_LITTLE_ENDIAN 1
114 #else
115 #error Please add your architecture and define either \
116 ARCH_CPU_LITTLE_ENDIAN or ARCH_CPU_BIG_ENDIAN
117 #endif
118
111 // Type detection for wchar_t. 119 // Type detection for wchar_t.
112 #if defined(OS_WIN) 120 #if defined(OS_WIN)
113 #define WCHAR_T_IS_UTF16 121 #define WCHAR_T_IS_UTF16
114 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ 122 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \
115 defined(__WCHAR_MAX__) && \ 123 defined(__WCHAR_MAX__) && \
116 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff) 124 (__WCHAR_MAX__ == 0x7fffffff || __WCHAR_MAX__ == 0xffffffff)
117 #define WCHAR_T_IS_UTF32 125 #define WCHAR_T_IS_UTF32
118 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \ 126 #elif defined(OS_POSIX) && defined(COMPILER_GCC) && \
119 defined(__WCHAR_MAX__) && \ 127 defined(__WCHAR_MAX__) && \
120 (__WCHAR_MAX__ == 0x7fff || __WCHAR_MAX__ == 0xffff) 128 (__WCHAR_MAX__ == 0x7fff || __WCHAR_MAX__ == 0xffff)
121 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to 129 // On Posix, we'll detect short wchar_t, but projects aren't guaranteed to
122 // compile in this mode (in particular, Chrome doesn't). This is intended for 130 // compile in this mode (in particular, Chrome doesn't). This is intended for
123 // other projects using base who manage their own dependencies and make sure 131 // other projects using base who manage their own dependencies and make sure
124 // short wchar works for them. 132 // short wchar works for them.
125 #define WCHAR_T_IS_UTF16 133 #define WCHAR_T_IS_UTF16
126 #else 134 #else
127 #error Please add support for your compiler in build/build_config.h 135 #error Please add support for your compiler in build/build_config.h
128 #endif 136 #endif
129 137
130 #if defined(OS_CHROMEOS) 138 #if defined(OS_CHROMEOS)
131 // Single define to trigger whether CrOS fonts have BCI on. 139 // Single define to trigger whether CrOS fonts have BCI on.
132 // In that case font sizes/deltas should be adjusted. 140 // In that case font sizes/deltas should be adjusted.
133 //define CROS_FONTS_USING_BCI 141 //define CROS_FONTS_USING_BCI
134 #endif 142 #endif
135 143
136 #endif // BUILD_BUILD_CONFIG_H_ 144 #endif // BUILD_BUILD_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | crypto/crypto.gyp » ('j') | crypto/encryptor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698