Search Criteria
Package Details: mingw-w64-meson 1-22
Package Actions
Git Clone URL: | https://aur.archlinux.org/mingw-w64-meson.git (read-only, click to copy) |
---|---|
Package Base: | mingw-w64-meson |
Description: | Meson wrapper for MinGW (mingw-w64) |
Upstream URL: | http://fedoraproject.org/wiki/MinGW |
Licenses: | GPL |
Submitter: | drakkan |
Maintainer: | drakkan |
Last Packager: | drakkan |
Votes: | 7 |
Popularity: | 0.076098 |
First Submitted: | 2018-04-23 10:40 (UTC) |
Last Updated: | 2021-04-26 13:32 (UTC) |
Dependencies (6)
- meson (meson-git)
- mingw-w64-gcc
- mingw-w64-pkg-config
- mingw-w64-environment (make)
- mingw-w64-cmake (optional)
- mingw-w64-wine (optional) – Set NEED_WINE env variable in your PKGBUILD to use wine support in meson
Required by (53)
- mingw-w64-atk (make)
- mingw-w64-cairo (make)
- mingw-w64-cairo-bootstrap (make)
- mingw-w64-dav1d (make)
- mingw-w64-doctrina (make)
- mingw-w64-fontconfig-static (make)
- mingw-w64-freetype2 (make)
- mingw-w64-freetype2-bootstrap (make)
- mingw-w64-freetype2-static (make)
- mingw-w64-freetype2-static-bootstrap (make)
- mingw-w64-fribidi (make)
- mingw-w64-gdk-pixbuf2 (make)
- mingw-w64-glib-networking (make)
- mingw-w64-glib2 (make)
- mingw-w64-graphene (make)
- mingw-w64-grvk (make)
- mingw-w64-gst-editing-services (make)
- mingw-w64-gst-editing-services-git (make)
- mingw-w64-gst-libav (make)
- mingw-w64-gst-libav-git (make)
Latest Comments
drakkan commented on 2022-06-05 08:09 (UTC)
we use CFLAGS from
mingw-w64-environment
jackoneill commented on 2022-06-01 13:26 (UTC)
Hi!
Any progress on removing -O2 from the CFLAGS? It's breaking meson's --optimization parameter.
xantares commented on 2021-04-26 13:30 (UTC) (edited on 2021-04-26 13:30 (UTC) by xantares)
hello,
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 (UTC)
Just export
MINGW_CFLAGS
andMINGW_CXXFLAGS
with the flags you want before calling the wrapper.jackoneill commented on 2021-03-27 20:04 (UTC)
Hi!
There's a small problem with sourcing mingw-env: the -O2 flag in mingw-env.sh 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 (UTC)
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 (UTC)
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 (UTC)
I tried your modification and yes it works!
xantares commented on 2020-11-27 20:20 (UTC)
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 (UTC)
Hi,
can you please paste you mesa PKGBUILD so I can do some tests?
a change like this one:
breaks fribidi tests
xantares commented on 2020-11-26 18:37 (UTC) (edited on 2020-11-26 19:08 (UTC) by xantares)
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 (UTC)
Hi,
I think we need to change
properties
tobuilt-in options
here. I cannot test this change before tomorrowxantares commented on 2020-11-03 17:50 (UTC) (edited on 2020-11-03 17:50 (UTC) by xantares)
hello,
seems something has changed in latest meson, can you have a look:
DEPRECATION: c_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
DEPRECATION: cpp_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
DEPRECATION: c_link_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
DEPRECATION: cpp_link_args in the [properties] section of the machine file is deprecated, use the [built-in options] section.
drakkan commented on 2020-08-21 11:43 (UTC)
Please take a look here
xantares commented on 2020-08-21 11:15 (UTC)
Hello.
How can I add custom flags to my build ?
I tried setting CXXFLAGS/LDFLAGS/CFLAGS without luck:
CXXFLAGS="-fno-lto" ${_arch}-meson
xan.
Martchus commented on 2019-12-06 14:16 (UTC)
That's similar to qmake. But you can still at least insert the flags at build time of the
mingw-w64-mesion
package instead of duplicating them. I did the same formingw-w64-qt5-base
: https://github.com/Martchus/PKGBUILDs/commit/6face8aef30195f0800623e38e60c460c3db0876This way we can change flags when needed by only customizing
mingw-w64-environment
and just need to rebuildmingw-w64-meson
(andmingw-w64-qt5-base
).xantares commented on 2019-12-04 08:19 (UTC) (edited on 2019-12-04 08:19 (UTC) by xantares)
ok; seems their design allow to have rules for native and cross targets in the same build, no idea what it's for
drakkan commented on 2019-12-02 21:29 (UTC) (edited on 2019-12-02 21:30 (UTC) by drakkan)
@xantares, I don't think that this work for meson, from the docs:
https://mesonbuild.com/Builtin-options.html
I just did a quick test adding -v to
ninja
for mingw-w64-libsoup, current meson wrapper:meson wrapper modified as you suggest:
xantares commented on 2019-12-02 20:53 (UTC)
hello, can you use mingw-w64-environment ?
just do "source mingw-env @TRIPLE@" at beginning of meson-mingw-wrapper instead of setting all the flags manually, see /usr/bin/mingw-env.sh
xan.
xantares commented on 2019-11-17 11:56 (UTC)
one last thing, can you add the "-Wl,-O1,--sort-common,--as-needed" linker flags that are used in mingw-w64-configure and mingw-w64-cmake ?
xantares commented on 2019-11-17 11:43 (UTC)
thanks!
can you add mingw-w64-cmake as optdepends ?
xantares commented on 2019-11-17 10:47 (UTC) (edited on 2019-11-17 10:55 (UTC) by xantares)
could you add the cmake entry in toolchain-mingw.meson under [binaries] ?
cmake = '@TRIPLE@-cmake'
then mingw-w64-cmake can be added to optdepends
this is needed for mingw-w64-mesa if I want to switch to meson
rodrigo21 commented on 2019-11-16 22:28 (UTC)
Please add c_link_args = ['-fstack-protector'] and cpp_link_args = ['-fstack-protector'] under [properties] or some package will not build.
xantares commented on 2019-11-11 16:47 (UTC)
you'll probably want to add -fstack-protector to LDFLAGS with the new crt
drakkan commented on 2019-01-05 12:06 (UTC)
@xantares, ok I'll do some test with these flags
and I'll push the changes if all is fine.
Please note that with meson the flags
-O2 -g
ecc.. are added by buildtype:xantares commented on 2019-01-05 09:34 (UTC)
hi, you may want to update the flags here to add "fno-plt" like in w64-cmake
drakkan commented on 2018-12-22 18:22 (UTC)
@Martchus, we could add a new package (for example something like mingw-w64-env) that defines default mingw env vars and then modify mingw meson/cmake/configure to read these vars from the file provided by that package.
Martchus commented on 2018-12-22 17:50 (UTC)
Not having -g is good enough for me right now. But good to know about the environment variable.
drakkan commented on 2018-12-22 17:32 (UTC) (edited on 2018-12-22 18:09 (UTC) by drakkan)
@Martchus, actually you can set CROSS_FILE env var that points to a different cross file. This should be enough for egde cases.
I agree that defaults flags should be consistent in mingw-w64-configure, cmake and meson, so I have no problem to change the meson defaults if we agree so.
Maybe we can do something similar to fedora
https://src.fedoraproject.org/fork/qulogic/rpms/mingw-filesystem/blob/master/f/macros.mingw64#_154
I can remove c_args and cpp_args from the cross file and so the env var should be used
Martchus commented on 2018-12-22 14:16 (UTC)
Since this package also hard codes linker flags: https://aur.archlinux.org/packages/mingw-w64-cmake/#comment-675194
Maybe it is not so easy to make the flags configurable via environment variables in case of meson. But the defaults could still be adjusted. The good thing is that the build flag which is my main concern (
-g
) isn't present in your package anyways.drakkan commented on 2018-09-03 16:05 (UTC)
I just compiled mingw-w64-gcc and retested glib complitation and it works for me.
Anyway your patch should not hurts, so I think I'll apply it later today, thanks!
Martchus commented on 2018-09-03 14:20 (UTC)
Could you
git am
this patch: https://martchus.no-ip.biz/shares/a4f78bd3d1154882e0feb89711c615/0001-Use-gcc-ar-instead-of-ar.patch ?See recent comments under https://aur.archlinux.org/packages/mingw-w64-glib2 for details.
jackoneill commented on 2018-06-12 20:23 (UTC)
And probably -Wall interferes with the --warnlevel parameter.
jackoneill commented on 2018-06-12 20:05 (UTC)
Hi! The -O2 and -g compiler parameters interfere with meson's --buildtype parameter.
Example of a compile command with --buildtype=release:
i686-w64-mingw32-g++ -Idecross@sha -I. -I.. -I/usr/i686-w64-mingw32/include -I/usr/include/vapoursynth -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O3 -Wall -Wextra -Wshadow -mfpmath=sse -msse2 -mstackrealign -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MD -MQ 'decross@sha/src_decross.cpp.obj' -MF 'decross@sha/src_decross.cpp.obj.d' -o 'decross@sha/src_decross.cpp.obj' -c ../src/decross.cpp
And with --buildtype=debug:
i686-w64-mingw32-g++ -Idecross@sha -I. -I.. -I/usr/i686-w64-mingw32/include -I/usr/include/vapoursynth -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O0 -g -Wall -Wextra -Wshadow -mfpmath=sse -msse2 -mstackrealign -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -MD -MQ 'decross@sha/src_decross.cpp.obj' -MF 'decross@sha/src_decross.cpp.obj.d' -o 'decross@sha/src_decross.cpp.obj' -c ../src/decross.cpp
In both cases the compiler uses -O2 because it appears later.
drakkan commented on 2018-05-10 15:43 (UTC)
Thanks! I'll merge these changes later today, I'm only a bit uncertain about wine, this way wine will be a required depends for meson since if it is not installed meson will crash with this error
FileNotFoundError: [Errno 2] No such file or directory: 'wine': 'wine'
I'll try to investigate this error
kfg commented on 2018-05-10 13:55 (UTC)
Hi
some of my packages have moved to meson and i thought it would be nice to have wrapper scripts like in the mingw-w64-configure and mingw-w64-cmake packages. So I made a template for mingw64 meson wrapper scripts based on the arch-meson script.
I've uploaded the changes here: https://pastebin.com/raw/HY2qiJEG
I also added exe_wrapper = 'wine' to the [binaries] section in the toolchain template. This is necessary for building some packages since they need to run the created windows executables to generate configs/build files or they run test binaries in the check() step.