Package Details: mingw-w64-meson 1-22

Git Clone URL: (read-only, click to copy)
Package Base: mingw-w64-meson
Description: Meson wrapper for MinGW (mingw-w64)
Upstream URL:
Licenses: GPL
Submitter: drakkan
Maintainer: drakkan
Last Packager: drakkan
Votes: 6
Popularity: 0.000299
First Submitted: 2018-04-23 10:40
Last Updated: 2021-04-26 13:32

Latest Comments

1 2 3 4 Next › Last »

xantares commented on 2021-04-26 13:30


could you bump the release number ?

I updated mingw-w64-environment and newer flags should be taken into account

Martchus commented on 2021-03-27 20:40

Just export MINGW_CFLAGS and MINGW_CXXFLAGS with the flags you want before calling the wrapper.

jackoneill commented on 2021-03-27 20:04


There's a small problem with sourcing mingw-env: the -O2 flag in ends up overriding meson's --optimization parameter.

My software happens to need the -O3 flag to compile. Lower values don't work.

drakkan commented on 2020-12-02 19:04

I pushed a less intrusive change that keeps the 2 different config files for now,so no PKGBUILD should break

drakkan commented on 2020-11-29 17:00

the problem is that it breaks fribidi, I hope to find some time tomorrow to do some tests, thank you

xantares commented on 2020-11-29 14:25

I tried your modification and yes it works!

xantares commented on 2020-11-27 20:20

I use the mingw-w64-mesa-git PKGBUILD, with the following modifications:

MESON_EXE_WRAPPER=/usr/bin/${_arch}-wine NEED_WINE=1 ${_arch}-meson build-${_arch} -Db_lto=false -Dgallium-drivers=swrast -Dbuild-tests=true

ninja test -C build-${_arch} ${MAKEFLAGS}

drakkan commented on 2020-11-27 08:51


can you please paste you mesa PKGBUILD so I can do some tests?

a change like this one:

 pkgdesc="Meson wrapper for MinGW (mingw-w64)"
 depends=('meson' 'mingw-w64-gcc' 'mingw-w64-pkg-config')
@@ -13,7 +13,7 @@ url=""
-            'c91f2bbcafad7b742f13c6bd46324a03b70066b348621ce6a20f4a05005985ef')
+            '9430f5d112c05b766a18c11b2b1f4ac9f190cd3e7201229b02ff3e1cd7877209')
 _architectures="i686-w64-mingw32 x86_64-w64-mingw32"

 build() {
@@ -24,7 +24,6 @@ build() {
     unset LDFLAGS
     source mingw-env ${_arch}
     python --arch ${_arch} --output-file toolchain-${_arch}.meson 
-    python --arch ${_arch} --output-file toolchain-${_arch}-wine.meson --need-exe-wrapper 
     sed "s|@TRIPLE@|${_arch}|g;" meson-mingw-wrapper > ${_arch}-meson
@@ -36,7 +35,6 @@ package() {
   for _arch in ${_architectures}; do
     install -m 755 "${srcdir}/${_arch}-meson" "$pkgdir/usr/bin/${_arch}-meson"
     install -m 644 toolchain-${_arch}.meson "${pkgdir}"/usr/share/mingw/
-    install -m 644 toolchain-${_arch}-wine.meson "${pkgdir}"/usr/share/mingw/

diff --git a/meson-mingw-wrapper b/meson-mingw-wrapper
index 9adc2d0..240c397 100644
--- a/meson-mingw-wrapper
+++ b/meson-mingw-wrapper
@@ -2,11 +2,14 @@

 if [ -z ${CROSS_FILE} ]
-  if [ -z ${NEED_WINE} ]
+  CROSS_FILE=/usr/share/mingw/toolchain-@TRIPLE@.meson
+if [ -z ${MESON_EXE_WRAPPER} ]
+  if [ -n ${NEED_WINE} ]
-    CROSS_FILE=/usr/share/mingw/toolchain-@TRIPLE@.meson
-  else
-    CROSS_FILE=/usr/share/mingw/toolchain-@TRIPLE@-wine.meson
+    MESON_EXE_WRAPPER=/usr/bin/@TRIPLE@-wine

breaks fribidi tests

xantares commented on 2020-11-26 18:37

I appears it helps to set MESON_EXE_WRAPPER env variable when calling i686-w64-mingw32-meson when configuring mesa for tests to be run, should it be defined inside the wrapper when NEED_WINE is set ?

would this be an alternative to having to use 2 different config files ?

drakkan commented on 2020-11-03 18:01


I think we need to change properties to built-in options here. I cannot test this change before tomorrow