node-postgres/binding.gyp
2013-03-05 12:17:36 +01:00

27 lines
623 B
Python

{
'targets': [
{
'target_name': 'binding',
'sources': [
'src/binding.cc'
],
'conditions' : [
['OS=="win"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['libpq.lib'],
'msvs_settings': {
'VCLinkerTool' : {
'AdditionalLibraryDirectories' : [
'<!@(pg_config --libdir)\\'
]
},
}
}, { # OS!="win"
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
}]
]
}
]
}