mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-09 06:37:53 +00:00
619 B
619 B
Cross-compiling for Windows with Wine
This can be useful to test engine in Wine without using virtual machines or dual-booting to Windows.
- Clone and install https://github.com/mstorsjo/msvc-wine (you can skip CMake part)
- Set environment variable WINE_MSVC_PATH to the path to installed MSVC toolchain
- Pre-load wine:
wineserver -k; wineserver -p; wine64 wineboot
- Run
./waf configure -T <build-type> --enable-wine-msvc --sdl2=../SDL2_VC
. Configuration step will take more time than usual. - Follow other typical steps to build from console, except keep in mind you're in decent Operating System now.