Second try: this should work multiplatform.
This commit is contained in:
parent
528c608a20
commit
552a844565
14
binding.gyp
14
binding.gyp
@ -3,7 +3,9 @@
|
|||||||
{
|
{
|
||||||
'target_name': 'binding',
|
'target_name': 'binding',
|
||||||
'conditions' : [
|
'conditions' : [
|
||||||
['OS=="win" and "<!@(cmd /C where /Q pg_config || echo n)"!="n"',
|
['OS=="win"', {
|
||||||
|
'conditions' : [
|
||||||
|
['"<!@(cmd /C where /Q pg_config || echo n)"!="n"',
|
||||||
{
|
{
|
||||||
'sources': ['src/binding.cc'],
|
'sources': ['src/binding.cc'],
|
||||||
'include_dirs': ['<!@(pg_config --includedir)'],
|
'include_dirs': ['<!@(pg_config --includedir)'],
|
||||||
@ -16,9 +18,11 @@
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
|
]
|
||||||
['OS!="win"',
|
}, { # OS!="win"
|
||||||
|
'conditions' : [
|
||||||
|
['"y"!="n"', # ToDo: add pg_config existance condition that works on linux
|
||||||
{
|
{
|
||||||
'sources': ['src/binding.cc'],
|
'sources': ['src/binding.cc'],
|
||||||
'include_dirs': ['<!@(pg_config --includedir)'],
|
'include_dirs': ['<!@(pg_config --includedir)'],
|
||||||
@ -26,6 +30,8 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
}]
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user