node-pty 1.2.0-beta.6 → 1.2.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -5
- package/binding.gyp +0 -20
- package/lib/terminal.test.js +4 -4
- package/lib/terminal.test.js.map +1 -1
- package/lib/unixTerminal.test.js +16 -14
- package/lib/unixTerminal.test.js.map +1 -1
- package/lib/windowsPtyAgent.js +32 -95
- package/lib/windowsPtyAgent.js.map +1 -1
- package/lib/windowsTerminal.js +1 -1
- package/lib/windowsTerminal.js.map +1 -1
- package/lib/windowsTerminal.test.js +13 -14
- package/lib/windowsTerminal.test.js.map +1 -1
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/pty.node +0 -0
- package/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/prebuilds/darwin-x64/pty.node +0 -0
- package/prebuilds/darwin-x64/spawn-helper +0 -0
- package/prebuilds/win32-arm64/conpty.node +0 -0
- package/prebuilds/win32-arm64/conpty.pdb +0 -0
- package/prebuilds/win32-arm64/conpty_console_list.node +0 -0
- package/prebuilds/win32-arm64/conpty_console_list.pdb +0 -0
- package/prebuilds/win32-x64/conpty.node +0 -0
- package/prebuilds/win32-x64/conpty.pdb +0 -0
- package/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/prebuilds/win32-x64/conpty_console_list.pdb +0 -0
- package/scripts/post-install.js +1 -5
- package/src/interfaces.ts +8 -0
- package/src/native.d.ts +0 -17
- package/src/terminal.test.ts +4 -4
- package/src/unixTerminal.test.ts +8 -4
- package/src/win/conpty.cc +1 -2
- package/src/windowsPtyAgent.ts +31 -91
- package/src/windowsTerminal.test.ts +13 -13
- package/src/windowsTerminal.ts +1 -1
- package/typings/node-pty.d.ts +9 -8
- package/deps/winpty/.drone.yml +0 -17
- package/deps/winpty/.gitattributes +0 -19
- package/deps/winpty/LICENSE +0 -21
- package/deps/winpty/Makefile +0 -166
- package/deps/winpty/README.md +0 -151
- package/deps/winpty/RELEASES.md +0 -280
- package/deps/winpty/VERSION.txt +0 -1
- package/deps/winpty/configure +0 -167
- package/deps/winpty/misc/BufferResizeTests.cc +0 -90
- package/deps/winpty/misc/ChangeScreenBuffer.cc +0 -53
- package/deps/winpty/misc/ClearConsole.cc +0 -72
- package/deps/winpty/misc/ConinMode.cc +0 -117
- package/deps/winpty/misc/ConinMode.ps1 +0 -116
- package/deps/winpty/misc/ConoutMode.cc +0 -113
- package/deps/winpty/misc/DebugClient.py +0 -42
- package/deps/winpty/misc/DebugServer.py +0 -63
- package/deps/winpty/misc/DumpLines.py +0 -5
- package/deps/winpty/misc/EnableExtendedFlags.txt +0 -46
- package/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +0 -528
- package/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +0 -633
- package/deps/winpty/misc/Font-Report-June2016/CP932.txt +0 -630
- package/deps/winpty/misc/Font-Report-June2016/CP936.txt +0 -630
- package/deps/winpty/misc/Font-Report-June2016/CP949.txt +0 -630
- package/deps/winpty/misc/Font-Report-June2016/CP950.txt +0 -630
- package/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +0 -16
- package/deps/winpty/misc/Font-Report-June2016/Results.txt +0 -4
- package/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +0 -144
- package/deps/winpty/misc/FontSurvey.cc +0 -100
- package/deps/winpty/misc/FormatChar.h +0 -21
- package/deps/winpty/misc/FreezePerfTest.cc +0 -62
- package/deps/winpty/misc/GetCh.cc +0 -20
- package/deps/winpty/misc/GetConsolePos.cc +0 -41
- package/deps/winpty/misc/GetFont.cc +0 -261
- package/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
- package/deps/winpty/misc/IsNewConsole.cc +0 -87
- package/deps/winpty/misc/MouseInputNotes.txt +0 -90
- package/deps/winpty/misc/MoveConsoleWindow.cc +0 -34
- package/deps/winpty/misc/Notes.txt +0 -219
- package/deps/winpty/misc/OSVersion.cc +0 -27
- package/deps/winpty/misc/ScreenBufferFreezeInactive.cc +0 -101
- package/deps/winpty/misc/ScreenBufferTest.cc +0 -671
- package/deps/winpty/misc/ScreenBufferTest2.cc +0 -151
- package/deps/winpty/misc/SelectAllTest.cc +0 -45
- package/deps/winpty/misc/SetBufferSize.cc +0 -32
- package/deps/winpty/misc/SetCursorPos.cc +0 -10
- package/deps/winpty/misc/SetFont.cc +0 -145
- package/deps/winpty/misc/SetWindowRect.cc +0 -36
- package/deps/winpty/misc/ShowArgv.cc +0 -12
- package/deps/winpty/misc/ShowConsoleInput.cc +0 -40
- package/deps/winpty/misc/Spew.py +0 -5
- package/deps/winpty/misc/TestUtil.cc +0 -172
- package/deps/winpty/misc/UnicodeDoubleWidthTest.cc +0 -102
- package/deps/winpty/misc/UnicodeWideTest1.cc +0 -246
- package/deps/winpty/misc/UnicodeWideTest2.cc +0 -130
- package/deps/winpty/misc/UnixEcho.cc +0 -89
- package/deps/winpty/misc/Utf16Echo.cc +0 -46
- package/deps/winpty/misc/VeryLargeRead.cc +0 -122
- package/deps/winpty/misc/VkEscapeTest.cc +0 -56
- package/deps/winpty/misc/Win10ResizeWhileFrozen.cc +0 -52
- package/deps/winpty/misc/Win10WrapTest1.cc +0 -57
- package/deps/winpty/misc/Win10WrapTest2.cc +0 -30
- package/deps/winpty/misc/Win32Echo1.cc +0 -26
- package/deps/winpty/misc/Win32Echo2.cc +0 -19
- package/deps/winpty/misc/Win32Test1.cc +0 -46
- package/deps/winpty/misc/Win32Test2.cc +0 -70
- package/deps/winpty/misc/Win32Test3.cc +0 -78
- package/deps/winpty/misc/Win32Write1.cc +0 -44
- package/deps/winpty/misc/WindowsBugCrashReader.cc +0 -27
- package/deps/winpty/misc/WriteConsole.cc +0 -106
- package/deps/winpty/misc/build32.sh +0 -9
- package/deps/winpty/misc/build64.sh +0 -9
- package/deps/winpty/misc/color-test.sh +0 -212
- package/deps/winpty/misc/font-notes.txt +0 -300
- package/deps/winpty/misc/winbug-15048.cc +0 -201
- package/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
- package/deps/winpty/ship/common_ship.py +0 -53
- package/deps/winpty/ship/make_msvc_package.py +0 -165
- package/deps/winpty/ship/ship.py +0 -108
- package/deps/winpty/src/agent/Agent.cc +0 -613
- package/deps/winpty/src/agent/Agent.h +0 -103
- package/deps/winpty/src/agent/AgentCreateDesktop.cc +0 -84
- package/deps/winpty/src/agent/AgentCreateDesktop.h +0 -28
- package/deps/winpty/src/agent/ConsoleFont.cc +0 -632
- package/deps/winpty/src/agent/ConsoleFont.h +0 -28
- package/deps/winpty/src/agent/ConsoleInput.cc +0 -852
- package/deps/winpty/src/agent/ConsoleInput.h +0 -109
- package/deps/winpty/src/agent/ConsoleInputReencoding.cc +0 -121
- package/deps/winpty/src/agent/ConsoleInputReencoding.h +0 -36
- package/deps/winpty/src/agent/ConsoleLine.cc +0 -152
- package/deps/winpty/src/agent/ConsoleLine.h +0 -41
- package/deps/winpty/src/agent/Coord.h +0 -87
- package/deps/winpty/src/agent/DebugShowInput.cc +0 -239
- package/deps/winpty/src/agent/DebugShowInput.h +0 -32
- package/deps/winpty/src/agent/DefaultInputMap.cc +0 -422
- package/deps/winpty/src/agent/DefaultInputMap.h +0 -28
- package/deps/winpty/src/agent/DsrSender.h +0 -30
- package/deps/winpty/src/agent/EventLoop.cc +0 -99
- package/deps/winpty/src/agent/EventLoop.h +0 -47
- package/deps/winpty/src/agent/InputMap.cc +0 -246
- package/deps/winpty/src/agent/InputMap.h +0 -114
- package/deps/winpty/src/agent/LargeConsoleRead.cc +0 -71
- package/deps/winpty/src/agent/LargeConsoleRead.h +0 -68
- package/deps/winpty/src/agent/NamedPipe.cc +0 -378
- package/deps/winpty/src/agent/NamedPipe.h +0 -125
- package/deps/winpty/src/agent/Scraper.cc +0 -699
- package/deps/winpty/src/agent/Scraper.h +0 -103
- package/deps/winpty/src/agent/SimplePool.h +0 -75
- package/deps/winpty/src/agent/SmallRect.h +0 -143
- package/deps/winpty/src/agent/Terminal.cc +0 -535
- package/deps/winpty/src/agent/Terminal.h +0 -69
- package/deps/winpty/src/agent/UnicodeEncoding.h +0 -157
- package/deps/winpty/src/agent/UnicodeEncodingTest.cc +0 -189
- package/deps/winpty/src/agent/Win32Console.cc +0 -107
- package/deps/winpty/src/agent/Win32Console.h +0 -67
- package/deps/winpty/src/agent/Win32ConsoleBuffer.cc +0 -193
- package/deps/winpty/src/agent/Win32ConsoleBuffer.h +0 -99
- package/deps/winpty/src/agent/main.cc +0 -114
- package/deps/winpty/src/agent/subdir.mk +0 -61
- package/deps/winpty/src/configurations.gypi +0 -60
- package/deps/winpty/src/debugserver/DebugServer.cc +0 -117
- package/deps/winpty/src/debugserver/subdir.mk +0 -41
- package/deps/winpty/src/include/winpty.h +0 -242
- package/deps/winpty/src/include/winpty_constants.h +0 -131
- package/deps/winpty/src/libwinpty/AgentLocation.cc +0 -75
- package/deps/winpty/src/libwinpty/AgentLocation.h +0 -28
- package/deps/winpty/src/libwinpty/LibWinptyException.h +0 -54
- package/deps/winpty/src/libwinpty/WinptyInternal.h +0 -72
- package/deps/winpty/src/libwinpty/subdir.mk +0 -46
- package/deps/winpty/src/libwinpty/winpty.cc +0 -970
- package/deps/winpty/src/shared/AgentMsg.h +0 -38
- package/deps/winpty/src/shared/BackgroundDesktop.cc +0 -122
- package/deps/winpty/src/shared/BackgroundDesktop.h +0 -73
- package/deps/winpty/src/shared/Buffer.cc +0 -103
- package/deps/winpty/src/shared/Buffer.h +0 -102
- package/deps/winpty/src/shared/DebugClient.cc +0 -187
- package/deps/winpty/src/shared/DebugClient.h +0 -38
- package/deps/winpty/src/shared/GenRandom.cc +0 -138
- package/deps/winpty/src/shared/GenRandom.h +0 -55
- package/deps/winpty/src/shared/GetCommitHash.bat +0 -13
- package/deps/winpty/src/shared/Mutex.h +0 -54
- package/deps/winpty/src/shared/OsModule.h +0 -63
- package/deps/winpty/src/shared/OwnedHandle.cc +0 -36
- package/deps/winpty/src/shared/OwnedHandle.h +0 -45
- package/deps/winpty/src/shared/PrecompiledHeader.h +0 -43
- package/deps/winpty/src/shared/StringBuilder.h +0 -227
- package/deps/winpty/src/shared/StringBuilderTest.cc +0 -114
- package/deps/winpty/src/shared/StringUtil.cc +0 -55
- package/deps/winpty/src/shared/StringUtil.h +0 -80
- package/deps/winpty/src/shared/TimeMeasurement.h +0 -63
- package/deps/winpty/src/shared/UnixCtrlChars.h +0 -45
- package/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
- package/deps/winpty/src/shared/WindowsSecurity.cc +0 -460
- package/deps/winpty/src/shared/WindowsSecurity.h +0 -104
- package/deps/winpty/src/shared/WindowsVersion.cc +0 -252
- package/deps/winpty/src/shared/WindowsVersion.h +0 -29
- package/deps/winpty/src/shared/WinptyAssert.cc +0 -55
- package/deps/winpty/src/shared/WinptyAssert.h +0 -64
- package/deps/winpty/src/shared/WinptyException.cc +0 -57
- package/deps/winpty/src/shared/WinptyException.h +0 -43
- package/deps/winpty/src/shared/WinptyVersion.cc +0 -42
- package/deps/winpty/src/shared/WinptyVersion.h +0 -27
- package/deps/winpty/src/shared/winpty_snprintf.h +0 -99
- package/deps/winpty/src/subdir.mk +0 -5
- package/deps/winpty/src/tests/subdir.mk +0 -28
- package/deps/winpty/src/tests/trivial_test.cc +0 -158
- package/deps/winpty/src/unix-adapter/InputHandler.cc +0 -114
- package/deps/winpty/src/unix-adapter/InputHandler.h +0 -56
- package/deps/winpty/src/unix-adapter/OutputHandler.cc +0 -80
- package/deps/winpty/src/unix-adapter/OutputHandler.h +0 -53
- package/deps/winpty/src/unix-adapter/Util.cc +0 -86
- package/deps/winpty/src/unix-adapter/Util.h +0 -31
- package/deps/winpty/src/unix-adapter/WakeupFd.cc +0 -70
- package/deps/winpty/src/unix-adapter/WakeupFd.h +0 -42
- package/deps/winpty/src/unix-adapter/main.cc +0 -729
- package/deps/winpty/src/unix-adapter/subdir.mk +0 -41
- package/deps/winpty/src/winpty.gyp +0 -236
- package/deps/winpty/vcbuild.bat +0 -83
- package/prebuilds/win32-arm64/pty.node +0 -0
- package/prebuilds/win32-arm64/pty.pdb +0 -0
- package/prebuilds/win32-arm64/winpty-agent.exe +0 -0
- package/prebuilds/win32-arm64/winpty-agent.pdb +0 -0
- package/prebuilds/win32-arm64/winpty.dll +0 -0
- package/prebuilds/win32-arm64/winpty.pdb +0 -0
- package/prebuilds/win32-x64/pty.node +0 -0
- package/prebuilds/win32-x64/pty.pdb +0 -0
- package/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/prebuilds/win32-x64/winpty-agent.pdb +0 -0
- package/prebuilds/win32-x64/winpty.dll +0 -0
- package/prebuilds/win32-x64/winpty.pdb +0 -0
- package/src/win/winpty.cc +0 -333
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# Copyright (c) 2011-2015 Ryan Prichard
|
|
2
|
-
#
|
|
3
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
# of this software and associated documentation files (the "Software"), to
|
|
5
|
-
# deal in the Software without restriction, including without limitation the
|
|
6
|
-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
7
|
-
# sell copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
# furnished to do so, subject to the following conditions:
|
|
9
|
-
#
|
|
10
|
-
# The above copyright notice and this permission notice shall be included in
|
|
11
|
-
# all copies or substantial portions of the Software.
|
|
12
|
-
#
|
|
13
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
18
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
19
|
-
# IN THE SOFTWARE.
|
|
20
|
-
|
|
21
|
-
ALL_TARGETS += build/$(UNIX_ADAPTER_EXE)
|
|
22
|
-
|
|
23
|
-
$(eval $(call def_unix_target,unix-adapter,))
|
|
24
|
-
|
|
25
|
-
UNIX_ADAPTER_OBJECTS = \
|
|
26
|
-
build/unix-adapter/unix-adapter/InputHandler.o \
|
|
27
|
-
build/unix-adapter/unix-adapter/OutputHandler.o \
|
|
28
|
-
build/unix-adapter/unix-adapter/Util.o \
|
|
29
|
-
build/unix-adapter/unix-adapter/WakeupFd.o \
|
|
30
|
-
build/unix-adapter/unix-adapter/main.o \
|
|
31
|
-
build/unix-adapter/shared/DebugClient.o \
|
|
32
|
-
build/unix-adapter/shared/WinptyAssert.o \
|
|
33
|
-
build/unix-adapter/shared/WinptyVersion.o
|
|
34
|
-
|
|
35
|
-
build/unix-adapter/shared/WinptyVersion.o : build/gen/GenVersion.h
|
|
36
|
-
|
|
37
|
-
build/$(UNIX_ADAPTER_EXE) : $(UNIX_ADAPTER_OBJECTS) build/winpty.dll
|
|
38
|
-
$(info Linking $@)
|
|
39
|
-
@$(UNIX_CXX) $(UNIX_LDFLAGS) -o $@ $^
|
|
40
|
-
|
|
41
|
-
-include $(UNIX_ADAPTER_OBJECTS:.o=.d)
|
|
@@ -1,236 +0,0 @@
|
|
|
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_configuration_attributes': {
|
|
44
|
-
'SpectreMitigation': 'Spectre'
|
|
45
|
-
},
|
|
46
|
-
'msvs_settings': {
|
|
47
|
-
# Specify this setting here to override a setting from somewhere
|
|
48
|
-
# else, such as node's common.gypi.
|
|
49
|
-
'VCCLCompilerTool': {
|
|
50
|
-
'ExceptionHandling': '1', # /EHsc
|
|
51
|
-
'AdditionalOptions': [
|
|
52
|
-
'/guard:cf',
|
|
53
|
-
'/w34146',
|
|
54
|
-
'/w34244',
|
|
55
|
-
'/w34267',
|
|
56
|
-
'/ZH:SHA_256'
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
'VCLinkerTool': {
|
|
60
|
-
'AdditionalOptions': [
|
|
61
|
-
'/guard:cf'
|
|
62
|
-
]
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
'sources' : [
|
|
66
|
-
'agent/Agent.h',
|
|
67
|
-
'agent/Agent.cc',
|
|
68
|
-
'agent/AgentCreateDesktop.h',
|
|
69
|
-
'agent/AgentCreateDesktop.cc',
|
|
70
|
-
'agent/ConsoleFont.cc',
|
|
71
|
-
'agent/ConsoleFont.h',
|
|
72
|
-
'agent/ConsoleInput.cc',
|
|
73
|
-
'agent/ConsoleInput.h',
|
|
74
|
-
'agent/ConsoleInputReencoding.cc',
|
|
75
|
-
'agent/ConsoleInputReencoding.h',
|
|
76
|
-
'agent/ConsoleLine.cc',
|
|
77
|
-
'agent/ConsoleLine.h',
|
|
78
|
-
'agent/Coord.h',
|
|
79
|
-
'agent/DebugShowInput.h',
|
|
80
|
-
'agent/DebugShowInput.cc',
|
|
81
|
-
'agent/DefaultInputMap.h',
|
|
82
|
-
'agent/DefaultInputMap.cc',
|
|
83
|
-
'agent/DsrSender.h',
|
|
84
|
-
'agent/EventLoop.h',
|
|
85
|
-
'agent/EventLoop.cc',
|
|
86
|
-
'agent/InputMap.h',
|
|
87
|
-
'agent/InputMap.cc',
|
|
88
|
-
'agent/LargeConsoleRead.h',
|
|
89
|
-
'agent/LargeConsoleRead.cc',
|
|
90
|
-
'agent/NamedPipe.h',
|
|
91
|
-
'agent/NamedPipe.cc',
|
|
92
|
-
'agent/Scraper.h',
|
|
93
|
-
'agent/Scraper.cc',
|
|
94
|
-
'agent/SimplePool.h',
|
|
95
|
-
'agent/SmallRect.h',
|
|
96
|
-
'agent/Terminal.h',
|
|
97
|
-
'agent/Terminal.cc',
|
|
98
|
-
'agent/UnicodeEncoding.h',
|
|
99
|
-
'agent/Win32Console.cc',
|
|
100
|
-
'agent/Win32Console.h',
|
|
101
|
-
'agent/Win32ConsoleBuffer.cc',
|
|
102
|
-
'agent/Win32ConsoleBuffer.h',
|
|
103
|
-
'agent/main.cc',
|
|
104
|
-
'shared/AgentMsg.h',
|
|
105
|
-
'shared/BackgroundDesktop.h',
|
|
106
|
-
'shared/BackgroundDesktop.cc',
|
|
107
|
-
'shared/Buffer.h',
|
|
108
|
-
'shared/Buffer.cc',
|
|
109
|
-
'shared/DebugClient.h',
|
|
110
|
-
'shared/DebugClient.cc',
|
|
111
|
-
'shared/GenRandom.h',
|
|
112
|
-
'shared/GenRandom.cc',
|
|
113
|
-
'shared/OsModule.h',
|
|
114
|
-
'shared/OwnedHandle.h',
|
|
115
|
-
'shared/OwnedHandle.cc',
|
|
116
|
-
'shared/StringBuilder.h',
|
|
117
|
-
'shared/StringUtil.cc',
|
|
118
|
-
'shared/StringUtil.h',
|
|
119
|
-
'shared/UnixCtrlChars.h',
|
|
120
|
-
'shared/WindowsSecurity.cc',
|
|
121
|
-
'shared/WindowsSecurity.h',
|
|
122
|
-
'shared/WindowsVersion.h',
|
|
123
|
-
'shared/WindowsVersion.cc',
|
|
124
|
-
'shared/WinptyAssert.h',
|
|
125
|
-
'shared/WinptyAssert.cc',
|
|
126
|
-
'shared/WinptyException.h',
|
|
127
|
-
'shared/WinptyException.cc',
|
|
128
|
-
'shared/WinptyVersion.h',
|
|
129
|
-
'shared/WinptyVersion.cc',
|
|
130
|
-
'shared/winpty_snprintf.h',
|
|
131
|
-
],
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
'target_name' : 'winpty',
|
|
135
|
-
'type' : 'shared_library',
|
|
136
|
-
'include_dirs' : [
|
|
137
|
-
'include',
|
|
138
|
-
],
|
|
139
|
-
'defines' : [
|
|
140
|
-
'COMPILING_WINPTY_DLL',
|
|
141
|
-
],
|
|
142
|
-
'libraries' : [
|
|
143
|
-
'-ladvapi32',
|
|
144
|
-
'-luser32',
|
|
145
|
-
],
|
|
146
|
-
'msvs_configuration_attributes': {
|
|
147
|
-
'SpectreMitigation': 'Spectre'
|
|
148
|
-
},
|
|
149
|
-
'msvs_settings': {
|
|
150
|
-
# Specify this setting here to override a setting from somewhere
|
|
151
|
-
# else, such as node's common.gypi.
|
|
152
|
-
'VCCLCompilerTool': {
|
|
153
|
-
'ExceptionHandling': '1', # /EHsc
|
|
154
|
-
'AdditionalOptions': [
|
|
155
|
-
'/guard:cf',
|
|
156
|
-
'/w34146',
|
|
157
|
-
'/w34244',
|
|
158
|
-
'/w34267',
|
|
159
|
-
'/ZH:SHA_256'
|
|
160
|
-
]
|
|
161
|
-
},
|
|
162
|
-
'VCLinkerTool': {
|
|
163
|
-
'AdditionalOptions': [
|
|
164
|
-
'/guard:cf'
|
|
165
|
-
]
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
'sources' : [
|
|
169
|
-
'include/winpty.h',
|
|
170
|
-
'libwinpty/AgentLocation.cc',
|
|
171
|
-
'libwinpty/AgentLocation.h',
|
|
172
|
-
'libwinpty/winpty.cc',
|
|
173
|
-
'shared/AgentMsg.h',
|
|
174
|
-
'shared/BackgroundDesktop.h',
|
|
175
|
-
'shared/BackgroundDesktop.cc',
|
|
176
|
-
'shared/Buffer.h',
|
|
177
|
-
'shared/Buffer.cc',
|
|
178
|
-
'shared/DebugClient.h',
|
|
179
|
-
'shared/DebugClient.cc',
|
|
180
|
-
'shared/GenRandom.h',
|
|
181
|
-
'shared/GenRandom.cc',
|
|
182
|
-
'shared/OsModule.h',
|
|
183
|
-
'shared/OwnedHandle.h',
|
|
184
|
-
'shared/OwnedHandle.cc',
|
|
185
|
-
'shared/StringBuilder.h',
|
|
186
|
-
'shared/StringUtil.cc',
|
|
187
|
-
'shared/StringUtil.h',
|
|
188
|
-
'shared/WindowsSecurity.cc',
|
|
189
|
-
'shared/WindowsSecurity.h',
|
|
190
|
-
'shared/WindowsVersion.h',
|
|
191
|
-
'shared/WindowsVersion.cc',
|
|
192
|
-
'shared/WinptyAssert.h',
|
|
193
|
-
'shared/WinptyAssert.cc',
|
|
194
|
-
'shared/WinptyException.h',
|
|
195
|
-
'shared/WinptyException.cc',
|
|
196
|
-
'shared/WinptyVersion.h',
|
|
197
|
-
'shared/WinptyVersion.cc',
|
|
198
|
-
'shared/winpty_snprintf.h',
|
|
199
|
-
],
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
'target_name' : 'winpty-debugserver',
|
|
203
|
-
'type' : 'executable',
|
|
204
|
-
'msvs_settings': {
|
|
205
|
-
# Specify this setting here to override a setting from somewhere
|
|
206
|
-
# else, such as node's common.gypi.
|
|
207
|
-
'VCCLCompilerTool': {
|
|
208
|
-
'ExceptionHandling': '1', # /EHsc
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
'sources' : [
|
|
212
|
-
'debugserver/DebugServer.cc',
|
|
213
|
-
'shared/DebugClient.h',
|
|
214
|
-
'shared/DebugClient.cc',
|
|
215
|
-
'shared/OwnedHandle.h',
|
|
216
|
-
'shared/OwnedHandle.cc',
|
|
217
|
-
'shared/OsModule.h',
|
|
218
|
-
'shared/StringBuilder.h',
|
|
219
|
-
'shared/StringUtil.cc',
|
|
220
|
-
'shared/StringUtil.h',
|
|
221
|
-
'shared/WindowsSecurity.h',
|
|
222
|
-
'shared/WindowsSecurity.cc',
|
|
223
|
-
'shared/WindowsVersion.h',
|
|
224
|
-
'shared/WindowsVersion.cc',
|
|
225
|
-
'shared/WinptyAssert.h',
|
|
226
|
-
'shared/WinptyAssert.cc',
|
|
227
|
-
'shared/WinptyException.h',
|
|
228
|
-
'shared/WinptyException.cc',
|
|
229
|
-
'shared/winpty_snprintf.h',
|
|
230
|
-
],
|
|
231
|
-
'libraries' : [
|
|
232
|
-
'-ladvapi32',
|
|
233
|
-
],
|
|
234
|
-
}
|
|
235
|
-
],
|
|
236
|
-
}
|
package/deps/winpty/vcbuild.bat
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
REM -- Script requirements:
|
|
4
|
-
REM --
|
|
5
|
-
REM -- * git This program must be in the Path to check out
|
|
6
|
-
REM -- build-gyp. If that directory already exists, then
|
|
7
|
-
REM -- git isn't necessary, but if it is missing, no
|
|
8
|
-
REM -- commit hash will be embedded into binaries.
|
|
9
|
-
REM --
|
|
10
|
-
REM -- * python A non-Cygwin Python 2 python.exe must be in the
|
|
11
|
-
REM -- Path to run gyp.
|
|
12
|
-
REM --
|
|
13
|
-
REM -- * msbuild msbuild must be in the Path. It is probably
|
|
14
|
-
REM -- important to have msbuild from the correct MSVC
|
|
15
|
-
REM -- release.
|
|
16
|
-
REM --
|
|
17
|
-
REM -- The script's output binaries are in the src/Release/{Win32,x64}
|
|
18
|
-
REM -- directory.
|
|
19
|
-
|
|
20
|
-
REM -------------------------------------------------------------------------
|
|
21
|
-
REM -- Parse arguments
|
|
22
|
-
|
|
23
|
-
setlocal
|
|
24
|
-
cd %~dp0
|
|
25
|
-
set GYP_ARGS=
|
|
26
|
-
set MSVC_PLATFORM=x64
|
|
27
|
-
|
|
28
|
-
:ParamLoop
|
|
29
|
-
if "%1" == "" goto :ParamDone
|
|
30
|
-
if "%1" == "--msvc-platform" (
|
|
31
|
-
REM -- One of Win32 or x64.
|
|
32
|
-
set MSVC_PLATFORM=%2
|
|
33
|
-
shift && shift
|
|
34
|
-
goto :ParamLoop
|
|
35
|
-
)
|
|
36
|
-
if "%1" == "--gyp-msvs-version" (
|
|
37
|
-
set GYP_ARGS=%GYP_ARGS% -G msvs_version=%2
|
|
38
|
-
shift && shift
|
|
39
|
-
goto :ParamLoop
|
|
40
|
-
)
|
|
41
|
-
if "%1" == "--toolset" (
|
|
42
|
-
set GYP_ARGS=%GYP_ARGS% -D WINPTY_MSBUILD_TOOLSET=%2
|
|
43
|
-
shift && shift
|
|
44
|
-
goto :ParamLoop
|
|
45
|
-
)
|
|
46
|
-
if "%1" == "--commit-hash" (
|
|
47
|
-
set GYP_ARGS=%GYP_ARGS% -D WINPTY_COMMIT_HASH=%2
|
|
48
|
-
shift && shift
|
|
49
|
-
goto :ParamLoop
|
|
50
|
-
)
|
|
51
|
-
echo error: Unrecognized argument: %1
|
|
52
|
-
exit /b 1
|
|
53
|
-
:ParamDone
|
|
54
|
-
|
|
55
|
-
REM -------------------------------------------------------------------------
|
|
56
|
-
REM -- Check out GYP. GYP doesn't seem to have releases, so just use the
|
|
57
|
-
REM -- current master commit.
|
|
58
|
-
|
|
59
|
-
if not exist build-gyp (
|
|
60
|
-
git clone https://chromium.googlesource.com/external/gyp build-gyp || (
|
|
61
|
-
echo error: GYP clone failed
|
|
62
|
-
exit /b 1
|
|
63
|
-
)
|
|
64
|
-
)
|
|
65
|
-
|
|
66
|
-
REM -------------------------------------------------------------------------
|
|
67
|
-
REM -- Run gyp to generate MSVC project files.
|
|
68
|
-
|
|
69
|
-
cd src
|
|
70
|
-
|
|
71
|
-
call ..\build-gyp\gyp.bat winpty.gyp -I configurations.gypi %GYP_ARGS%
|
|
72
|
-
if errorlevel 1 (
|
|
73
|
-
echo error: GYP failed
|
|
74
|
-
exit /b 1
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
REM -------------------------------------------------------------------------
|
|
78
|
-
REM -- Compile the project.
|
|
79
|
-
|
|
80
|
-
msbuild winpty.sln /m /p:Platform=%MSVC_PLATFORM% || (
|
|
81
|
-
echo error: msbuild failed
|
|
82
|
-
exit /b 1
|
|
83
|
-
)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|