Upstream android string implementation etc.
BUG= TEST= Review URL: http://codereview.chromium.org/7238018 git-svn-id: http://src.chromium.org/svn/trunk/src/build@90616 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
a081405db0
Коммит
e729f35f20
|
@ -17,6 +17,8 @@
|
||||||
// A set of macros to use for platform detection.
|
// A set of macros to use for platform detection.
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
#define OS_MACOSX 1
|
#define OS_MACOSX 1
|
||||||
|
#elif defined(ANDROID)
|
||||||
|
#define OS_ANDROID 1
|
||||||
#elif defined(__native_client__)
|
#elif defined(__native_client__)
|
||||||
#define OS_NACL 1
|
#define OS_NACL 1
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
|
@ -48,12 +50,14 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || \
|
#if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || \
|
||||||
defined(OS_SOLARIS)
|
defined(OS_SOLARIS) || defined(OS_ANDROID)
|
||||||
#if !defined(USE_OPENSSL)
|
#if !defined(USE_OPENSSL)
|
||||||
#define USE_NSS 1 // Default to use NSS for crypto, unless OpenSSL is chosen.
|
#define USE_NSS 1 // Default to use NSS for crypto, unless OpenSSL is chosen.
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef OS_ANDROID
|
||||||
#define USE_X11 1 // Use X for graphics.
|
#define USE_X11 1 // Use X for graphics.
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(USE_OPENSSL) && defined(USE_NSS)
|
#if defined(USE_OPENSSL) && defined(USE_NSS)
|
||||||
#error Cannot use both OpenSSL and NSS
|
#error Cannot use both OpenSSL and NSS
|
||||||
|
@ -62,7 +66,8 @@
|
||||||
// For access to standard POSIXish features, use OS_POSIX instead of a
|
// For access to standard POSIXish features, use OS_POSIX instead of a
|
||||||
// more specific macro.
|
// more specific macro.
|
||||||
#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
|
#if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \
|
||||||
defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_NACL)
|
defined(OS_OPENBSD) || defined(OS_SOLARIS) || defined(OS_ANDROID) || \
|
||||||
|
defined(OS_NACL)
|
||||||
#define OS_POSIX 1
|
#define OS_POSIX 1
|
||||||
// Use base::DataPack for name/value pairs.
|
// Use base::DataPack for name/value pairs.
|
||||||
#define USE_BASE_DATA_PACK 1
|
#define USE_BASE_DATA_PACK 1
|
||||||
|
@ -136,4 +141,13 @@
|
||||||
//define CROS_FONTS_USING_BCI
|
//define CROS_FONTS_USING_BCI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(OS_ANDROID)
|
||||||
|
// The compiler thinks std::string::const_iterator and "const char*" are
|
||||||
|
// equivalent types.
|
||||||
|
#define STD_STRING_ITERATOR_IS_CHAR_POINTER
|
||||||
|
// The compiler thinks base::string16::const_iterator and "char16*" are
|
||||||
|
// equivalent types.
|
||||||
|
#define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // BUILD_BUILD_CONFIG_H_
|
#endif // BUILD_BUILD_CONFIG_H_
|
||||||
|
|
Загрузка…
Ссылка в новой задаче