forked from brianc/node-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
31 lines (31 loc) · 790 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
{
'targets': [
{
'target_name': 'binding',
'sources': [
'src/binding.cc'
],
'conditions' : [
['OS=="mac"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
}],
['OS=="linux"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
}],
['OS=="win"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['libpq.lib'],
'msvs_settings': {
'VCLinkerTool' : {
'AdditionalLibraryDirectories' : [
'<!@(pg_config --libdir)\\'
]
},
}
}]
]
}
]
}