Add Windows MSYS2 build instructions

This commit is contained in:
Nadia Pedersen 2019-05-01 06:08:00 +02:00 committed by GitHub
parent 00ad620b8f
commit 5e2a2a9deb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 2 deletions

View File

@ -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