-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
89 lines (89 loc) · 3.07 KB
/
binding.gyp
File metadata and controls
89 lines (89 loc) · 3.07 KB
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
{
"targets": [
{
"target_name": "asm_bufferutil",
"sources": [
"src/ws_fast_api.cc",
"src/ws_sha1_ni.c"
],
"conditions": [
["OS!='linux' or target_arch!='x64'", {
"sources": ["src/ws_fallback.c"]
}],
["OS=='win'", {
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/arch:AVX2"]
}
}
}],
["OS!='win' and target_arch=='x64'", {
"cflags": ["-Wall", "-O2", "-mssse3", "-msse4.1", "-msha", "-mgfni"],
"xcode_settings": {
"OTHER_CFLAGS": ["-Wall", "-O2", "-mssse3", "-msse4.1", "-msha", "-mgfni"]
}
}],
["OS!='win' and target_arch!='x64'", {
"cflags": ["-Wall", "-O2"],
"xcode_settings": {
"OTHER_CFLAGS": ["-Wall", "-O2"]
}
}],
["OS=='linux' and target_arch=='x64'", {
"actions": [
{
"action_name": "assemble_cpu",
"inputs": ["src/ws_cpu.asm"],
"outputs": ["<(INTERMEDIATE_DIR)/ws_cpu.o"],
"action": ["nasm", "-f", "elf64",
"-o", "<(INTERMEDIATE_DIR)/ws_cpu.o",
"src/ws_cpu.asm"]
},
{
"action_name": "assemble_mask",
"inputs": ["src/ws_mask_asm.asm"],
"outputs": ["<(INTERMEDIATE_DIR)/ws_mask_asm.o"],
"action": ["nasm", "-f", "elf64",
"-o", "<(INTERMEDIATE_DIR)/ws_mask_asm.o",
"src/ws_mask_asm.asm"]
},
{
"action_name": "assemble_base64",
"inputs": ["src/ws_base64_asm.asm"],
"outputs": ["<(INTERMEDIATE_DIR)/ws_base64_asm.o"],
"action": ["nasm", "-f", "elf64",
"-o", "<(INTERMEDIATE_DIR)/ws_base64_asm.o",
"src/ws_base64_asm.asm"]
},
{
"action_name": "assemble_crc32",
"inputs": ["src/ws_crc32_asm.asm"],
"outputs": ["<(INTERMEDIATE_DIR)/ws_crc32_asm.o"],
"action": ["nasm", "-f", "elf64",
"-o", "<(INTERMEDIATE_DIR)/ws_crc32_asm.o",
"src/ws_crc32_asm.asm"]
},
{
"action_name": "assemble_utf8",
"inputs": ["src/ws_utf8_asm.asm"],
"outputs": ["<(INTERMEDIATE_DIR)/ws_utf8_asm.o"],
"action": ["nasm", "-f", "elf64",
"-o", "<(INTERMEDIATE_DIR)/ws_utf8_asm.o",
"src/ws_utf8_asm.asm"]
}
],
"link_settings": {
"libraries": [
"<(INTERMEDIATE_DIR)/ws_cpu.o",
"<(INTERMEDIATE_DIR)/ws_mask_asm.o",
"<(INTERMEDIATE_DIR)/ws_base64_asm.o",
"<(INTERMEDIATE_DIR)/ws_crc32_asm.o",
"<(INTERMEDIATE_DIR)/ws_utf8_asm.o"
]
}
}]
],
"defines": ["NAPI_VERSION=9"]
}
]
}