installed pty
[VSoRC/.git] / node_modules / node-pty / deps / winpty / src / winpty.gyp
1 {
2     # The MSVC generator is the default.  Select the compiler version by
3     # passing -G msvs_version=<ver> to gyp.  <ver> is a string like 2013e.
4     # See gyp\pylib\gyp\MSVSVersion.py for sample version strings.  You
5     # can also pass configurations.gypi to gyp for 32-bit and 64-bit builds.
6     # See that file for details.
7     #
8     # Pass --format=make to gyp to generate a Makefile instead.  The Makefile
9     # can be configured by passing variables to make, e.g.:
10     #    make -j4 CXX=i686-w64-mingw32-g++ LDFLAGS="-static -static-libgcc -static-libstdc++"
11
12     'variables': {
13         'WINPTY_COMMIT_HASH%': '<!(cmd /c "cd shared && GetCommitHash.bat")',
14     },
15     'target_defaults' : {
16         'defines' : [
17             'UNICODE',
18             '_UNICODE',
19             '_WIN32_WINNT=0x0501',
20             'NOMINMAX',
21         ],
22         'include_dirs': [
23             # Add the 'src/gen' directory to the include path and force gyp to
24             # run the script (re)generating the version header.
25             '<!(cmd /c "cd shared && UpdateGenVersion.bat <(WINPTY_COMMIT_HASH)")',
26         ],
27     },
28     'targets' : [
29         {
30             'target_name' : 'winpty-agent',
31             'type' : 'executable',
32             'include_dirs' : [
33                 'include',
34             ],
35             'defines' : [
36                 'WINPTY_AGENT_ASSERT',
37             ],
38             'libraries' : [
39                 '-ladvapi32',
40                 '-lshell32',
41                 '-luser32',
42             ],
43             'msvs_settings': {
44                 # Specify this setting here to override a setting from somewhere
45                 # else, such as node's common.gypi.
46                 'VCCLCompilerTool': {
47                     'ExceptionHandling': '1', # /EHsc
48                 },
49             },
50             'sources' : [
51                 'agent/Agent.h',
52                 'agent/Agent.cc',
53                 'agent/AgentCreateDesktop.h',
54                 'agent/AgentCreateDesktop.cc',
55                 'agent/ConsoleFont.cc',
56                 'agent/ConsoleFont.h',
57                 'agent/ConsoleInput.cc',
58                 'agent/ConsoleInput.h',
59                 'agent/ConsoleInputReencoding.cc',
60                 'agent/ConsoleInputReencoding.h',
61                 'agent/ConsoleLine.cc',
62                 'agent/ConsoleLine.h',
63                 'agent/Coord.h',
64                 'agent/DebugShowInput.h',
65                 'agent/DebugShowInput.cc',
66                 'agent/DefaultInputMap.h',
67                 'agent/DefaultInputMap.cc',
68                 'agent/DsrSender.h',
69                 'agent/EventLoop.h',
70                 'agent/EventLoop.cc',
71                 'agent/InputMap.h',
72                 'agent/InputMap.cc',
73                 'agent/LargeConsoleRead.h',
74                 'agent/LargeConsoleRead.cc',
75                 'agent/NamedPipe.h',
76                 'agent/NamedPipe.cc',
77                 'agent/Scraper.h',
78                 'agent/Scraper.cc',
79                 'agent/SimplePool.h',
80                 'agent/SmallRect.h',
81                 'agent/Terminal.h',
82                 'agent/Terminal.cc',
83                 'agent/UnicodeEncoding.h',
84                 'agent/Win32Console.cc',
85                 'agent/Win32Console.h',
86                 'agent/Win32ConsoleBuffer.cc',
87                 'agent/Win32ConsoleBuffer.h',
88                 'agent/main.cc',
89                 'shared/AgentMsg.h',
90                 'shared/BackgroundDesktop.h',
91                 'shared/BackgroundDesktop.cc',
92                 'shared/Buffer.h',
93                 'shared/Buffer.cc',
94                 'shared/DebugClient.h',
95                 'shared/DebugClient.cc',
96                 'shared/GenRandom.h',
97                 'shared/GenRandom.cc',
98                 'shared/OsModule.h',
99                 'shared/OwnedHandle.h',
100                 'shared/OwnedHandle.cc',
101                 'shared/StringBuilder.h',
102                 'shared/StringUtil.cc',
103                 'shared/StringUtil.h',
104                 'shared/UnixCtrlChars.h',
105                 'shared/WindowsSecurity.cc',
106                 'shared/WindowsSecurity.h',
107                 'shared/WindowsVersion.h',
108                 'shared/WindowsVersion.cc',
109                 'shared/WinptyAssert.h',
110                 'shared/WinptyAssert.cc',
111                 'shared/WinptyException.h',
112                 'shared/WinptyException.cc',
113                 'shared/WinptyVersion.h',
114                 'shared/WinptyVersion.cc',
115                 'shared/winpty_snprintf.h',
116             ],
117         },
118         {
119             'target_name' : 'winpty',
120             'type' : 'shared_library',
121             'include_dirs' : [
122                 'include',
123             ],
124             'defines' : [
125                 'COMPILING_WINPTY_DLL',
126             ],
127             'libraries' : [
128                 '-ladvapi32',
129                 '-luser32',
130             ],
131             'msvs_settings': {
132                 # Specify this setting here to override a setting from somewhere
133                 # else, such as node's common.gypi.
134                 'VCCLCompilerTool': {
135                     'ExceptionHandling': '1', # /EHsc
136                 },
137             },
138             'sources' : [
139                 'include/winpty.h',
140                 'libwinpty/AgentLocation.cc',
141                 'libwinpty/AgentLocation.h',
142                 'libwinpty/winpty.cc',
143                 'shared/AgentMsg.h',
144                 'shared/BackgroundDesktop.h',
145                 'shared/BackgroundDesktop.cc',
146                 'shared/Buffer.h',
147                 'shared/Buffer.cc',
148                 'shared/DebugClient.h',
149                 'shared/DebugClient.cc',
150                 'shared/GenRandom.h',
151                 'shared/GenRandom.cc',
152                 'shared/OsModule.h',
153                 'shared/OwnedHandle.h',
154                 'shared/OwnedHandle.cc',
155                 'shared/StringBuilder.h',
156                 'shared/StringUtil.cc',
157                 'shared/StringUtil.h',
158                 'shared/WindowsSecurity.cc',
159                 'shared/WindowsSecurity.h',
160                 'shared/WindowsVersion.h',
161                 'shared/WindowsVersion.cc',
162                 'shared/WinptyAssert.h',
163                 'shared/WinptyAssert.cc',
164                 'shared/WinptyException.h',
165                 'shared/WinptyException.cc',
166                 'shared/WinptyVersion.h',
167                 'shared/WinptyVersion.cc',
168                 'shared/winpty_snprintf.h',
169             ],
170         },
171         {
172             'target_name' : 'winpty-debugserver',
173             'type' : 'executable',
174             'msvs_settings': {
175                 # Specify this setting here to override a setting from somewhere
176                 # else, such as node's common.gypi.
177                 'VCCLCompilerTool': {
178                     'ExceptionHandling': '1', # /EHsc
179                 },
180             },
181             'sources' : [
182                 'debugserver/DebugServer.cc',
183                 'shared/DebugClient.h',
184                 'shared/DebugClient.cc',
185                 'shared/OwnedHandle.h',
186                 'shared/OwnedHandle.cc',
187                 'shared/OsModule.h',
188                 'shared/StringBuilder.h',
189                 'shared/StringUtil.cc',
190                 'shared/StringUtil.h',
191                 'shared/WindowsSecurity.h',
192                 'shared/WindowsSecurity.cc',
193                 'shared/WindowsVersion.h',
194                 'shared/WindowsVersion.cc',
195                 'shared/WinptyAssert.h',
196                 'shared/WinptyAssert.cc',
197                 'shared/WinptyException.h',
198                 'shared/WinptyException.cc',
199                 'shared/winpty_snprintf.h',
200             ],
201             'libraries' : [
202                 '-ladvapi32',
203             ],
204         }
205     ],
206 }