2018-10-11 17:35:07 +00:00
|
|
|
@echo on
|
|
|
|
@rem Usage: build-windows {32|64} {msvc|mingw}
|
2020-10-16 15:29:48 +00:00
|
|
|
setlocal ENABLEDELAYEDEXPANSION
|
2018-10-11 17:35:07 +00:00
|
|
|
if %2 == msvc (
|
|
|
|
if %1 == 64 (
|
2022-03-08 14:26:40 +00:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
2018-10-11 17:35:07 +00:00
|
|
|
) else (
|
2022-03-08 14:26:40 +00:00
|
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
|
2018-10-11 17:35:07 +00:00
|
|
|
)
|
|
|
|
choco install zip
|
2020-10-16 15:17:42 +00:00
|
|
|
bash ./build-scripts/build-windows %1 %2
|
2018-10-11 17:35:07 +00:00
|
|
|
) else (
|
2022-03-12 12:59:35 +00:00
|
|
|
set MSYS=C:\msys64
|
|
|
|
!MSYS!\usr\bin\env.exe MSYSTEM=MINGW64 MSYS2_PATH_TYPE=inherit /bin/bash -l %CD%/build-scripts/build-windows %1 %2
|
2018-10-11 17:35:07 +00:00
|
|
|
)
|