27 lines
623 B
Python
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)']
|
|
}]
|
|
]
|
|
}
|
|
]
|
|
}
|