This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
binding.gyp
108 lines (108 loc) · 3.95 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
100
101
102
103
104
105
106
107
108
{
"variables": {
'runtime%': 'node',
'openssl_dir%': '<(node_root_dir)/deps/openssl/openssl',
'openssl_1_0_2%': 0
},
"targets": [
{
"include_dirs": [
"<!(node -e \"require('nan')\")",
"<(openssl_dir)/include"
],
"target_name": "nodessl",
"sources": [
"src/main.cpp",
"src/core/common.h",
"src/core/define.h",
"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/core/bn.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_ecb.cpp",
"src/aes/aes_cbc.cpp",
"src/aes/aes_gcm.cpp",
"src/aes/aes_ctr.cpp",
"src/hmac/common.h",
"src/hmac/hmac_gen.cpp",
"src/hmac/hmac_sign.cpp",
"src/pbkdf2/common.h",
"src/pbkdf2/pbkdf2_derive.cpp",
"src/node/common.h",
"src/node/common.cpp",
"src/node/w_key.cpp",
"src/node/w_aes.cpp",
"src/node/w_hmac.cpp",
"src/node/w_pbkdf2.cpp",
"src/node/w_core.cpp",
"src/node/async_rsa.cpp",
"src/node/async_ec.cpp",
"src/node/async_aes.cpp",
"src/node/async_hmac.cpp",
"src/node/async_pbkdf2.cpp",
"src/node/async_core.cpp"
],
"cflags_cc": ["-fexceptions"],
"conditions": [
[
'runtime != "node"', {
'defines': [
'OPENSSL_1_0_2=<(openssl_1_0_2)'
],
'conditions': [
[
'OS == "win"', {
'libraries': [
'-l<(openssl_dir)/lib/libeay32.lib'
]
},
# OS != "win"
{
'libraries': [
'<(openssl_dir)/lib/libcrypto.a' # static lib
]
},
],
]
}
],
[
'OS=="mac"',
{
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': ['-std=c++14', '-stdlib=libc++', '-v'],
'OTHER_LDFLAGS': ['-stdlib=libc++'],
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
},
},
'OS=="win"',
{
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
}
}
}
]
]
}
]
}