[5/6] build: add cross-file for MinGW-w64
diff mbox series

Message ID 20200131030744.19596-6-dmitry.kozliuk@gmail.com
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series
  • MinGW-w64 support
Related show

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Dmitry Kozlyuk Jan. 31, 2020, 3:07 a.m. UTC
Add Meson configuration to cross-compile for Windows using MinGW-w64.
It may require adjustments in some cases, but at least it provides
the foundation.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>

 create mode 100644 meson_mingw.txt

Comments

Thomas Monjalon Feb. 4, 2020, 10:14 p.m. UTC | #1
31/01/2020 04:07, Dmitry Kozlyuk:
> Add Meson configuration to cross-compile for Windows using MinGW-w64.
> It may require adjustments in some cases, but at least it provides
> the foundation.
> 
> Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
> 
>  create mode 100644 meson_mingw.txt
> 
> --- /dev/null
> +++ b/meson_mingw.txt

I think this file should be in config/x86/
Dmitry Kozlyuk Feb. 4, 2020, 11:23 p.m. UTC | #2
> > --- /dev/null
> > +++ b/meson_mingw.txt  
> 
> I think this file should be in config/x86/

OK, will fix in v2.

Patch
diff mbox series

diff --git a/meson_mingw.txt b/meson_mingw.txt
new file mode 100644
index 000000000..80f04343a
--- /dev/null
+++ b/meson_mingw.txt
@@ -0,0 +1,14 @@ 
+[binaries]
+c = '/usr/bin/x86_64-w64-mingw32-gcc'
+cpp = '/usr/bin/x86_64-w64-mingw32-g++'
+ld = '/usr/bin/x86_64-w64-mingw32-ld' # Meson 0.53.0
+c_ld = '/usr/bin/x86_64-w64-mingw32-ld'
+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'
+
+[host_machine]
+system = 'windows'
+cpu_family = 'x86_64'
+cpu = 'native'
+endian = 'little'