-
Notifications
You must be signed in to change notification settings - Fork 10
/
binding.gyp
77 lines (77 loc) · 1.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
{
"targets": [
{
"target_name": "blake2",
"win_delay_load_hook": "true",
"conditions": [
["target_arch == 'x64' or target_arch == 'ia32'", {
"sources": [
"src/blake2.cpp",
"src/BLAKE2/sse/blake2b.c",
"src/BLAKE2/sse/blake2bp.c",
"src/BLAKE2/sse/blake2s.c",
"src/BLAKE2/sse/blake2sp.c"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"src/BLAKE2/sse"
]
}],
["target_arch == 'arm64'", {
"sources": [
"src/blake2.cpp",
"src/BLAKE2/neon/blake2b-neon.c",
"src/BLAKE2/neon/blake2bp.c",
"src/BLAKE2/neon/blake2s-neon.c",
"src/BLAKE2/neon/blake2sp.c"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"src/BLAKE2/neon"
]
}],
["target_arch != 'x64' and target_arch != 'ia32' and target_arch != 'arm64'", {
"sources": [
"src/blake2.cpp",
"src/BLAKE2/ref/blake2b-ref.c",
"src/BLAKE2/ref/blake2bp-ref.c",
"src/BLAKE2/ref/blake2s-ref.c",
"src/BLAKE2/ref/blake2sp-ref.c"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"src/BLAKE2/ref"
]
}]
],
"cflags_c": [
"-std=c99",
"-Wstrict-aliasing",
"-Wextra",
"-Wno-unused-function",
"-Wno-unused-const-variable"
],
"cflags_cc": [
"-Wstrict-aliasing",
"-Wextra",
"-Wno-unused-function",
"-Wno-unused-const-variable",
"-Wno-unused-parameter"
],
'xcode_settings': {
'OTHER_CFLAGS': [
"-Wstrict-aliasing",
"-Wextra",
"-Wno-unused-function",
"-Wno-unused-const-variable",
"-Wno-unused-parameter"
]
},
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/arch:AVX"]
}
}
}
]
}