Chromium Code Reviews| 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', |
| 11 ], | 11 ], |
| 12 'targets': [ | 12 'targets': [ |
| 13 { | 13 { |
| 14 'target_name': 'crypto', | 14 'target_name': 'crypto', |
| 15 'type': '<(component)', | 15 'type': '<(component)', |
| 16 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto | 16 'product_name': 'crcrypto', # Avoid colliding with OpenSSL's libcrypto |
| 17 'dependencies': [ | 17 'dependencies': [ |
| 18 '../base/base.gyp:base', | 18 '../base/base.gyp:base', |
| 19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | 19 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', |
| 20 '../third_party/boringssl/boringssl.gyp:boringssl', | |
| 20 ], | 21 ], |
| 21 'defines': [ | 22 'defines': [ |
| 22 'CRYPTO_IMPLEMENTATION', | 23 'CRYPTO_IMPLEMENTATION', |
| 23 ], | 24 ], |
| 25 'sources!': [ | |
| 26 'third_party/nss/chromium-nss.h', | |
| 27 'third_party/nss/chromium-prtypes.h', | |
| 28 'third_party/nss/chromium-sha256.h', | |
| 29 'third_party/nss/sha512.cc', | |
| 30 ], | |
| 24 'conditions': [ | 31 'conditions': [ |
| 25 [ 'os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { | 32 [ 'os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
| 26 'dependencies': [ | 33 'dependencies': [ |
| 27 '../build/linux/system.gyp:ssl', | 34 '../build/linux/system.gyp:ssl', |
| 28 ], | 35 ], |
| 29 'export_dependent_settings': [ | 36 'export_dependent_settings': [ |
| 30 '../build/linux/system.gyp:ssl', | 37 '../build/linux/system.gyp:ssl', |
| 31 ], | 38 ], |
| 32 'conditions': [ | 39 'conditions': [ |
| 33 [ 'chromeos==1', { | 40 [ 'chromeos==1', { |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 63 ], | 70 ], |
| 64 }, | 71 }, |
| 65 }, { # OS != "mac" | 72 }, { # OS != "mac" |
| 66 'sources!': [ | 73 'sources!': [ |
| 67 'cssm_init.cc', | 74 'cssm_init.cc', |
| 68 'cssm_init.h', | 75 'cssm_init.h', |
| 69 'mac_security_services_lock.cc', | 76 'mac_security_services_lock.cc', |
| 70 'mac_security_services_lock.h', | 77 'mac_security_services_lock.h', |
| 71 ], | 78 ], |
| 72 }], | 79 }], |
| 73 [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', { | |
| 74 'dependencies': [ | |
| 75 '../third_party/nss/nss.gyp:nspr', | |
| 76 '../third_party/nss/nss.gyp:nss', | |
| 77 ], | |
| 78 'export_dependent_settings': [ | |
| 79 '../third_party/nss/nss.gyp:nspr', | |
| 80 '../third_party/nss/nss.gyp:nss', | |
| 81 ], | |
| 82 }], | |
| 83 [ 'OS != "win"', { | 80 [ 'OS != "win"', { |
| 84 'sources!': [ | 81 'sources!': [ |
| 85 'capi_util.h', | 82 'capi_util.h', |
| 86 'capi_util.cc', | 83 'capi_util.cc', |
| 87 ], | 84 ], |
| 88 }], | 85 }], |
| 89 [ 'OS == "win"', { | 86 [ 'OS == "win"', { |
| 90 'msvs_disabled_warnings': [ | 87 'msvs_disabled_warnings': [ |
| 91 4267, # TODO(jschuh): crbug.com/167187 fix size_t to int truncation s. | 88 4267, # TODO(jschuh): crbug.com/167187 fix size_t to int truncation s. |
| 92 ], | 89 ], |
| 93 }], | 90 }], |
| 94 [ 'use_openssl==1', { | 91 [ 'use_nss_certs==0', { |
| 95 'dependencies': [ | 92 # Some files are built when NSS is used for the platform certificate library. |
| 96 '../third_party/boringssl/boringssl.gyp:boringssl', | |
| 97 ], | |
| 98 # TODO(joth): Use a glob to match exclude patterns once the | |
| 99 # OpenSSL file set is complete. | |
| 100 'sources!': [ | |
| 101 'curve25519-donna.c', | |
| 102 'curve25519_nss.cc', | |
| 103 'ec_private_key_nss.cc', | |
| 104 'ec_signature_creator_nss.cc', | |
| 105 'encryptor_nss.cc', | |
| 106 'hmac_nss.cc', | |
| 107 'rsa_private_key_nss.cc', | |
| 108 'secure_hash_default.cc', | |
| 109 'signature_creator_nss.cc', | |
| 110 'signature_verifier_nss.cc', | |
| 111 'symmetric_key_nss.cc', | |
| 112 'third_party/nss/chromium-blapi.h', | |
| 113 'third_party/nss/chromium-blapit.h', | |
| 114 'third_party/nss/chromium-nss.h', | |
| 115 'third_party/nss/chromium-prtypes.h', | |
| 116 'third_party/nss/chromium-sha256.h', | |
| 117 'third_party/nss/pk11akey.cc', | |
| 118 'third_party/nss/rsawrapr.c', | |
| 119 'third_party/nss/secsign.cc', | |
| 120 'third_party/nss/sha512.cc', | |
| 121 ], | |
| 122 }, { | |
| 123 'sources!': [ | |
| 124 'aead_openssl.cc', | |
| 125 'aead_openssl.h', | |
| 126 'auto_cbb.h', | |
| 127 'curve25519_openssl.cc', | |
| 128 'ec_private_key_openssl.cc', | |
| 129 'ec_signature_creator_openssl.cc', | |
| 130 'encryptor_openssl.cc', | |
| 131 'hmac_openssl.cc', | |
| 132 'openssl_bio_string.cc', | |
| 133 'openssl_bio_string.h', | |
| 134 'openssl_util.cc', | |
| 135 'openssl_util.h', | |
| 136 'rsa_private_key_openssl.cc', | |
| 137 'secure_hash_openssl.cc', | |
| 138 'signature_creator_openssl.cc', | |
| 139 'signature_verifier_openssl.cc', | |
| 140 'symmetric_key_openssl.cc', | |
| 141 ], | |
| 142 },], | |
| 143 [ 'use_openssl==1 and use_nss_certs==0', { | |
| 144 # Some files are built when NSS is used at all, either for the | |
| 145 # internal crypto library or the platform certificate library. | |
| 146 'sources!': [ | 93 'sources!': [ |
| 147 'nss_key_util.cc', | 94 'nss_key_util.cc', |
| 148 'nss_key_util.h', | 95 'nss_key_util.h', |
| 149 'nss_util.cc', | 96 'nss_util.cc', |
| 150 'nss_util.h', | 97 'nss_util.h', |
| 151 'nss_util_internal.h', | 98 'nss_util_internal.h', |
| 152 ], | 99 ], |
| 153 },], | 100 },], |
| 154 ], | 101 ], |
| 155 'sources': [ | 102 'sources': [ |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 181 'symmetric_key_unittest.cc', | 128 'symmetric_key_unittest.cc', |
| 182 ], | 129 ], |
| 183 'dependencies': [ | 130 'dependencies': [ |
| 184 'crypto', | 131 'crypto', |
| 185 'crypto_test_support', | 132 'crypto_test_support', |
| 186 '../base/base.gyp:base', | 133 '../base/base.gyp:base', |
| 187 '../base/base.gyp:run_all_unittests', | 134 '../base/base.gyp:run_all_unittests', |
| 188 '../base/base.gyp:test_support_base', | 135 '../base/base.gyp:test_support_base', |
| 189 '../testing/gmock.gyp:gmock', | 136 '../testing/gmock.gyp:gmock', |
| 190 '../testing/gtest.gyp:gtest', | 137 '../testing/gtest.gyp:gtest', |
| 138 '../third_party/boringssl/boringssl.gyp:boringssl', | |
| 191 ], | 139 ], |
| 192 'conditions': [ | 140 'conditions': [ |
| 193 [ 'use_nss_certs == 1', { | 141 [ 'use_nss_certs == 1', { |
| 194 'dependencies': [ | 142 'dependencies': [ |
| 195 '../build/linux/system.gyp:ssl', | 143 '../build/linux/system.gyp:ssl', |
| 196 ], | 144 ], |
| 197 }], | 145 }], |
| 198 [ 'use_openssl == 1 and use_nss_certs == 0', { | 146 [ 'use_nss_certs == 0', { |
| 199 # Some files are built when NSS is used at all, either for the | 147 # Some files are built when NSS is used for the platform certificate l ibrary. |
| 200 # internal crypto library or the platform certificate library. | |
| 201 'sources!': [ | 148 'sources!': [ |
| 202 'nss_key_util_unittest.cc', | 149 'nss_key_util_unittest.cc', |
| 203 'nss_util_unittest.cc', | 150 'nss_util_unittest.cc', |
| 204 ], | 151 ], |
| 205 }], | 152 }], |
| 206 [ 'use_openssl == 0 and (OS == "mac" or OS == "ios" or OS == "win")', { | |
| 207 'dependencies': [ | |
| 208 '../third_party/nss/nss.gyp:nspr', | |
| 209 ], | |
| 210 }], | |
| 211 [ 'OS == "win"', { | 153 [ 'OS == "win"', { |
| 212 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 154 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 213 'msvs_disabled_warnings': [4267, ], | 155 'msvs_disabled_warnings': [4267, ], |
| 214 }], | 156 }], |
| 215 [ 'use_openssl==1', { | |
| 216 'dependencies': [ | |
| 217 '../third_party/boringssl/boringssl.gyp:boringssl', | |
| 218 ], | |
| 219 }, { | |
| 220 'sources!': [ | |
| 221 'openssl_bio_string_unittest.cc', | |
| 222 ], | |
| 223 }], | |
| 224 ], | 157 ], |
| 225 }, | 158 }, |
| 226 ], | 159 ], |
| 227 'conditions': [ | 160 'conditions': [ |
| 228 ['OS == "win" and target_arch=="ia32"', { | 161 ['OS == "win" and target_arch=="ia32"', { |
| 229 'targets': [ | 162 'targets': [ |
| 230 { | 163 { |
| 231 'target_name': 'crypto_nacl_win64', | 164 'target_name': 'crypto_nacl_win64', |
| 232 # We do not want nacl_helper to depend on NSS because this would | 165 # We do not want nacl_helper to depend on NSS because this would |
| 233 # require including a 64-bit copy of NSS. Thus, use the native APIs | 166 # require including a 64-bit copy of NSS. Thus, use the native APIs |
| 234 # for the helper. | 167 # for the helper. |
|
Ryan Sleevi
2016/04/18 14:23:30
Update
svaldez
2016/04/18 15:09:35
Done.
| |
| 235 'type': '<(component)', | 168 'type': '<(component)', |
| 236 'dependencies': [ | 169 'dependencies': [ |
| 237 '../base/base.gyp:base_win64', | 170 '../base/base.gyp:base_win64', |
| 238 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64', | 171 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64', |
| 239 ], | 172 ], |
| 240 'sources': [ | 173 'sources': [ |
| 241 '<@(nacl_win64_sources)', | 174 '<@(nacl_win64_sources)', |
| 242 ], | 175 ], |
| 243 'defines': [ | 176 'defines': [ |
| 244 'CRYPTO_IMPLEMENTATION', | 177 'CRYPTO_IMPLEMENTATION', |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 306 '../build/isolate.gypi', | 239 '../build/isolate.gypi', |
| 307 ], | 240 ], |
| 308 'sources': [ | 241 'sources': [ |
| 309 'crypto_unittests.isolate', | 242 'crypto_unittests.isolate', |
| 310 ], | 243 ], |
| 311 }, | 244 }, |
| 312 ], | 245 ], |
| 313 }], | 246 }], |
| 314 ], | 247 ], |
| 315 } | 248 } |
| OLD | NEW |