forked from holepunchto/sodium-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
50 lines (50 loc) · 1.34 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
{
'variables': {
'target_arch%': '<!(node preinstall.js --print-arch)>'
},
'targets': [
{
'target_name': 'sodium',
'include_dirs' : [
"<!(node -e \"require('nan')\")",
'libsodium/src/libsodium/include'
],
'sources': [
'binding.cc',
'src/crypto_hash_sha256_wrap.cc',
'src/crypto_hash_sha512_wrap.cc',
'src/crypto_generichash_wrap.cc',
'src/crypto_onetimeauth_wrap.cc',
'src/crypto_stream_xor_wrap.cc',
'src/crypto_stream_chacha20_xor_wrap.cc',
'src/crypto_secretstream_xchacha20poly1305_state_wrap.cc',
'src/crypto_pwhash_async.cc',
'src/crypto_pwhash_str_async.cc',
'src/crypto_pwhash_str_verify_async.cc',
'src/crypto_pwhash_scryptsalsa208sha256_async.cc',
'src/crypto_pwhash_scryptsalsa208sha256_str_async.cc',
'src/crypto_pwhash_scryptsalsa208sha256_str_verify_async.cc'
],
'xcode_settings': {
'OTHER_CFLAGS': [
'-g',
'-O3',
]
},
'cflags': [
'-g',
'-O3',
],
'libraries': [
'<!(node preinstall.js --print-lib)'
],
'conditions': [
['OS != "mac" and OS != "win"', {
'link_settings': {
'libraries': [ "-Wl,-rpath=\\$$ORIGIN"]
}
}],
],
}
]
}