node-postgres/binding.gyp

32 lines
790 B
Plaintext
Raw Normal View History

2012-06-19 11:41:48 +08:00
{
'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)\\'
]
},
}
}]
]
2012-06-19 11:41:48 +08:00
}
]
}