installed pty
[VSoRC/.git] / node_modules / node-pty / binding.gyp
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               "OTHER_CPLUSPLUSFLAGS": [
72                 "-std=c++11",
73                 "-stdlib=libc++"
74               ],
75               "OTHER_LDFLAGS": [
76                 "-stdlib=libc++"
77               ],
78               "MACOSX_DEPLOYMENT_TARGET":"10.7"
79             }
80           }]
81         ]
82       }]
83     }]
84   ]
85 }