diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 20:28:03 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-01 20:28:03 +0000 |
commit | 3dd6f5e0807447194b12c7adc9a730d81738a0a6 (patch) | |
tree | 6176f288326fdb65d167ce419929260209fff32b /net/net.gyp | |
parent | 3f94a9eedbb0bd352beeea9ae65591c69c9012f1 (diff) | |
download | chromium_src-3dd6f5e0807447194b12c7adc9a730d81738a0a6.zip chromium_src-3dd6f5e0807447194b12c7adc9a730d81738a0a6.tar.gz chromium_src-3dd6f5e0807447194b12c7adc9a730d81738a0a6.tar.bz2 |
Use SSLClientSocketNSS on Mac OS X. By default, chrome still uses
SSLClientSocketMac. Specify the --use-nss-for-ssl command-line
option to use SSLClientSocketNSS.
The nss.gyp in src/net/third_party/nss is renamed ssl.gyp to avoid
a naming conflict with the nss.gyp in src/third_party/nss. The
GYP generator for Xcode project files disallows same-named .gyp files.
SSL client authentication doesn't work yet.
R=mark
BUG=30689
TEST=No build and test failures on Mac and Windows.
Review URL: http://codereview.chromium.org/2322008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/net.gyp')
-rw-r--r-- | net/net.gyp | 82 |
1 files changed, 38 insertions, 44 deletions
diff --git a/net/net.gyp b/net/net.gyp index 5be0bee..14f2db8 100644 --- a/net/net.gyp +++ b/net/net.gyp @@ -175,12 +175,20 @@ ], 'conditions': [ [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { - 'dependencies': [ - '../build/linux/system.gyp:gconf', - '../build/linux/system.gyp:gdk', - '../build/linux/system.gyp:nss', - ], - }], + 'dependencies': [ + '../build/linux/system.gyp:gconf', + '../build/linux/system.gyp:gdk', + '../build/linux/system.gyp:nss', + ], + }, + { # else: OS is not in the above list + 'sources!': [ + 'base/cert_database_nss.cc', + 'base/keygen_handler_nss.cc', + 'base/x509_certificate_nss.cc', + ], + }, + ], [ 'OS == "win"', { 'dependencies': [ # For nss_memio.{c,h}, which require only NSPR. @@ -194,22 +202,10 @@ ], }, ], - [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { - }, - { # else: OS is not in the above list - 'sources!': [ - 'base/cert_database_nss.cc', - 'base/keygen_handler_nss.cc', - 'base/x509_certificate_nss.cc', - ], - }, - ], [ 'OS == "mac"', { - 'sources!': [ - # TODO(wtc): Remove nss_memio.{c,h} when http://crbug.com/30689 - # is fixed. - 'base/nss_memio.c', - 'base/nss_memio.h', + 'dependencies': [ + # For nss_memio.{c,h}, which require only NSPR. + '../third_party/nss/nss.gyp:nspr', ], 'link_settings': { 'libraries': [ @@ -552,12 +548,23 @@ ], }], [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { - 'dependencies': [ - '../build/linux/system.gyp:gconf', - '../build/linux/system.gyp:gdk', - '../build/linux/system.gyp:nss', - ], - }], + 'sources!': [ + 'socket/ssl_client_socket_nss_factory.cc', + 'socket/ssl_client_socket_nss_factory.h', + ], + 'dependencies': [ + '../build/linux/system.gyp:gconf', + '../build/linux/system.gyp:gdk', + '../build/linux/system.gyp:nss', + ], + }, + { # else: OS is not in the above list + 'sources!': [ + 'ocsp/nss_ocsp.cc', + 'ocsp/nss_ocsp.h', + ], + }, + ], [ 'OS == "win"', { 'sources!': [ 'http/http_auth_handler_ntlm_portable.cc', @@ -565,7 +572,7 @@ ], 'dependencies': [ '../third_party/nss/nss.gyp:nss', - 'third_party/nss/nss.gyp:ssl', + 'third_party/nss/ssl.gyp:ssl', 'tld_cleanup', ], 'link_settings': { @@ -577,26 +584,13 @@ { # else: OS != "win" 'sources!': [ 'proxy/proxy_resolver_winhttp.cc', - 'socket/ssl_client_socket_nss_factory.cc', - 'socket/ssl_client_socket_nss_factory.h', - ], - }, - ], - [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { - }, - { # else: OS != "linux" - 'sources!': [ - 'ocsp/nss_ocsp.cc', - 'ocsp/nss_ocsp.h', ], }, ], [ 'OS == "mac"', { - 'sources!': [ - # TODO(wtc): Remove ssl_client_socket_nss.{cc,h} when - # http://crbug.com/30689 is fixed. - 'socket/ssl_client_socket_nss.cc', - 'socket/ssl_client_socket_nss.h', + 'dependencies': [ + '../third_party/nss/nss.gyp:nss', + 'third_party/nss/ssl.gyp:ssl', ], 'link_settings': { 'libraries': [ |