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.
8 'target_name': 'webcrypto',
9 'type': 'static_library',
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',
21 'export_dependent_settings': [
22 '../../base/base.gyp:base',
25 'webcrypto_sources': [
26 'algorithm_dispatch.cc',
27 'algorithm_dispatch.h',
28 'algorithm_implementation.cc',
29 'algorithm_implementation.h',
30 'algorithm_registry.cc',
31 'algorithm_registry.h',
34 'generate_key_result.cc',
35 'generate_key_result.h',
46 'webcrypto_nss_sources': [
47 'nss/aes_algorithm_nss.cc',
48 'nss/aes_algorithm_nss.h',
55 'nss/rsa_hashed_algorithm_nss.cc',
56 'nss/rsa_hashed_algorithm_nss.h',
57 'nss/rsa_oaep_nss.cc',
65 'webcrypto_openssl_sources': [
66 'openssl/aes_algorithm_openssl.cc',
67 'openssl/aes_algorithm_openssl.h',
68 'openssl/aes_cbc_openssl.cc',
69 'openssl/aes_ctr_openssl.cc',
70 'openssl/aes_gcm_openssl.cc',
71 'openssl/aes_kw_openssl.cc',
72 'openssl/ec_algorithm_openssl.cc',
73 'openssl/ec_algorithm_openssl.h',
74 'openssl/ecdh_openssl.cc',
75 'openssl/ecdsa_openssl.cc',
76 'openssl/hkdf_openssl.cc',
77 'openssl/hmac_openssl.cc',
78 'openssl/key_openssl.cc',
79 'openssl/key_openssl.h',
80 'openssl/pbkdf2_openssl.cc',
81 'openssl/rsa_hashed_algorithm_openssl.cc',
82 'openssl/rsa_hashed_algorithm_openssl.h',
83 'openssl/rsa_oaep_openssl.cc',
84 'openssl/rsa_pss_openssl.cc',
85 'openssl/rsa_sign_openssl.cc',
86 'openssl/rsa_sign_openssl.h',
87 'openssl/rsa_ssa_openssl.cc',
88 'openssl/sha_openssl.cc',
89 'openssl/util_openssl.cc',
90 'openssl/util_openssl.h',
94 '<@(webcrypto_sources)',
99 '../../build/android/ndk.gyp:cpu_features',
104 '<@(webcrypto_openssl_sources)',
107 '../../third_party/boringssl/boringssl.gyp:boringssl',
111 '<@(webcrypto_nss_sources)',
114 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
116 '../../build/linux/system.gyp:ssl',
120 '../../third_party/nss/nss.gyp:nspr',
121 '../../third_party/nss/nss.gyp:nss',