-
Notifications
You must be signed in to change notification settings - Fork 58
/
binding.gyp
42 lines (42 loc) · 1.3 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
{
'targets': [
{
'target_name': 'girepository',
'sources': [
'src/init.cc',
'src/util.cc',
'src/namespace_loader.cc',
'src/arguments.cc',
'src/function.cc',
'src/values.cc',
'src/types/object.cc',
'src/types/struct.cc',
'src/types/function_type.cc'
],
'conditions': [
['OS=="linux"',
{
'libraries': [
'<!@(pkg-config --libs glib-2.0 gobject-introspection-1.0)'
],
'cflags': [
'<!@(pkg-config --cflags glib-2.0 gobject-introspection-1.0)',
'-D_FILE_OFFSET_BITS=64',
'-D_LARGEFILE_SOURCE'
],
'ldflags': [
'<!@(pkg-config --libs glib-2.0 gobject-introspection-1.0)'
]
}
]
],
'include_dirs': [
'<!(node -e "require(\'nan\')")'
],
'cflags': [
'-std=c++11',
'-g'
]
}
]
}