forked from Trusted-eSign/trusted-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
csp.gyp
164 lines (160 loc) · 6.4 KB
/
csp.gyp
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"targets": [
{
"target_name": "csp_trusted",
"sources": [
"src/node/main.cpp",
"src/node/helper.cpp",
"src/node/stdafx.cpp",
"src/node/utils/wlog.cpp",
"src/node/utils/wrap.cpp",
"src/node/pki/wcrl.cpp",
"src/node/pki/wcrls.cpp",
"src/node/pki/wcert.cpp",
"src/node/pki/wcerts.cpp",
"src/node/pki/wattr.cpp",
"src/node/pki/wattr_vals.cpp",
"src/node/pki/wkey.cpp",
"src/node/pki/woid.cpp",
"src/node/pki/walg.cpp",
"src/node/pki/wcertRegInfo.cpp",
"src/node/pki/wcertReg.cpp",
"src/node/pki/wcsr.cpp",
"src/node/pki/wcipher.cpp",
"src/node/pki/wchain.cpp",
"src/node/pki/wrevocation.cpp",
"src/node/pki/wpkcs12.cpp",
"src/node/store/wcashjson.cpp",
"src/node/store/wpkistore.cpp",
"src/node/store/wsystem.cpp",
"src/node/cms/wsigned_data.cpp",
"src/node/cms/wsigner.cpp",
"src/node/cms/wsigners.cpp",
"src/node/cms/wsigner_attrs.cpp",
"src/wrapper/stdafx.cpp",
"src/wrapper/common/bio.cpp",
"src/wrapper/common/common.cpp",
"src/wrapper/common/excep.cpp",
"src/wrapper/common/log.cpp",
"src/wrapper/common/openssl.cpp",
"src/wrapper/common/prov.cpp",
"src/wrapper/pki/crl.cpp",
"src/wrapper/pki/crls.cpp",
"src/wrapper/pki/cert.cpp",
"src/wrapper/pki/certs.cpp",
"src/wrapper/pki/key.cpp",
"src/wrapper/pki/certRegInfo.cpp",
"src/wrapper/pki/certReg.cpp",
"src/wrapper/pki/csr.cpp",
"src/wrapper/pki/cipher.cpp",
"src/wrapper/pki/chain.cpp",
"src/wrapper/pki/pkcs12.cpp",
"src/wrapper/pki/revocation.cpp",
"src/wrapper/store/cashjson.cpp",
"src/wrapper/store/pkistore.cpp",
"src/wrapper/store/provider_system.cpp",
"src/wrapper/store/storehelper.cpp",
"src/wrapper/pki/x509_name.cpp",
"src/wrapper/pki/alg.cpp",
"src/wrapper/pki/attr.cpp",
"src/wrapper/pki/attrs.cpp",
"src/wrapper/pki/attr_vals.cpp",
"src/wrapper/pki/oid.cpp",
"src/wrapper/cms/cert_id.cpp",
"src/wrapper/cms/signer.cpp",
"src/wrapper/cms/signers.cpp",
"src/wrapper/cms/signer_attrs.cpp",
"src/wrapper/cms/signed_data.cpp",
"src/jsoncpp/jsoncpp.cpp"
],
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS": [
"-std=c++11",
"-stdlib=libc++"
],
"OTHER_LDFLAGS": [],
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"GCC_ENABLE_CPP_RTTI": "YES",
"MACOSX_DEPLOYMENT_TARGET": "10.7"
},
"conditions": [
[
"OS=='win'",
{
"sources": [
"src/node/store/wmicrosoft.cpp",
"src/wrapper/store/provider_microsoft.cpp"
],
"conditions": [
[
"target_arch=='x64'",
{
"variables": {
"openssl_root%": "C:/openssl"
}
},
{
"variables": {
"openssl_root%": "C:/openssl"
}
}
]
],
"libraries": [
"-l<(openssl_root)/lib/libeay32.lib",
"-lcrypt32.lib"
],
"include_dirs": [
"<(openssl_root)/include"
],
"defines": [ "CTWRAPPER_STATIC", "OPENSSL_NO_CTGOSTCP" ],
"msbuild_settings": {
"Link": {
"ImageHasSafeExceptionHandlers": "false"
}
}
},
{
"sources": [
"src/node/store/wcryptopro.cpp",
"src/wrapper/store/provider_cryptopro.cpp"
],
"conditions": [
[
"target_arch=='x64'",
{
"variables": {
"csp_root%": "/opt/cprocsp/lib/amd64"
}
},
{
"variables": {
"csp_root%": "/opt/cprocsp/lib/ia32"
}
}
]
],
"libraries": [
"-luuid",
"-L<(csp_root) -lcapi20"
],
"include_dirs": [
"<(node_root_dir)/deps/openssl/openssl/include",
"/opt/cprocsp/include"
],
"defines": [ "UNIX", "CPROCSP", "OPENSSL_NO_CTGOSTCP" ],
"cflags_cc+": [ "-std=c++11" ]
}
]
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"cflags": [ ],
"cflags_cc!": [
"-fno-rtti",
"-fno-exceptions"
]
}
]
}