forked from nimiq/core-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
80 lines (80 loc) · 2.53 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
{
"targets": [
{
"target_name": "nimiq_node",
"sources": [
"src/native/argon2.c",
"src/native/blake2/blake2b.c",
"src/native/core.c",
"src/native/encoding.c",
"src/native/nimiq_native.c",
"src/native/opt.c",
"src/native/sha256.c",
"src/native/ed25519/collective.c",
"src/native/ed25519/fe.c",
"src/native/ed25519/ge.c",
"src/native/ed25519/keypair.c",
"src/native/ed25519/memory.c",
"src/native/ed25519/sc.c",
"src/native/ed25519/sha512.c",
"src/native/ed25519/sign.c",
"src/native/ed25519/verify.c",
"src/native/nimiq_node.cc"
],
"defines": [
"ARGON2_NO_THREADS"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"src/native"
],
"cflags_c": [
"-std=c99",
"-march=native"
],
"xcode_settings": {
"OTHER_CFLAGS": [
"-march=native"
]
}
},
{
"target_name": "nimiq_node_generic",
"sources": [
"src/native/argon2.c",
"src/native/blake2/blake2b.c",
"src/native/core.c",
"src/native/encoding.c",
"src/native/nimiq_native.c",
"src/native/ref.c",
"src/native/sha256.c",
"src/native/ed25519/collective.c",
"src/native/ed25519/fe.c",
"src/native/ed25519/ge.c",
"src/native/ed25519/keypair.c",
"src/native/ed25519/memory.c",
"src/native/ed25519/sc.c",
"src/native/ed25519/sha512.c",
"src/native/ed25519/sign.c",
"src/native/ed25519/verify.c",
"src/native/nimiq_node.cc"
],
"defines": [
"ARGON2_NO_THREADS"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"src/native"
],
"cflags_c": [
"-std=c99",
"-mtune=generic"
],
"xcode_settings": {
"OTHER_CFLAGS": [
"-mtune=generic"
]
}
}
]
}