From 0c0b9ef4585c6cc5217b505d5ea6486828b30fce Mon Sep 17 00:00:00 2001 From: Justin Bull Date: Sun, 22 Mar 2020 11:22:15 +0100 Subject: Add crosscompile config files for 32, 64-bit Windows and 32-bit Linux --- package/crossfiles/i686-linux32.meson | 15 +++++++++++++++ package/crossfiles/i686-w64-mingw32.meson | 17 +++++++++++++++++ package/crossfiles/x86_64-w64-mingw32.meson | 17 +++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 package/crossfiles/i686-linux32.meson create mode 100644 package/crossfiles/i686-w64-mingw32.meson create mode 100644 package/crossfiles/x86_64-w64-mingw32.meson (limited to 'package') diff --git a/package/crossfiles/i686-linux32.meson b/package/crossfiles/i686-linux32.meson new file mode 100644 index 0000000..95e99b3 --- /dev/null +++ b/package/crossfiles/i686-linux32.meson @@ -0,0 +1,15 @@ +[binaries] +c = 'gcc' +cpp = 'g++' +ar = 'ar' +strip = 'strip' + +[properties] +c_link_args = ['-m32'] +c_args = ['-m32'] + +[host_machine] +system = 'linux' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little' diff --git a/package/crossfiles/i686-w64-mingw32.meson b/package/crossfiles/i686-w64-mingw32.meson new file mode 100644 index 0000000..1fae70a --- /dev/null +++ b/package/crossfiles/i686-w64-mingw32.meson @@ -0,0 +1,17 @@ +[binaries] +c = 'i686-w64-mingw32-gcc' +cpp = 'i686-w64-mingw32-g++' +ar = 'i686-w64-mingw32-ar' +strip = 'i686-w64-mingw32-strip' +windres = 'i686-w64-mingw32-windres' +exe_wrapper = ['wine'] + +[properties] +c_link_args = ['-static-libgcc'] +needs_exe_wrapper = true + +[host_machine] +system = 'windows' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little' diff --git a/package/crossfiles/x86_64-w64-mingw32.meson b/package/crossfiles/x86_64-w64-mingw32.meson new file mode 100644 index 0000000..068a128 --- /dev/null +++ b/package/crossfiles/x86_64-w64-mingw32.meson @@ -0,0 +1,17 @@ +[binaries] +c = 'x86_64-w64-mingw32-gcc' +cpp = 'x86_64-w64-mingw32-g++' +ar = 'x86_64-w64-mingw32-ar' +strip = 'x86_64-w64-mingw32-strip' +windres = 'x86_64-w64-mingw32-windres' +exe_wrapper = ['wine'] + +[properties] +c_link_args = ['-static-libgcc'] +needs_exe_wrapper = true + +[host_machine] +system = 'windows' +cpu_family = 'x86_64' +cpu = 'x86_64' +endian = 'little' -- cgit v1.2.3