| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'conditions': [ | 6 'conditions': [ |
| 7 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { | 7 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { |
| 8 'conditions': [ | 8 'conditions': [ |
| 9 ['sysroot!=""', { | 9 ['sysroot!=""', { |
| 10 'variables': { | 10 'variables': { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 'ssl/ssltrace.c', | 60 'ssl/ssltrace.c', |
| 61 'ssl/sslver.c', | 61 'ssl/sslver.c', |
| 62 'ssl/unix_err.c', | 62 'ssl/unix_err.c', |
| 63 'ssl/unix_err.h', | 63 'ssl/unix_err.h', |
| 64 'ssl/win32err.c', | 64 'ssl/win32err.c', |
| 65 'ssl/win32err.h', | 65 'ssl/win32err.h', |
| 66 'ssl/bodge/loader.c', | 66 'ssl/bodge/loader.c', |
| 67 'ssl/bodge/loader.h', | 67 'ssl/bodge/loader.h', |
| 68 'ssl/bodge/secure_memcmp.c', | 68 'ssl/bodge/secure_memcmp.c', |
| 69 ], | 69 ], |
| 70 'sources!': [ |
| 71 'ssl/os2_err.c', |
| 72 'ssl/os2_err.h', |
| 73 ], |
| 70 'defines': [ | 74 'defines': [ |
| 71 'NSS_ENABLE_ECC', | 75 'NSS_ENABLE_ECC', |
| 72 'NSS_ENABLE_ZLIB', | 76 'NSS_ENABLE_ZLIB', |
| 73 'USE_UTIL_DIRECTLY', | 77 'USE_UTIL_DIRECTLY', |
| 74 ], | 78 ], |
| 75 'defines!': [ | 79 'defines!': [ |
| 76 # Regrettably, NSS can't be compiled with NO_NSPR_10_SUPPORT yet. | 80 # Regrettably, NSS can't be compiled with NO_NSPR_10_SUPPORT yet. |
| 77 'NO_NSPR_10_SUPPORT', | 81 'NO_NSPR_10_SUPPORT', |
| 78 ], | 82 ], |
| 79 'conditions': [ | 83 'conditions': [ |
| 84 [ 'OS == "win"', { |
| 85 'sources!': [ |
| 86 'ssl/unix_err.c', |
| 87 'ssl/unix_err.h', |
| 88 ], |
| 89 }, |
| 90 { # else: OS != "win" |
| 91 'sources!': [ |
| 92 'ssl/win32err.c', |
| 93 'ssl/win32err.h', |
| 94 ], |
| 95 }, |
| 96 ], |
| 80 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { | 97 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { |
| 81 'sources!': [ | |
| 82 'ssl/os2_err.c', | |
| 83 'ssl/os2_err.h', | |
| 84 'ssl/win32err.c', | |
| 85 'ssl/win32err.h', | |
| 86 ], | |
| 87 'defines': [ | 98 'defines': [ |
| 88 # These macros are needed only for compiling the files in | 99 # These macros are needed only for compiling the files in |
| 89 # ssl/bodge. | 100 # ssl/bodge. |
| 90 'SHLIB_PREFIX="lib"', | 101 'SHLIB_PREFIX="lib"', |
| 91 'SHLIB_SUFFIX="so"', | 102 'SHLIB_SUFFIX="so"', |
| 92 'SHLIB_VERSION="3"', | 103 'SHLIB_VERSION="3"', |
| 93 'SOFTOKEN_SHLIB_VERSION="3"', | 104 'SOFTOKEN_SHLIB_VERSION="3"', |
| 94 ], | 105 ], |
| 95 'include_dirs': [ | 106 'include_dirs': [ |
| 96 'ssl/bodge', | 107 'ssl/bodge', |
| 97 ], | 108 ], |
| 98 'cflags': [ | 109 'cflags': [ |
| 99 '<!@(<(pkg-config) --cflags nss)', | 110 '<!@(<(pkg-config) --cflags nss)', |
| 100 ], | 111 ], |
| 101 'ldflags': [ | 112 'ldflags': [ |
| 102 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', | 113 '<!@(<(pkg-config) --libs-only-L --libs-only-other nss)', |
| 103 ], | 114 ], |
| 104 'libraries': [ | 115 'libraries': [ |
| 105 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', | 116 '<!@(<(pkg-config) --libs-only-l nss | sed -e "s/-lssl3//")', |
| 106 ], | 117 ], |
| 107 }], | 118 }], |
| 108 [ 'OS == "win"', { | 119 [ 'OS == "mac" or OS == "win"', { |
| 109 'sources/': [ | 120 'sources/': [ |
| 110 ['exclude', 'ssl/bodge/'], | 121 ['exclude', 'ssl/bodge/'], |
| 111 ], | 122 ], |
| 112 'sources!': [ | |
| 113 'ssl/os2_err.c', | |
| 114 'ssl/os2_err.h', | |
| 115 'ssl/unix_err.c', | |
| 116 'ssl/unix_err.h', | |
| 117 ], | |
| 118 'dependencies': [ | 123 'dependencies': [ |
| 119 '../../../third_party/zlib/zlib.gyp:zlib', | 124 '../../../third_party/zlib/zlib.gyp:zlib', |
| 120 '../../../third_party/nss/nss.gyp:nss', | 125 '../../../third_party/nss/nss.gyp:nss', |
| 121 ], | 126 ], |
| 122 'direct_dependent_settings': { | 127 'direct_dependent_settings': { |
| 123 'include_dirs': [ | 128 'include_dirs': [ |
| 124 'ssl', | 129 'ssl', |
| 125 ], | 130 ], |
| 126 }, | 131 }, |
| 127 }], | 132 }], |
| 128 ], | 133 ], |
| 129 'configurations': { | 134 'configurations': { |
| 130 'Debug_Base': { | 135 'Debug_Base': { |
| 131 'defines': [ | 136 'defines': [ |
| 132 'DEBUG', | 137 'DEBUG', |
| 133 ], | 138 ], |
| 134 }, | 139 }, |
| 135 }, | 140 }, |
| 136 }, | 141 }, |
| 137 ], | 142 ], |
| 138 } | 143 } |
| 139 | 144 |
| 140 # Local Variables: | 145 # Local Variables: |
| 141 # tab-width:2 | 146 # tab-width:2 |
| 142 # indent-tabs-mode:nil | 147 # indent-tabs-mode:nil |
| 143 # End: | 148 # End: |
| 144 # vim: set expandtab tabstop=2 shiftwidth=2: | 149 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |