-
Notifications
You must be signed in to change notification settings - Fork 6
/
binding.gyp
35 lines (35 loc) · 878 Bytes
/
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
{
'targets': [
{
'target_name': 'node_unqlite',
'include_dirs': ['unqlite', "<!(node -e \"require('nan')\")"],
'sources': ['unqlite/unqlite.c', 'src/node_unqlite_async.cc', 'src/node_unqlite.cc'],
'cflags': ['-fexceptions'],
'cflags_cc': ['-fexceptions'],
'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exception'],
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'GCC_ENABLE_CPP_RTTI': 'YES'
}
}
],
],
},
{
'target_name': 'action_after_build',
'type': 'none',
'dependencies': [ 'node_unqlite' ],
'copies': [
{
'destination': 'lib',
'files': [
'<@(PRODUCT_DIR)/node_unqlite.node'
]
}
]
}
]
}