forked from creationix/node-gir
-
Notifications
You must be signed in to change notification settings - Fork 6
/
binding.gyp
47 lines (47 loc) · 1.37 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
{
'targets': [
{
'target_name': 'girepository',
'sources': [
'src/main.cpp',
'src/util.cpp',
'src/namespace_loader.cpp',
'src/arguments.cpp',
'src/values.cpp',
'src/types/object.cpp',
'src/types/struct.cpp',
'src/types/function.cpp',
'src/types/enum.cpp',
'src/types/param_spec.cpp',
'src/loop.cpp',
'src/closure.cpp',
],
'include_dirs': [
'<!(node -e "require(\'nan\')")',
'<!@(pkg-config glib-2.0 gobject-introspection-1.0 --cflags-only-I | sed s/-I//g)',
'src'
],
'libraries': [
'<!@(pkg-config --libs glib-2.0 gobject-introspection-1.0)'
],
'cflags': [
'-std=c++11',
'-fexceptions',
'-g'
],
'cflags!': [
'-fno-exceptions'
],
'cflags_cc!': [
'-fno-exceptions'
],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
}
]
}