2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-02 19:49:43 +00:00
qpdf/build-scripts/build-windows.bat

21 lines
661 B
Batchfile
Raw Normal View History

@echo on
@rem Usage: build-windows {32|64} {msvc|mingw}
setlocal ENABLEDELAYEDEXPANSION
if %2 == msvc (
if %1 == 64 (
2019-08-30 03:03:09 +00:00
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
) else (
2019-08-30 03:03:09 +00:00
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
)
choco install zip
bash ./build-scripts/build-windows %1 %2
) else (
if exist C:\msys64 (
set MSYS=C:\msys64
) else (
choco install msys2
set MSYS=C:\tools\msys64
)
!MSYS!\usr\bin\env.exe MSYSTEM=MINGW64 /bin/bash -l %CD%/build-scripts/build-windows %1 %2
)