From 5e2a2a9deb7077f4317bd398484995990f9b6eab Mon Sep 17 00:00:00 2001 From: Nadia Pedersen Date: Wed, 1 May 2019 06:08:00 +0200 Subject: [PATCH] Add Windows MSYS2 build instructions --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d07723dc..ca2f7b39 100644 --- a/README.md +++ b/README.md @@ -55,9 +55,25 @@ make ### Windows: * use CodeBlocks - * or receive golden cookies if you get Cmake to work -Build system is not set in stone. +#### MSYS2 and CMake + +1. Install [MSYS2](https://www.msys2.org/) +2. Open the **MSYS2 MingW 64-bit** terminal +3. Update the packages using `pacman -Syu` and reopen the terminal if it asks you to +4. Install dependencies: `pacman -S mingw-w64-x86_64-{toolchain,SDL2,cmake} make git` +5. Run the following commands + ```bash + git clone https://github.com/Arisotura/melonDS.git + cd melonDS + mkdir build + cd build + cmake .. -G "MSYS Makefiles" + make -j5 + ../msys-dist.sh + ``` + +If everything went well, melonDS and the libraries it needs should now be in the `dist` folder. ## TODO LIST