diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-18 16:11:37 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-18 16:11:37 +0000 |
commit | b5c72b82b5b19a3268ea5df60b79322f7f779027 (patch) | |
tree | 27bbd22eccca76f350d0e6350e78dcd20f297104 | |
parent | c04057c9f62073cd266eebe462dd777f8fe6d7a5 (diff) | |
download | chromium_src-b5c72b82b5b19a3268ea5df60b79322f7f779027.zip chromium_src-b5c72b82b5b19a3268ea5df60b79322f7f779027.tar.gz chromium_src-b5c72b82b5b19a3268ea5df60b79322f7f779027.tar.bz2 |
Solaris: Second set adding in Solaris as an OS option
TEST=compiles
BUG=30101
Patch by James Choi <jchoi42@pha.jhu.edu>.
Review URL: http://codereview.chromium.org/606075
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39362 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/base.gyp | 8 | ||||
-rw-r--r-- | base/file_util_posix.cc | 4 | ||||
-rw-r--r-- | build/build_config.h | 8 | ||||
-rwxr-xr-x | chrome/chrome.gyp | 12 | ||||
-rw-r--r-- | media/media.gyp | 4 | ||||
-rw-r--r-- | skia/ext/platform_canvas.h | 3 | ||||
-rw-r--r-- | skia/ext/platform_device.h | 3 | ||||
-rw-r--r-- | skia/skia.gyp | 4 | ||||
-rw-r--r-- | third_party/libevent/libevent.gyp | 2 | ||||
-rw-r--r-- | third_party/libxml/libxml.gyp | 4 | ||||
-rw-r--r-- | third_party/libxslt/libxslt.gyp | 2 | ||||
-rw-r--r-- | webkit/webkit.gyp | 5 |
12 files changed, 33 insertions, 26 deletions
diff --git a/base/base.gyp b/base/base.gyp index 8e941a3..f4720b4 100644 --- a/base/base.gyp +++ b/base/base.gyp @@ -149,7 +149,7 @@ '../testing/gtest.gyp:gtest', ], 'conditions': [ - ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'sources!': [ 'file_version_info_unittest.cc', 'worker_pool_linux_unittest.cc', @@ -167,7 +167,7 @@ '../build/linux/system.gyp:nss', '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', ], - }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" + }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris" 'sources!': [ 'message_pump_glib_unittest.cc', ] @@ -230,7 +230,7 @@ ], }, 'conditions': [ - ['OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + ['OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'dependencies': [ # Needed to handle the #include chain: # base/test/perf_test_suite.h @@ -259,7 +259,7 @@ }, ], }], - [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'targets': [ { 'target_name': 'linux_versioninfo', diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 6e8735a..590b94d 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -87,7 +87,7 @@ int CountFilesCreatedAfter(const FilePath& path, DIR* dir = opendir(path.value().c_str()); if (dir) { #if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD) && \ - !defined(OS_OPENBSD) + !defined(OS_OPENBSD) && !defined(OS_SOLARIS) #error Port warning: depending on the definition of struct dirent, \ additional space for pathname may be needed #endif @@ -645,7 +645,7 @@ bool FileEnumerator::ReadDirectory(std::vector<DirectoryEntryInfo>* entries, return false; #if !defined(OS_LINUX) && !defined(OS_MACOSX) && !defined(OS_FREEBSD) && \ - !defined(OS_OPENBSD) + !defined(OS_OPENBSD) && !defined(OS_SOLARIS) #error Port warning: depending on the definition of struct dirent, \ additional space for pathname may be needed #endif diff --git a/build/build_config.h b/build/build_config.h index ebf72f3..0c349c0 100644 --- a/build/build_config.h +++ b/build/build_config.h @@ -32,6 +32,9 @@ #elif defined(__OpenBSD__) #define OS_OPENBSD 1 #define TOOLKIT_GTK +#elif defined(__Solaris__) +#define OS_SOLARIS 1 +#define TOOLKIT_GTK #else #error Please add support for your platform in build/build_config.h #endif @@ -42,7 +45,8 @@ #define TOOLKIT_USES_GTK 1 #endif -#if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) +#if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_OPENBSD) || \ + defined(OS_SOLARIS) #define USE_NSS 1 // Use NSS for crypto. #define USE_X11 1 // Use X for graphics. #endif @@ -50,7 +54,7 @@ // For access to standard POSIXish features, use OS_POSIX instead of a // more specific macro. #if defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_FREEBSD) || \ - defined(OS_OPENBSD) + defined(OS_OPENBSD) || defined(OS_SOLARIS) #define OS_POSIX 1 // Use base::DataPack for name/value pairs. #define USE_BASE_DATA_PACK 1 diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp index f5dc08d..dbb2eb9 100755 --- a/chrome/chrome.gyp +++ b/chrome/chrome.gyp @@ -453,7 +453,7 @@ 'browser/debugger/inspectable_tab_proxy.h', ], 'conditions': [ - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'dependencies': [ '../build/linux/system.gyp:gtk', ], @@ -530,7 +530,7 @@ 'plugin/command_buffer_stub.h', ], },], - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'dependencies': [ '../build/linux/system.gyp:gtk', ], @@ -828,7 +828,7 @@ 'sync_proto', ], 'conditions': [ - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'dependencies': [ '../build/linux/system.gyp:gtk' ], @@ -977,7 +977,7 @@ 'browser/sync/util/data_encryption.h', ], }], - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'dependencies': [ '../build/linux/system.gyp:gtk' ], @@ -1524,7 +1524,7 @@ }, ]}, # 'targets' ], # OS=="win" - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'targets': [{ 'target_name': 'packed_resources', 'type': 'none', @@ -1610,7 +1610,7 @@ }, ], }], # targets - }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" + }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" ], # 'conditions' } diff --git a/media/media.gyp b/media/media.gyp index 8391bb1..e8b8e07 100644 --- a/media/media.gyp +++ b/media/media.gyp @@ -202,7 +202,7 @@ 'omx/omx_input_buffer_unittest.cc', ], 'conditions': [ - ['OS=="linux" or OS=="freebsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { 'dependencies': [ # Needed for the following #include chain: # base/run_all_unittests.cc @@ -290,7 +290,7 @@ '../testing/gtest.gyp:gtest', ], 'conditions': [ - ['OS=="linux" or OS=="freebsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="solaris"', { 'dependencies': [ '../build/linux/system.gyp:gtk', ], diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h index b624249..4c47466 100644 --- a/skia/ext/platform_canvas.h +++ b/skia/ext/platform_canvas.h @@ -47,7 +47,8 @@ class PlatformCanvas : public SkCanvas { // For two-part init, call if you use the no-argument constructor above bool initialize(int width, int height, bool is_opaque, uint8_t* data = NULL); -#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ + defined(__Solaris__) // Linux --------------------------------------------------------------------- // Construct a canvas from the given memory region. The memory is not cleared diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h index d85786b..39710ed 100644 --- a/skia/ext/platform_device.h +++ b/skia/ext/platform_device.h @@ -12,7 +12,8 @@ #include "skia/ext/platform_device_win.h" #elif defined(__APPLE__) #include "skia/ext/platform_device_mac.h" -#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) +#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ + defined(__Solaris__) #include "skia/ext/platform_device_linux.h" #endif diff --git a/skia/skia.gyp b/skia/skia.gyp index 41da282..d85f2a1 100644 --- a/skia/skia.gyp +++ b/skia/skia.gyp @@ -564,7 +564,7 @@ ['exclude', '_mac\\.(cc|cpp|mm?)$'], ['exclude', '/mac/'] ], }], - [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd"', { + [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', { 'sources/': [ ['exclude', '_(linux|gtk)\\.(cc|cpp)$'] ], 'sources!': [ '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', @@ -588,7 +588,7 @@ '../third_party/skia/src/opts/opts_check_SSE2.cpp' ], }], - [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'dependencies': [ '../build/linux/system.gyp:gdk', '../build/linux/system.gyp:fontconfig', diff --git a/third_party/libevent/libevent.gyp b/third_party/libevent/libevent.gyp index 56fa749..39a97d9 100644 --- a/third_party/libevent/libevent.gyp +++ b/third_party/libevent/libevent.gyp @@ -50,7 +50,7 @@ ], }, }], - [ 'OS == "mac" or OS == "freebsd" or OS == "openbsd"', { + [ 'OS == "mac" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'sources': [ 'kqueue.c' ], 'include_dirs': [ 'mac' ] }], diff --git a/third_party/libxml/libxml.gyp b/third_party/libxml/libxml.gyp index 1b28793..8445e1a 100644 --- a/third_party/libxml/libxml.gyp +++ b/third_party/libxml/libxml.gyp @@ -5,7 +5,7 @@ { 'variables': { 'conditions': [ - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'os_include': 'linux' }], ['OS=="mac"', {'os_include': 'mac'}], @@ -17,7 +17,7 @@ { 'target_name': 'libxml', 'conditions': [ - ['(OS=="linux" or OS=="freebsd" or OS=="openbsd") and use_system_libxml', { + ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris") and use_system_libxml', { 'type': 'settings', 'direct_dependent_settings': { 'cflags': [ diff --git a/third_party/libxslt/libxslt.gyp b/third_party/libxslt/libxslt.gyp index ae83817..0240936 100644 --- a/third_party/libxslt/libxslt.gyp +++ b/third_party/libxslt/libxslt.gyp @@ -5,7 +5,7 @@ { 'variables': { 'conditions': [ - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'os_include': 'linux' }], ['OS=="mac"', {'os_include': 'mac'}], diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp index 483c1a6..4c1f9a1 100644 --- a/webkit/webkit.gyp +++ b/webkit/webkit.gyp @@ -391,7 +391,7 @@ # own hard dependencies. 'hard_dependency': 1, 'conditions': [ - ['OS=="linux" or OS=="freebsd" or OS=="openbsd"', { + ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 'dependencies': [ '../build/linux/system.gyp:gtk', '../base/base.gyp:linux_versioninfo', @@ -399,7 +399,8 @@ 'sources!': [ 'glue/plugins/plugin_stubs.cc', ], - }, { # else: OS!="linux" and OS!="freebsd" and OS!="openbsd" + }, { # else: OS!="linux" and OS!="freebsd" and OS!="openbsd" \ + # and OS!="solaris"' 'sources/': [['exclude', '_(linux|gtk)(_data)?\\.cc$'], ['exclude', r'/gtk_']], }], |