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 |
|
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 | }, {
|
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 |
|
62 |
|
63 |
|
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 | }
|