diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-29 22:28:32 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-29 22:28:32 +0000 |
commit | 50462ecbd8980074c460af0f32b5fc6449df8b87 (patch) | |
tree | c5ba44ae61c383485c105462e273517ace3ff68f /net | |
parent | 24b0f177b1a453bae38cdda6c4e07a4320a3e22b (diff) | |
download | chromium_src-50462ecbd8980074c460af0f32b5fc6449df8b87.zip chromium_src-50462ecbd8980074c460af0f32b5fc6449df8b87.tar.gz chromium_src-50462ecbd8980074c460af0f32b5fc6449df8b87.tar.bz2 |
Use refactored filename rules in net.gyp.
build/common.gypi has some general patterns for filenames on platforms,
e.g. "don't build _win.cc on non-Windows", so we don't need to duplicate
them here.
While I'm at it, add the FreeBSD/OpenBSD tests as well, since
that was what prompted this change.
Review URL: http://codereview.chromium.org/558034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rwxr-xr-x | net/net.gyp | 39 |
1 files changed, 7 insertions, 32 deletions
diff --git a/net/net.gyp b/net/net.gyp index ef886f7..d796f5f 100755 --- a/net/net.gyp +++ b/net/net.gyp @@ -163,7 +163,7 @@ '../base/base.gyp:base', ], 'conditions': [ - [ 'OS == "linux"', { + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 'dependencies': [ '../build/linux/system.gyp:gconf', '../build/linux/system.gyp:gdk', @@ -171,7 +171,6 @@ ], }], [ 'OS == "win"', { - 'sources/': [ ['exclude', '_(mac|linux|posix)\\.cc$'] ], 'dependencies': [ # For nss_memio.{c,h}, which require only NSPR. '../third_party/nss/nss.gyp:nspr', @@ -184,24 +183,17 @@ ], }, ], - [ 'OS == "linux"', { - 'sources/': [ ['exclude', '_(mac|win)\\.cc$'] ], + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { }, - { # else: OS != "linux" + { # else: OS is not in the above list 'sources!': [ 'base/cert_database_nss.cc', 'base/keygen_handler_nss.cc', 'base/x509_certificate_nss.cc', ], - # Get U_STATIC_IMPLEMENTATION and -I directories on Linux. - 'dependencies': [ - '../third_party/icu/icu.gyp:icui18n', - '../third_party/icu/icu.gyp:icuuc', - ], }, ], [ 'OS == "mac"', { - 'sources/': [ ['exclude', '_(linux|win)\\.cc$'] ], 'sources!': [ # TODO(wtc): Remove nss_memio.{c,h} when http://crbug.com/30689 # is fixed. @@ -514,7 +506,7 @@ '../v8/tools/gyp/v8.gyp:v8', ], }], - [ 'OS == "linux"', { + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 'dependencies': [ '../build/linux/system.gyp:gconf', '../build/linux/system.gyp:gdk', @@ -522,7 +514,6 @@ ], }], [ 'OS == "win"', { - 'sources/': [ ['exclude', '_(mac|linux|posix)\\.cc$'] ], 'sources!': [ 'http/http_auth_handler_ntlm_portable.cc', 'socket/tcp_client_socket_libevent.cc', @@ -539,23 +530,16 @@ ], }, ], - [ 'OS == "linux"', { - 'sources/': [ ['exclude', '_(mac|win)\\.cc$'] ], + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { }, { # else: OS != "linux" 'sources!': [ 'ocsp/nss_ocsp.cc', 'ocsp/nss_ocsp.h', ], - # Get U_STATIC_IMPLEMENTATION and -I directories on Linux. - 'dependencies': [ - '../third_party/icu/icu.gyp:icui18n', - '../third_party/icu/icu.gyp:icuuc', - ], }, ], [ 'OS == "mac"', { - 'sources/': [ ['exclude', '_(linux|win)\\.cc$'] ], 'sources!': [ # TODO(wtc): Remove ssl_client_socket_nss.{cc,h} when # http://crbug.com/30689 is fixed. @@ -688,12 +672,7 @@ 'websockets/websocket_unittest.cc', ], 'conditions': [ - [ 'OS == "win"', { - 'sources/': [ ['exclude', '_(mac|linux|posix)_unittest\\.cc$'] ], - }, - ], - [ 'OS == "linux"', { - 'sources/': [ ['exclude', '_(mac|win)_unittest\\.cc$'] ], + [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { 'dependencies': [ '../build/linux/system.gyp:gtk', ], @@ -702,7 +681,7 @@ ], }, ], - ['OS == "linux" or OS == "freebsd"', { + ['OS == "linux"', { 'conditions': [ ['linux_use_tcmalloc==1', { 'dependencies': [ @@ -711,10 +690,6 @@ }], ], }], - [ 'OS == "mac"', { - 'sources/': [ ['exclude', '_(linux|win)_unittest\\.cc$'] ], - }, - ], # This is needed to trigger the dll copy step on windows. # TODO(mark): Specifying this here shouldn't be necessary. [ 'OS == "win"', { |