forked from gcasro/fuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
113 lines (99 loc) · 4.42 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
{
"variables": {
"openssl_fips": "",
},
"targets": [
{
"target_name": "fuse",
"include_dirs": ["<!(node -e \"require('napi-macros')\")"],
'cflags': ['-g', '-O3', '-Wall'],
"conditions": [
["OS=='linux' and target_arch=='x64'", {
"include_dirs+": ["<(module_root_dir)/lib/linux-x64/include"],
"libraries+": ["<(module_root_dir)/lib/linux-x64/lib/libfuse.so"],
"sources=": ["fuse.c"]
}],
["OS=='linux' and target_arch=='arm'", {
"include_dirs+": ["<(module_root_dir)/lib/linux-arm/include"],
"libraries+": ["<(module_root_dir)/lib/linux-arm/lib/libfuse.so"],
"sources=": ["fuse.c"]
}],
["OS=='mac' and target_arch=='x64'", {
"include_dirs+": ["<(module_root_dir)/lib/mac-x64/include"],
"libraries+": ["<(module_root_dir)/lib/mac-x64/libosxfuse.2.dylib"],
"sources=": ["fuse.c"],
'xcode_settings': {'OTHER_CFLAGS': ['-g', '-O3', '-Wall']},
}],
["OS=='mac' and target_arch=='arm'", {
"include_dirs+": ["<(module_root_dir)/lib/mac-x64/include"],
"libraries+": ["<(module_root_dir)/lib/mac-x64/libosxfuse.2.dylib"],
"sources=": ["fuse.c"],
'xcode_settings': {'OTHER_CFLAGS': ['-g', '-O3', '-Wall']},
}],
["OS=='mac' and target_arch=='arm64'", {
"include_dirs+": ["<(module_root_dir)/lib/mac-x64/include"],
"libraries+": ["<(module_root_dir)/lib/mac-x64/libosxfuse.2.dylib"],
"sources=": ["fuse.c"],
'xcode_settings': {'OTHER_CFLAGS': ['-g', '-O3', '-Wall']},
}],
["OS=='win' and target_arch=='x64'", {
"include_dirs+": [
"<!(echo %ProgramFiles(x86)%)/WinFsp/inc/fuse",
"<(module_root_dir)/lib/win-x64/include",
],
"libraries+": [
"<!(echo %ProgramFiles(x86)%)/WinFsp/lib/winfsp-x64.lib",
"<(module_root_dir)/lib/win-x64/lib/pthreadVC3.lib",
],
"sources=": ["fuse.cpp"]
}],
],
},
{
"target_name": "postinstall",
"type": "none",
"dependencies": ["fuse"],
"conditions": [
["OS=='linux' and target_arch=='x64'", {
"copies=": [{
"destination": "build/Release",
"files": ["<(module_root_dir)/lib/linux-x64/lib/libfuse.so"]
}],
}],
["OS=='linux' and target_arch=='arm'", {
"copies=": [{
"destination": "build/Release",
"files": ["<(module_root_dir)/lib/linux-arm/lib/libfuse.so"]
}],
}],
["OS=='mac' and target_arch=='x64'", {
"copies=": [{
"destination": "build/Release",
"files": ["<(module_root_dir)/lib/mac-x64/libosxfuse.2.dylib"]
}],
}],
["OS=='mac' and target_arch=='arm'", {
"copies=": [{
"destination": "build/Release",
"files": ["<(module_root_dir)/lib/mac-x64/libosxfuse.2.dylib"]
}],
}],
["OS=='mac' and target_arch=='arm64'", {
"copies=": [{
"destination": "build/Release",
"files": ["<(module_root_dir)/lib/mac-x64/libosxfuse.2.dylib"]
}],
}],
["OS=='win' and target_arch=='x64'", {
"copies=": [{
"destination": "build/Release",
"files": [
"<!(echo %ProgramFiles(x86)%)/WinFsp/bin/winfsp-x64.dll",
"<(module_root_dir)/lib/win-x64/bin/pthreadVC3.dll",
]
}],
}]
],
}
]
}