From 1ff6a2d0ae3a0a45278519ed39a08769329296d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Sun, 3 Dec 2023 17:32:33 +0100 Subject: [PATCH] Add a --backend=vs job to the ghactions workflow This also requires patching CREATEPROCESS_MANIFEST_RESOURCE_ID out of powder-res.template.rc because Meson generates a VS config that instructs VS to add its own and this conflicts with ours. TODO: Undo this hack once https://github.com/mesonbuild/meson/pull/12472 makes it into a release. Also start using meson compile in place of ninja in some cases because it integrates better. --- .github/build.sh | 29 ++++++++++++++++++++++++++--- .github/prepare.py | 1 + 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.github/build.sh b/.github/build.sh index fd02a3568..1b59a439d 100755 --- a/.github/build.sh +++ b/.github/build.sh @@ -206,6 +206,26 @@ fi if [[ $PACKAGE_MODE == nolua ]]; then meson_configure+=$'\t'-Dlua=none fi +if [[ $PACKAGE_MODE == backendvs ]]; then + meson_configure+=$'\t'-Dbackend=vs + echo "NOTE: patching CREATEPROCESS_MANIFEST_RESOURCE_ID out of powder-res.template.rc" + echo "TODO: remove this patch once https://github.com/mesonbuild/meson/pull/12472 makes it into a release" + echo "TODO: also remove the relevant note from the building guide" + git apply <