grim/containers/msys2-cross

Parents 3dc960efb985
Children 626a59832379
Add the wrappers and cross compiler scripts here as they're reusable
--- a/Dockerfile Thu May 02 04:30:45 2019 -0500
+++ b/Dockerfile Thu May 02 08:09:31 2019 -0500
@@ -11,6 +11,7 @@
COPY sync/ /var/lib/pacman/sync/
COPY etc/ /etc/
COPY bin/ /usr/local/bin/
+COPY share/ /usr/share/
COPY keyrings/ /usr/share/pacman/keyrings/
# Install pacman-static
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mingw-w64-i686-exe_wrapper Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+xvfb-run /usr/local/bin/mingw-w64-i686-wine $@
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mingw-w64-i686-pkg-config Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+PKG_CONFIG_SYSROOT_DIR=/windows PKG_CONFIG_PATH=/windows/mingw32/lib/pkgconfig/ pkg-config $@
+
+exit $?
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mingw-w64-i686-wine Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+WINEPATH=/windows/mingw32/bin wine $@
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mingw-w64-x86_64-exe_wrapper Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+xvfb-run /usr/local/bin/mingw-w64-x86_64-wine $@
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mingw-w64-x86_64-pkg-config Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+PKG_CONFIG_SYSROOT_DIR=/windows PKG_CONFIG_PATH=/windows/mingw64/lib/pkgconfig/ pkg-config $@
+
+exit $?
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mingw-w64-x86_64-wine Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+
+WINEPATH=/windows/mingw64/bin wine $@
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/meson/cross/mingw-w64-i686 Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,20 @@
+[binaries]
+c = '/usr/bin/i686-w64-mingw32-gcc'
+cpp = '/usr/bin/i686-w64-mingw32-g++'
+ar = '/usr/bin/i686-w64-mingw32-ar'
+strip = '/usr/bin/i686-w64-mingw32-strip'
+pkgconfig = '/usr/local/bin/mingw-w64-i686-pkg-config'
+windres = '/usr/bin/i686-w64-mingw32-windres'
+exe_wrapper = '/usr/local/bin/mingw-w64-i686-exe_wrapper'
+
+[properties]
+needs_exe_wrapper = true
+c_args = ['-I/windows/mingw-w64-i686/include/']
+c_link_args = ['-static-libgcc']
+
+[host_machine]
+system = 'windows'
+cpu_family = 'x86'
+cpu = 'i686'
+endian = 'little'
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/meson/cross/mingw-w64-x86_64 Thu May 02 08:09:31 2019 -0500
@@ -0,0 +1,20 @@
+[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/local/bin/mingw-w64-x86_64-pkg-config'
+windres = '/usr/bin/x86_64-w64-mingw32-windres'
+exe_wrapper = '/usr/local/bin/mingw-w64-x86_64-exe_wrapper'
+
+[properties]
+needs_exe_wrapper = true
+c_args = ['-I/windows/mingw-w64-x86_64/include/']
+c_link_args = ['-static-libgcc']
+
+[host_machine]
+system = 'windows'
+cpu_family = 'x86_64'
+cpu = 'amd64'
+endian = 'little'
+