Skip to content

Commit 0f8cb68

Browse files
committed
MSVC release script
1 parent ce1a2d2 commit 0f8cb68

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎tools/msvc_release.bat‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
setlocal
2+
3+
set JOBS=8
4+
set SCONS=python3 -m SCons
5+
set ZIP7="C:\Program Files\7-Zip\7z"
6+
set SAIGO_DIR=toolchain\saigosdk-windows-amd64_20260925
7+
8+
:: Must set MSYS_DIR on command line. The MinGW distro doesn't really have to be MSYS
9+
:: but this makes it more convenient to set just one variable.
10+
set MINGW_AMD64="%MSYS_DIR%\mingw64"
11+
set MINGW_I686="%MSYS_DIR%\mingw32"
12+
13+
%MINGW_AMD64%\bin\as --version
14+
%MINGW_I686%\bin\as --version
15+
%SCONS% --version
16+
%ZIP7%
17+
18+
rd /S /Q scons-out release
19+
20+
git log -1
21+
git status
22+
23+
%SCONS% -j%JOBS% --verbose --mode=opt-win,nacl_irt saigo_newlib_dir=%SAIGO_DIR% mingw_dir=%MINGW_AMD64% platform=x86-64 saigo=1 --no-clang werror=0 sysinfo=0 sel_ldr irt_core || exit /B
24+
%SCONS% -j%JOBS% --verbose --mode=opt-win,nacl_irt saigo_newlib_dir=%SAIGO_DIR% mingw_dir=%MINGW_I686% platform=x86-32 saigo=1 --no-clang werror=0 sysinfo=0 sel_ldr irt_core || exit /B
25+
26+
mkdir release
27+
cd release
28+
29+
set TGT64=nacl_runtime-windows-amd64
30+
set TGT32=nacl_runtime-windows-i686
31+
mkdir %TGT64%
32+
mkdir %TGT32%
33+
copy ..\scons-out\opt-win-x86-64\staging\sel_ldr.exe %TGT64%
34+
copy ..\scons-out\opt-win-x86-32\staging\sel_ldr.exe %TGT32%
35+
copy ..\scons-out\nacl_irt-x86-64\staging\irt_core.nexe %TGT64%
36+
copy ..\scons-out\nacl_irt-x86-32\staging\irt_core.nexe %TGT32%
37+
%ZIP7% a -tzip -mx=9 %TGT64%.zip %TGT64% || exit /B
38+
%ZIP7% a -tzip -mx=9 %TGT32%.zip %TGT32% || exit /B

0 commit comments

Comments
 (0)