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