Skip to content

Commit d462b8a

Browse files
committed
adding build_vc2026 for win32 and x64
1 parent 7dcdb1e commit d462b8a

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

NppExec_build_vc2026_win32.bat

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@echo off
2+
3+
set VC_ROOT=%ProgramFiles%\Microsoft Visual Studio\18
4+
5+
if exist "%VC_ROOT%\Professional\VC\Auxiliary\Build\vcvarsall.bat" goto UseVcProfessional
6+
if exist "%VC_ROOT%\Community\VC\Auxiliary\Build\vcvarsall.bat" goto UseVcCommunity
7+
8+
goto ErrorNoVcVarsAll
9+
10+
:UseVcProfessional
11+
call "%VC_ROOT%\Professional\VC\Auxiliary\Build\vcvarsall.bat" x86
12+
goto Building
13+
14+
:UseVcCommunity
15+
call "%VC_ROOT%\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
16+
goto Building
17+
18+
:Building
19+
cd .\NppExec
20+
msbuild NppExec_VC2026.sln /t:Clean /p:Configuration=Release;Platform=Win32 /m:2
21+
msbuild NppExec_VC2026.sln /t:Build /p:Configuration=Release;Platform=Win32 /m:2
22+
goto End
23+
24+
:ErrorNoVcVarsAll
25+
echo ERROR: Could not find "vcvarsall.bat"
26+
goto End
27+
28+
:End

NppExec_build_vc2026_x64.bat

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@echo off
2+
3+
set VC_ROOT=%ProgramFiles%\Microsoft Visual Studio\18
4+
5+
if exist "%VC_ROOT%\Professional\VC\Auxiliary\Build\vcvarsall.bat" goto UseVcProfessional
6+
if exist "%VC_ROOT%\Community\VC\Auxiliary\Build\vcvarsall.bat" goto UseVcCommunity
7+
8+
goto ErrorNoVcVarsAll
9+
10+
:UseVcProfessional
11+
call "%VC_ROOT%\Professional\VC\Auxiliary\Build\vcvarsall.bat" x64
12+
goto Building
13+
14+
:UseVcCommunity
15+
call "%VC_ROOT%\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
16+
goto Building
17+
18+
:Building
19+
cd .\NppExec
20+
msbuild NppExec_VC2026.sln /t:Clean /p:Configuration=Release;Platform=x64 /m:2
21+
msbuild NppExec_VC2026.sln /t:Build /p:Configuration=Release;Platform=x64 /m:2
22+
goto End
23+
24+
:ErrorNoVcVarsAll
25+
echo ERROR: Could not find "vcvarsall.bat"
26+
goto End
27+
28+
:End

0 commit comments

Comments
 (0)