From 83ed459e3c21ea9e7d73f0d58b4c4a6f8ae161ab Mon Sep 17 00:00:00 2001 From: lmp Date: Fri, 11 Oct 2024 17:14:31 +0200 Subject: [PATCH] dev: add Linux <-> Windows cross-compile knowledge --- docs/dev/windows.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/dev/windows.txt b/docs/dev/windows.txt index 246a2f5..6acf499 100644 --- a/docs/dev/windows.txt +++ b/docs/dev/windows.txt @@ -1,3 +1,11 @@ +# From linux (cross-compile) + +```bash +v -cflags "-static" -os windows -subsystem windows -fast-math -no-bounds-checking -d shy_gamepad -d sdl_memory_no_gc -skip-unused ./puzzle_vibes +# Copy libSDL.dll to folder then +wine ./puzzle_vibes/puzzle_vibes.exe # much WOW +``` + # Remove the `cmd.exe` window on launch With `mingw-w64` from winlibs.com: