aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-08-24 21:37:27 +0200
committerGitHub <noreply@github.com>2020-08-24 21:37:27 +0200
commit2ee6145fd74b9c027cdaff96c89e02541726c927 (patch)
tree2728375d329ef120531ba195795c53516985a3fc /README.md
parentb36b3feb7f4bc4434fd06c0f7179b8efaa936f58 (diff)
parent7464e42ccd68e3fb6455cc60f708a25f00ce6a53 (diff)
Merge pull request #715 from WaluigiWare64/WaluigiWare64-patch-1
Add instructions for static builds
Diffstat (limited to 'README.md')
-rw-r--r--README.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/README.md b/README.md
index ce4f32a..cc53fa8 100644
--- a/README.md
+++ b/README.md
@@ -55,6 +55,8 @@ make -j$(nproc --all)
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
+
+#### Dynamic builds (with DLLs)
4. Install dependencies: `pacman -S git make mingw-w64-x86_64-{cmake,mesa,SDL2,toolchain,qt5,libslirp}`
5. Run the following commands
```bash
@@ -66,9 +68,22 @@ make -j$(nproc --all)
make -j$(nproc --all)
../msys-dist.sh
```
-
If everything went well, melonDS and the libraries it needs should now be in the `dist` folder.
+#### Static builds (without DLLs, standalone executable)
+4. Install dependencies: `pacman -S git make mingw-w64-x86_64-{cmake,mesa,SDL2,toolchain,qt5-static,libslirp}`
+5. Run the following commands
+ ```bash
+ git clone https://github.com/Arisotura/melonDS.git
+ cd melonDS
+ mkdir build
+ cd build
+ cmake .. -G 'MSYS Makefiles' -DBUILD_STATIC=ON -DQT5_STATIC_DIR=/mingw64/qt5-static
+ make -j$(nproc --all)
+ mkdir dist && cp melonDS.exe dist
+ ```
+If everything went well, melonDS should now be in the `dist` folder.
+
## TODO LIST
* DSi emulation