-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinding.gyp
More file actions
38 lines (38 loc) · 1.03 KB
/
binding.gyp
File metadata and controls
38 lines (38 loc) · 1.03 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
{
"targets": [
{
"target_name": "gf",
"sources": [
"gf.cpp"
],
"include_dirs" : [
"<!(node -e \"require('nan')\")",
"<(module_root_dir)/gf-complete/libs/include"
],
'variables': {
'LIBDIR': '<(module_root_dir)/gf-complete/libs/lib',
},
"conditions": [
['OS == "mac"', {
'xcode_settings': {
'GCC_OPTIMIZATION_LEVEL': '3', # -O3
'OTHER_CFLAGS': [
'-fno-operator-names',
],
},
"libraries": [ "<(LIBDIR)/libgf_complete.dylib" ]
}],
['OS == "linux"', {
'cflags': [
'-O3',
'-fno-operator-names',
],
'ldflags': [
'-Wl,-rpath -Wl,<(LIBDIR)',
],
"libraries": [ "<(LIBDIR)/libgf_complete.so" ]
}],
],
}
]
}