-
Notifications
You must be signed in to change notification settings - Fork 27
/
binding.gyp
134 lines (134 loc) · 3.73 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
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
{
"targets": [
{
"target_name": "mbedtls",
"type": "static_library",
"sources": [
"mbedtls/library/debug.c",
"mbedtls/library/ssl_cache.c",
"mbedtls/library/ssl_ciphersuites.c",
"mbedtls/library/ssl_cli.c",
"mbedtls/library/ssl_cookie.c",
"mbedtls/library/ssl_srv.c",
"mbedtls/library/ssl_ticket.c",
"mbedtls/library/ssl_tls.c"
],
"include_dirs": [
"mbedtls/include",
"config"
],
"defines": [
"MBEDTLS_CONFIG_FILE=\"node_dtls_conf.h\""
]
},
{
"target_name": "mbedx509",
"type": "static_library",
"sources": [
"mbedtls/library/certs.c",
"mbedtls/library/pkcs11.c",
"mbedtls/library/x509.c",
"mbedtls/library/x509_create.c",
"mbedtls/library/x509_crl.c",
"mbedtls/library/x509_crt.c",
"mbedtls/library/x509_csr.c",
"mbedtls/library/x509write_crt.c",
"mbedtls/library/x509write_csr.c"
],
"include_dirs": [
"mbedtls/include",
"config"
],
"defines": [
"MBEDTLS_CONFIG_FILE=\"node_dtls_conf.h\""
]
},
{
"target_name": "mbedcrypto",
"type": "static_library",
"sources": [
"mbedtls/library/aes.c",
"mbedtls/library/aesni.c",
"mbedtls/library/arc4.c",
"mbedtls/library/asn1parse.c",
"mbedtls/library/asn1write.c",
"mbedtls/library/base64.c",
"mbedtls/library/bignum.c",
"mbedtls/library/blowfish.c",
"mbedtls/library/camellia.c",
"mbedtls/library/ccm.c",
"mbedtls/library/cipher.c",
"mbedtls/library/cipher_wrap.c",
"mbedtls/library/ctr_drbg.c",
"mbedtls/library/des.c",
"mbedtls/library/dhm.c",
"mbedtls/library/ecdh.c",
"mbedtls/library/ecdsa.c",
"mbedtls/library/ecp.c",
"mbedtls/library/ecp_curves.c",
"mbedtls/library/entropy.c",
"mbedtls/library/entropy_poll.c",
"mbedtls/library/error.c",
"mbedtls/library/gcm.c",
"mbedtls/library/havege.c",
"mbedtls/library/hmac_drbg.c",
"mbedtls/library/md.c",
"mbedtls/library/md2.c",
"mbedtls/library/md4.c",
"mbedtls/library/md5.c",
"mbedtls/library/md_wrap.c",
"mbedtls/library/memory_buffer_alloc.c",
"mbedtls/library/oid.c",
"mbedtls/library/padlock.c",
"mbedtls/library/pem.c",
"mbedtls/library/pk.c",
"mbedtls/library/pk_wrap.c",
"mbedtls/library/pkcs12.c",
"mbedtls/library/pkcs5.c",
"mbedtls/library/pkparse.c",
"mbedtls/library/pkwrite.c",
"mbedtls/library/platform.c",
"mbedtls/library/ripemd160.c",
"mbedtls/library/rsa.c",
"mbedtls/library/sha1.c",
"mbedtls/library/sha256.c",
"mbedtls/library/sha512.c",
"mbedtls/library/threading.c",
"mbedtls/library/timing.c",
"mbedtls/library/version.c",
"mbedtls/library/version_features.c",
"mbedtls/library/xtea.c"
],
"include_dirs": [
"mbedtls/include",
"config"
],
"defines": [
"MBEDTLS_CONFIG_FILE=\"node_dtls_conf.h\""
]
},
{
"target_name": "node_mbed_dtls",
"sources": [
"src/init.cc",
"src/DtlsServer.cc",
"src/DtlsSocket.cc",
"src/DtlsClientSocket.cc",
"src/SessionWrap.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"mbedtls/include",
"config"
],
"dependencies": [
"mbedtls",
"mbedx509",
"mbedcrypto"
],
"defines": [
"MBEDTLS_CONFIG_FILE=\"node_dtls_conf.h\""
]
}
]
}