UNPKG

2 kBPlain TextView Raw
1{
2 'conditions': [
3 ['OS=="win"', {
4 'targets': [
5 {
6 'target_name': 'conpty',
7 'include_dirs' : [
8 '<!(node -e "require(\'nan\')")'
9 ],
10 'sources' : [
11 'src/win/conpty.cc',
12 'src/win/path_util.cc'
13 ],
14 'libraries': [
15 'shlwapi.lib'
16 ]
17 },
18 {
19 'target_name': 'conpty_console_list',
20 'include_dirs' : [
21 '<!(node -e "require(\'nan\')")'
22 ],
23 'sources' : [
24 'src/win/conpty_console_list.cc'
25 ]
26 },
27 {
28 'target_name': 'pty',
29 'include_dirs' : [
30 '<!(node -e "require(\'nan\')")',
31 'deps/winpty/src/include',
32 ],
33 # Disabled due to winpty
34 'msvs_disabled_warnings': [ 4506, 4530 ],
35 'dependencies' : [
36 'deps/winpty/src/winpty.gyp:winpty-agent',
37 'deps/winpty/src/winpty.gyp:winpty',
38 ],
39 'sources' : [
40 'src/win/winpty.cc',
41 'src/win/path_util.cc'
42 ],
43 'libraries': [
44 'shlwapi.lib'
45 ],
46 }
47 ]
48 }, { # OS!="win"
49 'targets': [{
50 'target_name': 'pty',
51 'include_dirs' : [
52 '<!(node -e "require(\'nan\')")'
53 ],
54 'sources': [
55 'src/unix/pty.cc'
56 ],
57 'libraries': [
58 '-lutil'
59 ],
60 'conditions': [
61 # http://www.gnu.org/software/gnulib/manual/html_node/forkpty.html
62 # One some systems (at least including Cygwin, Interix,
63 # OSF/1 4 and 5, and Mac OS X) linking with -lutil is not required.
64 ['OS=="mac" or OS=="solaris"', {
65 'libraries!': [
66 '-lutil'
67 ]
68 }],
69 ['OS=="mac"', {
70 "xcode_settings": {
71 "MACOSX_DEPLOYMENT_TARGET":"10.7"
72 }
73 }]
74 ]
75 }]
76 }]
77 ]
78}