forked from xdenser/node-firebird-libfbclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
45 lines (45 loc) · 1.35 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
{
'targets': [
{
'target_name': 'binding',
'sources': [ './src/fb-bindings.cc', './src/fb-bindings-blob.cc',
'./src/fb-bindings-fbresult.cc',
'./src/fb-bindings-connection.cc','./src/fb-bindings-eventblock.cc',
'./src/fb-bindings-fbeventemitter.cc',
'./src/fb-bindings-statement.cc',
'./src/fb-bindings-transaction.cc' ],
'include_dirs': [
'<(module_root_dir)/fb/include',
"<!(node -e \"require('nan')\")"
],
"conditions" : [
[
'OS=="linux"', {
'libraries': [ '-lfbclient' ]
}
],
[
'OS=="win" and target_arch=="ia32"', {
"libraries" : [
'<(module_root_dir)/fb/lib/fbclient_ms.lib'
]
}
],
[
'OS=="win" and target_arch=="x64"', {
"libraries" : [
'<(module_root_dir)/fb/lib64/fbclient_ms.lib'
]
}
],
[
'OS=="mac"', {
"link_settings" : {
"libraries": ['-L/Library/Frameworks/Firebird.framework/Libraries/', '-lfbclient']
}
}
]
]
}
]
}