]> git.sesse.net Git - pkanalytics/blobdiff - cross-win32.txt
Add a Win32 build.
[pkanalytics] / cross-win32.txt
diff --git a/cross-win32.txt b/cross-win32.txt
new file mode 100644 (file)
index 0000000..e5fa194
--- /dev/null
@@ -0,0 +1,26 @@
+# See cross-prepare.txt for how to set up the environment if you don't
+# already have one. (It's not straightforward :-/ )
+#
+# Then: meson setup --cross-file cross-win32.txt build-win32 && ninja -C build-win32
+# Note that you'll need to copy and distribute the Qt DLLs together with the .exe file
+# if you want it to actually run.
+[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'
+pkg-config = 'pkg-config'
+exe_wrapper = 'wine'
+qmake6 = ['wine', '/opt/qt-cross/bin/qmake6.exe']
+moc = ['wine', '/opt/qt-cross/bin/moc.exe']
+uic = ['wine', '/opt/qt-cross/bin/uic.exe']
+rcc = ['wine', '/opt/qt-cross/bin/rcc.exe']
+
+[host_machine]
+system = 'windows'
+cpu_family = 'x86_64'
+cpu = 'x86_64'
+endian = 'little'
+
+[properties]
+pkg_config_libdir = '/opt/qt-cross/lib/pkgconfig'