We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7826e49 commit 4cb66d1Copy full SHA for 4cb66d1
binding.gyp
@@ -5,8 +5,27 @@
5
'sources': [
6
'src/binding.cc'
7
],
8
- 'include_dirs': ['<!@(pg_config --includedir)'],
9
- 'libraries' : ['-lpq -L<!@(pg_config --libdir)']
+ 'conditions' : [
+ ['OS=="mac"', {
10
+ 'include_dirs': ['<!@(pg_config --includedir)'],
11
+ 'libraries' : ['-lpq -L<!@(pg_config --libdir)']
12
+ }],
13
+ ['OS=="linux"', {
14
15
16
17
+ ['OS=="win"', {
18
19
+ 'libraries' : ['libpq.dll'],
20
+ 'msvs_settings': {
21
+ 'VCLinkerTool' : {
22
+ 'AdditionalLibraryDirectories' : [
23
+ '<!@(pg_config --libdir)\\'
24
+ ]
25
+ },
26
+ }
27
+ }]
28
29
}
30
]
31
0 commit comments