From 93f21e4ceb7b2bda9d50657cce47f2e640e567b5 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Thu, 1 Apr 2010 00:35:15 +0000 Subject: Solaris: various edits towards compiling Chromium on Solaris. Changed __Solaris__ to __sun. Defined NAME_MAX as MAXNAMLEN for systems where it is undefined. BUG=30101 TEST=compiles Patch by James Choi Review URL: http://codereview.chromium.org/652166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43297 0039d316-1c4b-4281-b951-d872f2087c98 --- base/base.gypi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'base/base.gypi') diff --git a/base/base.gypi b/base/base.gypi index 484b7bf..0e6d6b4 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -288,7 +288,7 @@ '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks', ], 'conditions': [ - [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd"', { + [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', { 'sources/': [ ['exclude', '/xdg_user_dirs/'], ['exclude', '_nss\.cc$'], @@ -588,7 +588,7 @@ }, ], }], - [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { 'targets': [ { 'target_name': 'symbolize', @@ -596,6 +596,14 @@ 'variables': { 'chromium_code': 0, }, + 'conditions': [ + [ 'OS == "solaris"', { + 'include_dirs': [ + '/usr/gnu/include', + '/usr/gnu/include/libelf', + ], + },], + ], 'cflags': [ '-Wno-sign-compare', ], -- cgit v1.1