| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'includes': [ | 9 'includes': [ |
| 10 'crypto.gypi', | 10 'crypto.gypi', |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 'dependencies': [ | 101 'dependencies': [ |
| 102 '../third_party/boringssl/boringssl.gyp:boringssl', | 102 '../third_party/boringssl/boringssl.gyp:boringssl', |
| 103 ], | 103 ], |
| 104 # TODO(joth): Use a glob to match exclude patterns once the | 104 # TODO(joth): Use a glob to match exclude patterns once the |
| 105 # OpenSSL file set is complete. | 105 # OpenSSL file set is complete. |
| 106 'sources!': [ | 106 'sources!': [ |
| 107 'ec_private_key_nss.cc', | 107 'ec_private_key_nss.cc', |
| 108 'ec_signature_creator_nss.cc', | 108 'ec_signature_creator_nss.cc', |
| 109 'encryptor_nss.cc', | 109 'encryptor_nss.cc', |
| 110 'hmac_nss.cc', | 110 'hmac_nss.cc', |
| 111 'nss_util.cc', | |
| 112 'nss_util.h', | |
| 113 'nss_util_internal.h', | |
| 114 'rsa_private_key_nss.cc', | 111 'rsa_private_key_nss.cc', |
| 115 'secure_hash_default.cc', | 112 'secure_hash_default.cc', |
| 116 'signature_creator_nss.cc', | 113 'signature_creator_nss.cc', |
| 117 'signature_verifier_nss.cc', | 114 'signature_verifier_nss.cc', |
| 118 'symmetric_key_nss.cc', | 115 'symmetric_key_nss.cc', |
| 119 'third_party/nss/chromium-blapi.h', | 116 'third_party/nss/chromium-blapi.h', |
| 120 'third_party/nss/chromium-blapit.h', | 117 'third_party/nss/chromium-blapit.h', |
| 121 'third_party/nss/chromium-nss.h', | 118 'third_party/nss/chromium-nss.h', |
| 122 'third_party/nss/chromium-prtypes.h', | 119 'third_party/nss/chromium-prtypes.h', |
| 123 'third_party/nss/chromium-sha256.h', | 120 'third_party/nss/chromium-sha256.h', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 136 'openssl_bio_string.h', | 133 'openssl_bio_string.h', |
| 137 'openssl_util.cc', | 134 'openssl_util.cc', |
| 138 'openssl_util.h', | 135 'openssl_util.h', |
| 139 'rsa_private_key_openssl.cc', | 136 'rsa_private_key_openssl.cc', |
| 140 'secure_hash_openssl.cc', | 137 'secure_hash_openssl.cc', |
| 141 'signature_creator_openssl.cc', | 138 'signature_creator_openssl.cc', |
| 142 'signature_verifier_openssl.cc', | 139 'signature_verifier_openssl.cc', |
| 143 'symmetric_key_openssl.cc', | 140 'symmetric_key_openssl.cc', |
| 144 ], | 141 ], |
| 145 },], | 142 },], |
| 143 [ 'use_openssl==1 and use_nss==0', { |
| 144 'sources!': [ |
| 145 'nss_util.cc', |
| 146 'nss_util.h', |
| 147 'nss_util_internal.h', |
| 148 ], |
| 149 },], |
| 146 ], | 150 ], |
| 147 'sources': [ | 151 'sources': [ |
| 148 '<@(crypto_sources)', | 152 '<@(crypto_sources)', |
| 149 ], | 153 ], |
| 150 }, | 154 }, |
| 151 { | 155 { |
| 152 'target_name': 'crypto_unittests', | 156 'target_name': 'crypto_unittests', |
| 153 'type': 'executable', | 157 'type': 'executable', |
| 154 'sources': [ | 158 'sources': [ |
| 155 'curve25519_unittest.cc', | 159 'curve25519_unittest.cc', |
| (...skipping 19 matching lines...) Expand all Loading... |
| 175 'dependencies': [ | 179 'dependencies': [ |
| 176 'crypto', | 180 'crypto', |
| 177 'crypto_test_support', | 181 'crypto_test_support', |
| 178 '../base/base.gyp:base', | 182 '../base/base.gyp:base', |
| 179 '../base/base.gyp:run_all_unittests', | 183 '../base/base.gyp:run_all_unittests', |
| 180 '../base/base.gyp:test_support_base', | 184 '../base/base.gyp:test_support_base', |
| 181 '../testing/gmock.gyp:gmock', | 185 '../testing/gmock.gyp:gmock', |
| 182 '../testing/gtest.gyp:gtest', | 186 '../testing/gtest.gyp:gtest', |
| 183 ], | 187 ], |
| 184 'conditions': [ | 188 'conditions': [ |
| 185 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { | 189 [ 'use_nss == 1', { |
| 186 'conditions': [ | 190 'conditions': [ |
| 187 [ 'use_allocator!="none"', { | 191 [ 'use_allocator!="none"', { |
| 188 'dependencies': [ | 192 'dependencies': [ |
| 189 '../base/allocator/allocator.gyp:allocator', | 193 '../base/allocator/allocator.gyp:allocator', |
| 190 ], | 194 ], |
| 191 }, | 195 }, |
| 192 ], | 196 ], |
| 193 ], | 197 ], |
| 194 'dependencies': [ | 198 'dependencies': [ |
| 195 '../build/linux/system.gyp:ssl', | 199 '../build/linux/system.gyp:ssl', |
| 196 ], | 200 ], |
| 197 }, { # os_posix != 1 or OS == "mac" or OS == "android" or OS == "ios" | 201 }, { # use_nss != 1 |
| 202 'sources!': [ |
| 203 'nss_util_unittest.cc', |
| 204 ] |
| 205 }], |
| 206 [ 'use_openssl == 1 or use_nss == 0', { |
| 198 'sources!': [ | 207 'sources!': [ |
| 199 'rsa_private_key_nss_unittest.cc', | 208 'rsa_private_key_nss_unittest.cc', |
| 200 ] | 209 ] |
| 201 }], | 210 }], |
| 202 [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', { | 211 [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', { |
| 203 'dependencies': [ | 212 'dependencies': [ |
| 204 '../third_party/nss/nss.gyp:nspr', | 213 '../third_party/nss/nss.gyp:nspr', |
| 205 ], | 214 ], |
| 206 }], | 215 }], |
| 207 [ 'OS == "win"', { | 216 [ 'OS == "win"', { |
| 208 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 217 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 209 'msvs_disabled_warnings': [4267, ], | 218 'msvs_disabled_warnings': [4267, ], |
| 210 }], | 219 }], |
| 211 [ 'use_openssl==1', { | 220 [ 'use_openssl==1', { |
| 212 'dependencies': [ | 221 'dependencies': [ |
| 213 '../third_party/boringssl/boringssl.gyp:boringssl', | 222 '../third_party/boringssl/boringssl.gyp:boringssl', |
| 214 ], | 223 ], |
| 215 'sources!': [ | |
| 216 'nss_util_unittest.cc', | |
| 217 'rsa_private_key_nss_unittest.cc', | |
| 218 ], | |
| 219 }, { | 224 }, { |
| 220 'sources!': [ | 225 'sources!': [ |
| 221 'openssl_bio_string_unittest.cc', | 226 'openssl_bio_string_unittest.cc', |
| 222 ], | 227 ], |
| 223 }], | 228 }], |
| 224 ], | 229 ], |
| 225 }, | 230 }, |
| 226 ], | 231 ], |
| 227 'conditions': [ | 232 'conditions': [ |
| 228 ['OS == "win" and target_arch=="ia32"', { | 233 ['OS == "win" and target_arch=="ia32"', { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 ]}, { # use_nss==0 | 297 ]}, { # use_nss==0 |
| 293 'targets': [ | 298 'targets': [ |
| 294 { | 299 { |
| 295 'target_name': 'crypto_test_support', | 300 'target_name': 'crypto_test_support', |
| 296 'type': 'none', | 301 'type': 'none', |
| 297 'sources': [], | 302 'sources': [], |
| 298 } | 303 } |
| 299 ]}], | 304 ]}], |
| 300 ], | 305 ], |
| 301 } | 306 } |
| OLD | NEW |