-
Notifications
You must be signed in to change notification settings - Fork 211
/
binding.gyp
44 lines (44 loc) · 1.1 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
{
'targets': [{
'target_name': 'pty',
'include_dirs' : [
'<!(node -e "require(\'nan\')")'
],
'conditions': [
['OS=="win"', {
# "I disabled those warnings because of winpty" - @peters (GH-40)
'msvs_disabled_warnings': [ 4506, 4530 ],
'include_dirs' : [
'deps/winpty/include',
],
'dependencies' : [
'deps/winpty/winpty.gyp:winpty-agent',
'deps/winpty/winpty.gyp:winpty',
],
'sources' : [
'src/win/pty.cc'
],
'libraries': [
'shlwapi.lib'
],
}, { # OS!="win"
'sources': [
'src/unix/pty.cc'
],
'libraries': [
'-lutil',
'-L/usr/lib',
'-L/usr/local/lib'
],
}],
# http://www.gnu.org/software/gnulib/manual/html_node/forkpty.html
# One some systems (at least including Cygwin, Interix,
# OSF/1 4 and 5, and Mac OS X) linking with -lutil is not required.
['OS=="mac" or OS=="solaris"', {
'libraries!': [
'-lutil'
]
}],
]
}]
}