diff options
author | Dylan Baker <[email protected]> | 2019-10-23 14:36:19 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-10-25 22:47:32 +0000 |
commit | 19851c9ad66aa2e05c650d2310aff7515968b0da (patch) | |
tree | 1b687ac3f61bb3a28b98dc907589854dad3dd61b /.gitlab-ci/meson-build.bat | |
parent | 06e4647cb031f8ad0f904c8b71bef6d4583da13c (diff) |
gitlab-ci: Add a job for meson on windows
This adds a new CI job that runs on windows with MSVC. It currently
builds softpipe and osmesa, and runs the related unit tests. It does
rely on meson's wraps for zlib, but I've set up caching of the wrap
dependencies so hopefully that wont be a problem.
I really wanted to user powershell for this, but there just isn't an
easy way to do that, it's much easier to use batch scripts, so thats
what I used.
The leading `/` for .gitlab-ci/lava... must be removed because windows
doesn't understand it, and when it reads the file the job ends in error.
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to '.gitlab-ci/meson-build.bat')
-rw-r--r-- | .gitlab-ci/meson-build.bat | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.gitlab-ci/meson-build.bat b/.gitlab-ci/meson-build.bat new file mode 100644 index 00000000000..5982a4059df --- /dev/null +++ b/.gitlab-ci/meson-build.bat @@ -0,0 +1,13 @@ +call "C:\Program Files (x86)\Microsoft Visual Studio\%VERSION%\Common7\Tools\VsDevCmd.bat" -arch=%ARCH% + +del /Q /S _build +meson _build ^ + -Dbuild-tests=true ^ + -Db_vscrt=mtd ^ + -Dbuildtype=release ^ + -Dllvm=false ^ + -Dgallium-drivers=swrast ^ + -Dosmesa=gallium +meson configure _build +ninja -C _build +ninja -C _build test |