File tree Expand file tree Collapse file tree 1 file changed +21
-16
lines changed Expand file tree Collapse file tree 1 file changed +21
-16
lines changed Original file line number Diff line number Diff line change 2
2
'targets' : [
3
3
{
4
4
'target_name' : 'binding' ,
5
- 'sources' : [
6
- 'src/binding.cc'
7
- ],
8
5
'conditions' : [
9
- ['OS=="win"' , {
10
- 'include_dirs' : ['<!@(pg_config --includedir)' ],
11
- 'libraries' : ['libpq.lib' ],
12
- 'msvs_settings' : {
13
- 'VCLinkerTool' : {
14
- 'AdditionalLibraryDirectories' : [
15
- '<!@(pg_config --libdir)\\ '
16
- ]
17
- },
6
+ ['OS=="win" and "<!@(cmd /C where /Q pg_config || echo n)"!="n"' ,
7
+ {
8
+ 'sources' : ['src/binding.cc' ],
9
+ 'include_dirs' : ['<!@(pg_config --includedir)' ],
10
+ 'libraries' : ['libpq.lib' ],
11
+ 'msvs_settings' : {
12
+ 'VCLinkerTool' : {
13
+ 'AdditionalLibraryDirectories' : [
14
+ '<!@(pg_config --libdir)\\ '
15
+ ]
16
+ },
17
+ }
18
18
}
19
- }, { # OS!="win"
20
- 'include_dirs' : ['<!@(pg_config --includedir)' ],
21
- 'libraries' : ['-lpq -L<!@(pg_config --libdir)' ]
22
- }]
19
+ ],
20
+
21
+ ['OS!="win"' ,
22
+ {
23
+ 'sources' : ['src/binding.cc' ],
24
+ 'include_dirs' : ['<!@(pg_config --includedir)' ],
25
+ 'libraries' : ['-lpq -L<!@(pg_config --libdir)' ]
26
+ }
27
+ ]
23
28
]
24
29
}
25
30
]
You can’t perform that action at this time.
0 commit comments