diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-28 19:44:02 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-28 19:44:02 +0000 |
commit | f505a9b267f83d8375eee2037e5e08dc6197143d (patch) | |
tree | f14dda4257275e562cdaa81c27cffe59f6ce53ea /net/third_party | |
parent | 2618629d2408b7d152b5b0e189586740dd5332a6 (diff) | |
download | chromium_src-f505a9b267f83d8375eee2037e5e08dc6197143d.zip chromium_src-f505a9b267f83d8375eee2037e5e08dc6197143d.tar.gz chromium_src-f505a9b267f83d8375eee2037e5e08dc6197143d.tar.bz2 |
Port SSLClientSocketNSS to Windows. The next step is to
actually use it (controlled by a boolean flag in SSLConfig,
which is controlled by a command-line switch).
On Windows we still use CryptoAPI to verify and display
certificates. SSL client authentication isn't supported yet.
R=agl,mark
BUG=28744
TEST=No build errors.
Review URL: http://codereview.chromium.org/557027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/third_party')
-rw-r--r-- | net/third_party/nss/nss.gyp | 78 |
1 files changed, 55 insertions, 23 deletions
diff --git a/net/third_party/nss/nss.gyp b/net/third_party/nss/nss.gyp index 6e66aff..0d5ad47 100644 --- a/net/third_party/nss/nss.gyp +++ b/net/third_party/nss/nss.gyp @@ -4,14 +4,18 @@ { 'conditions': [ - ['sysroot!=""', { - 'variables': { - 'pkg-config': './pkg-config-wrapper "<(sysroot)"', - }, - }, { - 'variables': { - 'pkg-config': 'pkg-config' - }, + [ 'OS == "linux"', { + 'conditions': [ + ['sysroot!=""', { + 'variables': { + 'pkg-config': './pkg-config-wrapper "<(sysroot)"', + }, + }, { + 'variables': { + 'pkg-config': 'pkg-config' + }, + }], + ], }], ], @@ -66,23 +70,11 @@ 'defines': [ 'NSS_ENABLE_ECC', 'NSS_ENABLE_ZLIB', - 'SHLIB_PREFIX="lib"', - 'SHLIB_SUFFIX="so"', - 'SHLIB_VERSION="3"', - 'SOFTOKEN_SHLIB_VERSION="3"', 'USE_UTIL_DIRECTLY', ], - 'include_dirs': [ - './ssl/bodge', - ], - 'cflags': [ - '<!@(<(pkg-config) --cflags nss)', - ], - 'ldflags': [ - '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', - ], - 'libraries': [ - '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', + 'defines!': [ + # Regrettably, NSS can't be compiled with NO_NSPR_10_SUPPORT yet. + 'NO_NSPR_10_SUPPORT', ], 'conditions': [ [ 'OS == "linux"', { @@ -92,6 +84,46 @@ 'ssl/win32err.c', 'ssl/win32err.h', ], + 'defines': [ + # These macros are needed only for compiling the files in + # ssl/bodge. + 'SHLIB_PREFIX="lib"', + 'SHLIB_SUFFIX="so"', + 'SHLIB_VERSION="3"', + 'SOFTOKEN_SHLIB_VERSION="3"', + ], + 'include_dirs': [ + 'ssl/bodge', + ], + 'cflags': [ + '<!@(<(pkg-config) --cflags nss)', + ], + 'ldflags': [ + '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', + ], + 'libraries': [ + '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', + ], + }], + [ 'OS == "win"', { + 'sources/': [ + ['exclude', 'ssl/bodge/'], + ], + 'sources!': [ + 'ssl/os2_err.c', + 'ssl/os2_err.h', + 'ssl/unix_err.c', + 'ssl/unix_err.h', + ], + 'dependencies': [ + '../../../third_party/zlib/zlib.gyp:zlib', + '../../../third_party/nss/nss.gyp:nss', + ], + 'direct_dependent_settings': { + 'include_dirs': [ + 'ssl', + ], + }, }], ], }, |