summaryrefslogtreecommitdiff
path: root/.gitlab-ci/test-msvc.bat
blob: 4632d48766924815f14386be9e9453bd27b28e99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo on
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
@echo on

py -3 -c "import urllib.request, sys; urllib.request.urlretrieve(*sys.argv[1:])" "https://github.com/lexxmark/winflexbison/releases/download/v2.5.14/win_flex_bison-2.5.14.zip" win_flex_bison.zip
py -3 -m zipfile -e win_flex_bison.zip win_flex_bison

py -3 -c "import urllib.request, sys; urllib.request.urlretrieve(*sys.argv[1:])" "https://nirbheek.in/files/binaries/pkg-config/win32/pkg-config.exe" pkg-config.exe

SET PATH=%CD%;%CD%\win_flex_bison;%PATH%
SET PKG_CONFIG=%CD%\pkg-config.exe
SET PKG_CONFIG_PATH=%CD%\_build\meson-uninstalled

pip3 install --upgrade --user meson==0.60 || goto :error

meson subprojects download glib
meson wrap promote subprojects\glib\subprojects\pcre.wrap

meson setup _build || goto :error
meson compile -C _build || goto :error
::meson test -C _build --suite=gobject-introspection || goto :error

goto :EOF
:error
exit /b 1