From 528c608a2024a11269a51233172d6f43640724cd Mon Sep 17 00:00:00 2001 From: aleyush Date: Fri, 19 Apr 2013 21:07:41 +0400 Subject: [PATCH 1/2] Check if pg_config exists on windows. --- binding.gyp | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/binding.gyp b/binding.gyp index c2a87b4..0ec5ad7 100644 --- a/binding.gyp +++ b/binding.gyp @@ -2,24 +2,29 @@ 'targets': [ { 'target_name': 'binding', - 'sources': [ - 'src/binding.cc' - ], 'conditions' : [ - ['OS=="win"', { - 'include_dirs': [' Date: Fri, 19 Apr 2013 21:38:24 +0400 Subject: [PATCH 2/2] Second try: this should work multiplatform. --- binding.gyp | 50 ++++++++++++++++++++++++++++---------------------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/binding.gyp b/binding.gyp index 0ec5ad7..02c80a4 100644 --- a/binding.gyp +++ b/binding.gyp @@ -3,28 +3,34 @@ { 'target_name': 'binding', 'conditions' : [ - ['OS=="win" and "