| 1 |
@echo on |
| 2 |
|
| 3 |
set MESON_VERSION="0.50.1" |
| 4 |
set MUTEST_OUTPUT=tap |
| 5 |
|
| 6 |
:: Download Meson and Ninja, create install directory |
| 7 |
mkdir _build |
| 8 |
mkdir mutest-static-%MSVC_PLATFORM% |
| 9 |
cd _build |
| 10 |
curl -LsSO https://github.com/mesonbuild/meson/releases/download/%MESON_VERSION%/meson-%MESON_VERSION%.tar.gz |
| 11 |
7z x meson-%MESON_VERSION%.tar.gz |
| 12 |
move dist\meson-%MESON_VERSION%.tar . |
| 13 |
7z x meson-%MESON_VERSION%.tar |
| 14 |
rmdir dist |
| 15 |
del meson-%MESON_VERSION%.tar meson-%MESON_VERSION%.tar.gz |
| 16 |
curl -LsSO https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip |
| 17 |
7z x ninja-win.zip |
| 18 |
del ninja-win.zip |
| 19 |
cd .. |
| 20 |
|
| 21 |
:: Build and install |
| 22 |
cd _build |
| 23 |
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %MSVC_PLATFORM% |
| 24 |
@echo on |
| 25 |
C:\Python36\python.exe meson-%MESON_VERSION%\meson.py .. . -Dstatic=true --backend=ninja --prefix=%APPVEYOR_BUILD_FOLDER%\mutest-static-%MSVC_PLATFORM% || goto :error |
| 26 |
ninja || goto :error |
| 27 |
ninja test || goto :error |
| 28 |
ninja install || goto :error |
| 29 |
cd .. |
| 30 |
|
| 31 |
:: Copy license into install directory and create .zip file |
| 32 |
copy LICENSE.txt mutest-static-%MSVC_PLATFORM% || goto :error |
| 33 |
dir mutest-static-%MSVC_PLATFORM% /s /b || goto :error |
| 34 |
7z a -tzip mutest-static-%MSVC_PLATFORM%.zip mutest-static-%MSVC_PLATFORM% || goto :error |
| 35 |
|
| 36 |
goto :EOF |
| 37 |
|
| 38 |
:error |
| 39 |
exit /b 1 |