[Spice-devel] [spice-gtk 2/2] meson: mingw: add windows configuration

Victor Toso victortoso at redhat.com
Fri Jan 18 11:08:48 UTC 2019


On Fri, Jan 18, 2019 at 02:42:24PM +0400, Marc-André Lureau wrote:
> Hi
> 
> On Fri, Jan 18, 2019 at 1:57 PM Victor Toso <victortoso at redhat.com> wrote:
> >
> > From: Victor Toso <me at victortoso.com>
> >
> > Using fedora 29 mingw paths. Not hardcoding prefix but keeping a
> > comment that should be added in case one would like to install over
> > what they have in the system :)
> >
> > Signed-off-by: Victor Toso <victortoso at redhat.com>
> 
> Not needed, F29 ships with its own meson mingw cross file and helper
> mingw{32,64}-meson.
> 
> See also "Drop autotools" .gitlab-ci diff.

    | (mkdir buildw && cd buildw && mingw64-meson)

Heh, thanks. I tried to use mingw64-meson several times before,
did not work for me. If I create && enter the folder, it works
indeed.

As I use meson builddir, I was trying mingw64-meson buildwin
without success.

Cheers,

> > ---
> >  meson_mingw.txt | 18 ++++++++++++++++++
> >  1 file changed, 18 insertions(+)
> >  create mode 100644 meson_mingw.txt
> >
> > diff --git a/meson_mingw.txt b/meson_mingw.txt
> > new file mode 100644
> > index 0000000..8a088fc
> > --- /dev/null
> > +++ b/meson_mingw.txt
> > @@ -0,0 +1,18 @@
> > +# Options for installing in a Fedora 29
> > +# meson win-build --cross-file meson_mingw.txt \
> > +# -Dprefix=/usr/x86_64-w64-mingw32/sys-root/mingw \
> > +# -Dlibdir=lib
> > +
> > +[binaries]
> > +c = '/usr/bin/x86_64-w64-mingw32-gcc'
> > +cpp = '/usr/bin/x86_64-w64-mingw32-g++'
> > +ar = '/usr/bin/x86_64-w64-mingw32-ar'
> > +strip = '/usr/bin/x86_64-w64-mingw32-strip'
> > +pkgconfig = '/usr/bin/x86_64-w64-mingw32-pkg-config'
> > +#exe_wrapper = 'wine' # A command used to run generated executables.
> > +
> > +[host_machine]
> > +system = 'windows'
> > +cpu_family = 'x86'
> > +cpu = 'x86_64'
> > +endian = 'little'
> > --
> > 2.20.1
> >
> > _______________________________________________
> > Spice-devel mailing list
> > Spice-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
> 
> 
> -- 
> Marc-André Lureau
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190118/c9b73086/attachment.sig>


More information about the Spice-devel mailing list