2012-06-19 11:41:48 +08:00
|
|
|
{
|
|
|
|
'targets': [
|
|
|
|
{
|
|
|
|
'target_name': 'binding',
|
|
|
|
'sources': [
|
|
|
|
'src/binding.cc'
|
|
|
|
],
|
2012-09-20 01:44:25 +08:00
|
|
|
'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)']
|
|
|
|
}],
|
2012-12-30 14:54:11 +08:00
|
|
|
['OS=="solaris"', {
|
|
|
|
'include_dirs': ['<!@(pg_config --includedir)'],
|
|
|
|
'libraries' : ['-lpq -L<!@(pg_config --libdir)']
|
|
|
|
}],
|
2012-09-20 01:44:25 +08:00
|
|
|
['OS=="win"', {
|
|
|
|
'include_dirs': ['<!@(pg_config --includedir)'],
|
2012-09-26 15:36:23 +08:00
|
|
|
'libraries' : ['libpq.lib'],
|
2012-09-20 01:44:25 +08:00
|
|
|
'msvs_settings': {
|
|
|
|
'VCLinkerTool' : {
|
|
|
|
'AdditionalLibraryDirectories' : [
|
|
|
|
'<!@(pg_config --libdir)\\'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
]
|
2012-06-19 11:41:48 +08:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|