diff options
author | Jay Berkenbilt <ejb@ql.org> | 2018-10-11 19:35:07 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2018-10-11 21:07:51 +0200 |
commit | 4628461383855610f87c8df5c64535f521056a32 (patch) | |
tree | 7ef7e671d1b2f35cf1e81b4b22d24bb9426bb4f0 /azure-pipelines/build-windows.bat | |
parent | e7adaff786bf4bed30be39a8a28edb9f65888b12 (diff) | |
download | qpdf-4628461383855610f87c8df5c64535f521056a32.tar.zst |
Set up Azure Pipelines
Use free Azure Pipelines to do Linux, Windows, and Mac build and test
and to generate Windows binary distributions.
Diffstat (limited to 'azure-pipelines/build-windows.bat')
-rw-r--r-- | azure-pipelines/build-windows.bat | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/azure-pipelines/build-windows.bat b/azure-pipelines/build-windows.bat new file mode 100644 index 00000000..ba11b4fd --- /dev/null +++ b/azure-pipelines/build-windows.bat @@ -0,0 +1,16 @@ +@echo on +@rem Usage: build-windows {32|64} {msvc|mingw} +if %2 == msvc ( + if %1 == 64 ( + call "%VS140COMNTOOLS%\..\..\VC\bin\amd64\vcvars64.bat" + ) else ( + call "%VS140COMNTOOLS%\..\..\VC\bin\vcvars32.bat" + ) + choco install zip + bash ./azure-pipelines/build-windows %1 %2 +) else ( + @rem The vs2017-win2016 pool has an ancient 64-bit-only mingw. + @rem Install msys2 so we can get current gcc toolchains. + choco install msys2 + C:\tools\msys64\usr\bin\env.exe MSYSTEM=MINGW64 /bin/bash -l %CD%/azure-pipelines/build-windows %1 %2 +) |