From bbcc3b4b81203726add2e11d8cb29728a79bca7b Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 14 Dec 2016 11:34:56 +0000 Subject: [PATCH] build: Add cross-compile definitions for Mingw64 on Fedora Meson uses plain text files for describing the cross-compilation environment, binaries, and properties. The values are taken from the mingw wrapper around configure that Fedora provides for autotools projects. --- cross/fedora-mingw64.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cross/fedora-mingw64.txt diff --git a/cross/fedora-mingw64.txt b/cross/fedora-mingw64.txt new file mode 100644 index 0000000..b776611 --- /dev/null +++ b/cross/fedora-mingw64.txt @@ -0,0 +1,18 @@ +[binaries] +c = '/usr/bin/x86_64-w64-mingw32-gcc' +cpp = '/usr/bin/x86_64-w64-mingw32-cpp' +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' + +[properties] +root = '/usr/x86_64-w64-mingw32/sys-root/mingw' +c_args = [ '-pipe', '-Wp,-D_FORTIFY_SOURCE=2', '-fexceptions', '--param=ssp-buffer-size=4' ] +c_link_args = [ '-L/usr/x86_64-w64-mingw32/sys-root/mingw/lib' ] + +[host_machine] +system = 'windows' +cpu_family = 'x86_64' +cpu = 'x86_64' +endian = 'little'