| 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 '../third_party/boringssl/boringssl.gyp:boringssl', |
| 21 ], | 21 ], |
| 22 'defines': [ | 22 'defines': [ |
| 23 'CRYPTO_IMPLEMENTATION', | 23 'CRYPTO_IMPLEMENTATION', |
| 24 ], | 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 ], | |
| 31 'conditions': [ | 25 'conditions': [ |
| 32 [ 'os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { | 26 [ 'os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
| 33 'dependencies': [ | 27 'dependencies': [ |
| 34 '../build/linux/system.gyp:ssl', | 28 '../build/linux/system.gyp:ssl', |
| 35 ], | 29 ], |
| 36 'export_dependent_settings': [ | 30 'export_dependent_settings': [ |
| 37 '../build/linux/system.gyp:ssl', | 31 '../build/linux/system.gyp:ssl', |
| 38 ], | 32 ], |
| 39 'conditions': [ | 33 'conditions': [ |
| 40 [ 'chromeos==1', { | 34 [ 'chromeos==1', { |
| 41 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 35 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
| 42 }, | 36 }, |
| 43 ], | 37 ], |
| 44 ], | 38 ], |
| 45 }, { # os_posix != 1 or OS == "mac" or OS == "ios" or OS == "android" | |
| 46 'sources!': [ | |
| 47 'hmac_win.cc', | |
| 48 'symmetric_key_win.cc', | |
| 49 ], | |
| 50 }], | 39 }], |
| 51 [ 'OS != "mac" and OS != "ios"', { | 40 [ 'OS != "mac" and OS != "ios"', { |
| 52 'sources!': [ | 41 'sources!': [ |
| 53 'apple_keychain.h', | 42 'apple_keychain.h', |
| 54 'mock_apple_keychain.cc', | 43 'mock_apple_keychain.cc', |
| 55 'mock_apple_keychain.h', | 44 'mock_apple_keychain.h', |
| 56 ], | 45 ], |
| 57 }], | 46 }], |
| 58 [ 'os_bsd==1', { | 47 [ 'os_bsd==1', { |
| 59 'link_settings': { | 48 'link_settings': { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 'conditions': [ | 149 'conditions': [ |
| 161 ['OS == "win" and target_arch=="ia32"', { | 150 ['OS == "win" and target_arch=="ia32"', { |
| 162 'targets': [ | 151 'targets': [ |
| 163 { | 152 { |
| 164 'target_name': 'crypto_nacl_win64', | 153 'target_name': 'crypto_nacl_win64', |
| 165 # We use the native APIs for the helper. | 154 # We use the native APIs for the helper. |
| 166 'type': '<(component)', | 155 'type': '<(component)', |
| 167 'dependencies': [ | 156 'dependencies': [ |
| 168 '../base/base.gyp:base_win64', | 157 '../base/base.gyp:base_win64', |
| 169 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', | 158 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', |
| 159 '../third_party/boringssl/boringssl.gyp:boringssl_nacl_win64', |
| 170 ], | 160 ], |
| 171 'sources': [ | 161 'sources': [ |
| 172 '<@(nacl_win64_sources)', | 162 '<@(nacl_win64_sources)', |
| 173 ], | 163 ], |
| 174 'defines': [ | 164 'defines': [ |
| 175 'CRYPTO_IMPLEMENTATION', | 165 'CRYPTO_IMPLEMENTATION', |
| 176 '<@(nacl_win64_defines)', | 166 '<@(nacl_win64_defines)', |
| 177 ], | 167 ], |
| 178 'configurations': { | 168 'configurations': { |
| 179 'Common_Base': { | 169 'Common_Base': { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 '../build/isolate.gypi', | 227 '../build/isolate.gypi', |
| 238 ], | 228 ], |
| 239 'sources': [ | 229 'sources': [ |
| 240 'crypto_unittests.isolate', | 230 'crypto_unittests.isolate', |
| 241 ], | 231 ], |
| 242 }, | 232 }, |
| 243 ], | 233 ], |
| 244 }], | 234 }], |
| 245 ], | 235 ], |
| 246 } | 236 } |
| OLD | NEW |