forked from PeculiarVentures/node-webcrypto-ossl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
99 lines (99 loc) · 3.62 KB
/
binding.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
{
"variables": {
"node_shared_openssl%": "true"
},
"targets": [
{
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"target_name": "nodessl",
"sources": [
"src/main.cpp",
"src/core/common.h",
"src/core/define.h",
"src/core/bn.cpp",
"src/core/key_exp.cpp",
"src/core/scoped_ssl.h",
"src/core/scoped_ssl.cpp",
"src/core/logger.cpp",
"src/core/excep.cpp",
"src/core/digest.cpp",
"src/rsa/common.h",
"src/rsa/rsa_gen.cpp",
"src/rsa/rsa_jwk.cpp",
"src/rsa/rsa_pkcs1.cpp",
"src/rsa/rsa_oaep.cpp",
"src/rsa/rsa_pss.cpp",
"src/ec/common.h",
"src/ec/ec_gen.cpp",
"src/ec/ec_dsa.cpp",
"src/ec/ec_dh.cpp",
"src/ec/ec_jwk.cpp",
"src/aes/common.h",
"src/aes/aes_def.h",
"src/aes/aes_gen.cpp",
"src/aes/aes_cbc.cpp",
"src/aes/aes_gcm.cpp",
"src/node/common.h",
"src/node/common.cpp",
"src/node/w_key.cpp",
"src/node/w_aes.cpp",
"src/node/w_core.cpp",
"src/node/async_rsa.cpp",
"src/node/async_ec.cpp",
"src/node/async_aes.cpp",
"src/node/async_core.cpp"
],
"cflags_cc": ["-fexceptions"],
"conditions": [
[
"OS=='win'",
{
"conditions": [
[
"target_arch=='x64'",
{
"variables": {
"openssl_root%": "C:/github/openssl"
}
},
{
"variables": {
"openssl_root%": "C:/github/openssl"
}
}
]
],
"libraries": [
"-l<(openssl_root)/out32dll/libeay32.lib"
],
"include_dirs": [
"<(openssl_root)/inc32"
]
},
{
"conditions": [
[
"node_shared_openssl=='false'",
{
"include_dirs": [
"<(node_root_dir)/deps/openssl/openssl/include"
]
}
]
]
}
],
[ 'OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS' : ['-std=c++11','-stdlib=libc++', '-v'],
'OTHER_LDFLAGS': ['-stdlib=libc++'],
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
},
}]
]
}
]
}