forked from rprichard/winpty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-pty4j-libpty.bat
executable file
·39 lines (30 loc) · 1.38 KB
/
build-pty4j-libpty.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
setlocal
cd %~dp0..
set Path=C:\Python27;C:\Program Files\Git\cmd;%Path%
rmdir /s/q build-libpty 2>NUL
mkdir build-libpty\win
mkdir build-libpty\win\x86
mkdir build-libpty\win\x86_64
mkdir build-libpty\win\xp
mkdir build-libpty\win\arm64
rmdir /s/q src\Release 2>NUL
rmdir /s/q src\.vs 2>NUL
del src\*.vcxproj src\*.vcxproj.filters src\*.sln src\*.sdf 2>NUL
call vcbuild.bat --msvc-platform Win32 --gyp-msvs-version 2015 --toolset v140_xp || goto :fail
copy src\Release\Win32\winpty.dll build-libpty\win\xp || goto :fail
copy src\Release\Win32\winpty-agent.exe build-libpty\win\xp || goto :fail
call vcbuild.bat --msvc-platform Win32 --gyp-msvs-version 2015 || goto :fail
copy src\Release\Win32\winpty.dll build-libpty\win\x86 || goto :fail
copy src\Release\Win32\winpty-agent.exe build-libpty\win\x86 || goto :fail
call vcbuild.bat --msvc-platform x64 --gyp-msvs-version 2015 || goto :fail
copy src\Release\x64\winpty.dll build-libpty\win\x86_64 || goto :fail
copy src\Release\x64\winpty-agent.exe build-libpty\win\x86_64 || goto :fail
call vcbuild.bat --msvc-platform arm64 --gyp-msvs-version 2022 || goto :fail
copy src\Release\arm64\winpty.dll build-libpty\win\arm64 || goto :fail
copy src\Release\arm64\winpty-agent.exe build-libpty\win\arm64 || goto :fail
echo success
goto :EOF
:fail
echo error: build failed
exit /b 1