meson.eclass: fix cross compile file for mingw
authorGerhard Bräunlich <g.braeunlich@disroot.org>
Sat, 1 Jun 2019 14:27:47 +0000 (16:27 +0200)
committerMike Gilbert <floppym@gentoo.org>
Mon, 3 Jun 2019 14:44:20 +0000 (10:44 -0400)
This is necessary for cross compiling for example x11-libs/gdk-pixbuf

Closes: https://github.com/gentoo/gentoo/pull/12168
Signed-off-by: Gerhard Bräunlich <g.braeunlich@disroot.org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
eclass/meson.eclass

index b9562376b8687d3abe185a2ab6fb3c68bf34e21a..7c62cf44f78745ff626f1dc6e454e5412cc82bfc 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2017-2018 Gentoo Authors
+# Copyright 2017-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: meson.eclass
@@ -160,6 +160,7 @@ _meson_create_cross_file() {
        objcpp = $(_meson_env_array "$(tc-getPROG OBJCXX c++)")
        pkgconfig = '$(tc-getPKG_CONFIG)'
        strip = $(_meson_env_array "$(tc-getSTRIP)")
+       windres = $(_meson_env_array "$(tc-getRC)")
 
        [properties]
        c_args = $(_meson_env_array "${CFLAGS} ${CPPFLAGS}")