fab-agon-emulator icon indicating copy to clipboard operation
fab-agon-emulator copied to clipboard

Switch Windows build environment to MSYS2

Open jblang opened this issue 2 months ago • 0 comments

Current build instructions for Windows say to use an ad-hoc collection of tools that requires a lot of manual installation. MSYS2 provides a Linux-like build environment and packages for all the dependencies required to build fab-agon-emulator. Besides the convenience factor, the GnuWin32 packages have been removed from winget. The GNU Make packages from GnuWin32 is over 18 years old so it is better to use a more modern version.

I have made a msys-init.sh script which will automatically update MSYS2, install the dependencies and clone the git repo for the user. All the user has to do is install MSYS2 through the graphical installer and run the script. I also updated the build instructions and Makefile for the new environment. I needed to remove the check for Windows_NT from the makefile, because GNU Make detects MSYS2 as Windows_NT but MSYS2 has bash, and so the conditional check to use batch files would cause the build to fail.

jblang avatar May 07 '24 22:05 jblang