-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbinding.gyp
33 lines (33 loc) · 956 Bytes
/
binding.gyp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
'targets': [{
'target_name': 'binding',
'sources': [ 'src/cpp/zlib.cpp' ],
# Adapted from https://github.com/brianc/node-postgres/blob/master/binding.gyp
'conditions' : [
['OS=="mac"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['-lz -L<!@(pg_config --libdir)']
}],
['OS=="linux"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['-lz -L<!@(pg_config --libdir)']
}],
['OS=="solaris"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['-lz -L<!@(pg_config --libdir)']
}],
['OS=="win"', {
'include_dirs': ['<!@(pg_config --includedir)'],
'libraries' : ['libz.lib'],
'msvs_settings': {
'VCLinkerTool' : {
'AdditionalLibraryDirectories' : [
'<!@(pg_config --libdir)\\'
]
},
}
}]
]
}
]
}