diff options
Diffstat (limited to 'net/third_party')
-rw-r--r-- | net/third_party/nss/ssl.gyp (renamed from net/third_party/nss/nss.gyp) | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/net/third_party/nss/nss.gyp b/net/third_party/nss/ssl.gyp index a3610f5..3166be8 100644 --- a/net/third_party/nss/nss.gyp +++ b/net/third_party/nss/ssl.gyp @@ -67,6 +67,10 @@ 'ssl/bodge/loader.h', 'ssl/bodge/secure_memcmp.c', ], + 'sources!': [ + 'ssl/os2_err.c', + 'ssl/os2_err.h', + ], 'defines': [ 'NSS_ENABLE_ECC', 'NSS_ENABLE_ZLIB', @@ -77,13 +81,20 @@ 'NO_NSPR_10_SUPPORT', ], 'conditions': [ + [ 'OS == "win"', { + 'sources!': [ + 'ssl/unix_err.c', + 'ssl/unix_err.h', + ], + }, + { # else: OS != "win" + 'sources!': [ + 'ssl/win32err.c', + 'ssl/win32err.h', + ], + }, + ], [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { - 'sources!': [ - 'ssl/os2_err.c', - 'ssl/os2_err.h', - 'ssl/win32err.c', - 'ssl/win32err.h', - ], 'defines': [ # These macros are needed only for compiling the files in # ssl/bodge. @@ -105,16 +116,10 @@ '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', ], }], - [ 'OS == "win"', { + [ 'OS == "mac" or 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', |