OLD | NEW |
(Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 { |
| 6 'targets': [ |
| 7 { |
| 8 'target_name': 'webcrypto', |
| 9 'type': 'static_library', |
| 10 'dependencies': [ |
| 11 '../../base/base.gyp:base', |
| 12 '../tracing.gyp:tracing', |
| 13 '../../skia/skia.gyp:skia', |
| 14 '../../ui/base/ui_base.gyp:ui_base', |
| 15 '../../ui/events/events.gyp:gestures_blink', |
| 16 '../../url/url.gyp:url_lib', |
| 17 ], |
| 18 'include_dirs': [ |
| 19 '..', |
| 20 ], |
| 21 'export_dependent_settings': [ |
| 22 '../../base/base.gyp:base', |
| 23 ], |
| 24 # Disable c4267 warnings until we fix size_t to int truncations. |
| 25 'msvs_disabled_warnings': [ 4267, ], |
| 26 'variables': { |
| 27 'webcrypto_sources': [ |
| 28 'algorithm_dispatch.cc', |
| 29 'algorithm_dispatch.h', |
| 30 'algorithm_implementation.cc', |
| 31 'algorithm_implementation.h', |
| 32 'algorithm_registry.cc', |
| 33 'algorithm_registry.h', |
| 34 'crypto_data.cc', |
| 35 'crypto_data.h', |
| 36 'generate_key_result.cc', |
| 37 'generate_key_result.h', |
| 38 'jwk.cc', |
| 39 'jwk.h', |
| 40 'platform_crypto.h', |
| 41 'status.cc', |
| 42 'status.h', |
| 43 'webcrypto_impl.cc', |
| 44 'webcrypto_impl.h', |
| 45 'webcrypto_util.cc', |
| 46 'webcrypto_util.h', |
| 47 ], |
| 48 'webcrypto_nss_sources': [ |
| 49 'nss/aes_algorithm_nss.cc', |
| 50 'nss/aes_algorithm_nss.h', |
| 51 'nss/aes_cbc_nss.cc', |
| 52 'nss/aes_gcm_nss.cc', |
| 53 'nss/aes_kw_nss.cc', |
| 54 'nss/hmac_nss.cc', |
| 55 'nss/key_nss.cc', |
| 56 'nss/key_nss.h', |
| 57 'nss/rsa_hashed_algorithm_nss.cc', |
| 58 'nss/rsa_hashed_algorithm_nss.h', |
| 59 'nss/rsa_oaep_nss.cc', |
| 60 'nss/rsa_ssa_nss.cc', |
| 61 'nss/sha_nss.cc', |
| 62 'nss/sym_key_nss.cc', |
| 63 'nss/sym_key_nss.h', |
| 64 'nss/util_nss.cc', |
| 65 'nss/util_nss.h', |
| 66 ], |
| 67 'webcrypto_openssl_sources': [ |
| 68 'openssl/aes_algorithm_openssl.cc', |
| 69 'openssl/aes_algorithm_openssl.h', |
| 70 'openssl/aes_cbc_openssl.cc', |
| 71 'openssl/aes_ctr_openssl.cc', |
| 72 'openssl/aes_gcm_openssl.cc', |
| 73 'openssl/aes_kw_openssl.cc', |
| 74 'openssl/ec_algorithm_openssl.cc', |
| 75 'openssl/ec_algorithm_openssl.h', |
| 76 'openssl/ecdh_openssl.cc', |
| 77 'openssl/ecdsa_openssl.cc', |
| 78 'openssl/hkdf_openssl.cc', |
| 79 'openssl/hmac_openssl.cc', |
| 80 'openssl/key_openssl.cc', |
| 81 'openssl/key_openssl.h', |
| 82 'openssl/pbkdf2_openssl.cc', |
| 83 'openssl/rsa_hashed_algorithm_openssl.cc', |
| 84 'openssl/rsa_hashed_algorithm_openssl.h', |
| 85 'openssl/rsa_oaep_openssl.cc', |
| 86 'openssl/rsa_pss_openssl.cc', |
| 87 'openssl/rsa_sign_openssl.cc', |
| 88 'openssl/rsa_sign_openssl.h', |
| 89 'openssl/rsa_ssa_openssl.cc', |
| 90 'openssl/sha_openssl.cc', |
| 91 'openssl/util_openssl.cc', |
| 92 'openssl/util_openssl.h', |
| 93 ], |
| 94 }, |
| 95 'sources': [ |
| 96 '<@(webcrypto_sources)', |
| 97 ], |
| 98 'conditions': [ |
| 99 ['OS=="android"', { |
| 100 'dependencies': [ |
| 101 '../../build/android/ndk.gyp:cpu_features', |
| 102 ], |
| 103 }], |
| 104 ['use_openssl==1', { |
| 105 'sources': [ |
| 106 '<@(webcrypto_openssl_sources)', |
| 107 ], |
| 108 'dependencies': [ |
| 109 '../../third_party/boringssl/boringssl.gyp:boringssl', |
| 110 ], |
| 111 }, { |
| 112 'sources': [ |
| 113 '<@(webcrypto_nss_sources)', |
| 114 ], |
| 115 'conditions': [ |
| 116 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"'
, { |
| 117 'dependencies': [ |
| 118 '../../build/linux/system.gyp:ssl', |
| 119 ], |
| 120 }, { |
| 121 'dependencies': [ |
| 122 '../../third_party/nss/nss.gyp:nspr', |
| 123 '../../third_party/nss/nss.gyp:nss', |
| 124 ], |
| 125 }], |
| 126 ], |
| 127 }], |
| 128 ], |
| 129 }, |
| 130 ], |
| 131 } |
OLD | NEW |