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.
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++"
13 'WINPTY_COMMIT_HASH%': '<!(cmd /c "cd shared && GetCommitHash.bat")',
19 '_WIN32_WINNT=0x0501',
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)")',
30 'target_name' : 'winpty-agent',
31 'type' : 'executable',
36 'WINPTY_AGENT_ASSERT',
44 # Specify this setting here to override a setting from somewhere
45 # else, such as node's common.gypi.
47 'ExceptionHandling': '1', # /EHsc
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',
64 'agent/DebugShowInput.h',
65 'agent/DebugShowInput.cc',
66 'agent/DefaultInputMap.h',
67 'agent/DefaultInputMap.cc',
73 'agent/LargeConsoleRead.h',
74 'agent/LargeConsoleRead.cc',
83 'agent/UnicodeEncoding.h',
84 'agent/Win32Console.cc',
85 'agent/Win32Console.h',
86 'agent/Win32ConsoleBuffer.cc',
87 'agent/Win32ConsoleBuffer.h',
90 'shared/BackgroundDesktop.h',
91 'shared/BackgroundDesktop.cc',
94 'shared/DebugClient.h',
95 'shared/DebugClient.cc',
97 'shared/GenRandom.cc',
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',
119 'target_name' : 'winpty',
120 'type' : 'shared_library',
125 'COMPILING_WINPTY_DLL',
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
140 'libwinpty/AgentLocation.cc',
141 'libwinpty/AgentLocation.h',
142 'libwinpty/winpty.cc',
144 'shared/BackgroundDesktop.h',
145 'shared/BackgroundDesktop.cc',
148 'shared/DebugClient.h',
149 'shared/DebugClient.cc',
150 'shared/GenRandom.h',
151 'shared/GenRandom.cc',
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',
172 'target_name' : 'winpty-debugserver',
173 'type' : 'executable',
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
182 'debugserver/DebugServer.cc',
183 'shared/DebugClient.h',
184 'shared/DebugClient.cc',
185 'shared/OwnedHandle.h',
186 'shared/OwnedHandle.cc',
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',