Clarify build instructions

This commit is contained in:
BullyWiiPlaza 2019-09-08 12:12:29 +02:00 committed by yellows8
parent d7c37c6861
commit 6a75feeb46

View File

@ -1,17 +1,26 @@
#### Usage
### Usage
See [Homebrew_Applications](https://switchbrew.org/wiki/Homebrew_Applications) for SD layout and applications, etc. See [Switchbrew](https://switchbrew.org/wiki/Homebrew_Menu) for hbmenu docs.
#### Download
### Download
The latest release is available from the [releases](https://github.com/switchbrew/nx-hbmenu/releases/latest) page.
#### Building
Build with ```make nx``` or just run ```make```.
### Building
Build for the Nintendo Switch with ```make nx``` and for the PC with ```make pc```.
Running ```make``` builds for both systems.
The following is required to build: libfreetype (switch-freetype), libconfig (switch-libconfig), and libjpeg-turbo (switch-libjpeg-turbo). Where "({name})" is the pacman package. For the pc-build libminizip is required (for the Switch build, the switch-zlib package includes this).
The following [pacman packages](https://devkitpro.org/wiki/devkitPro_pacman) are required to build:
- `switch-dev`
- `switch-freetype`
- `switch-libconfig`
- `switch-libjpeg-turbo`
- `switch-zlib`
- `zip` (on Windows)
C11-threads are used, hence building for the pc-build may fail if C11-threads are not available.
For the PC build, `libminizip` is required (for the Switch build, the `switch-zlib` package includes this).
Since C11 threads are used, building for the PC may fail if C11 threads are not available.
#### Credits
* This uses code based on 3DS [new-hbmenu](https://github.com/fincs/new-hbmenu).
* libjpeg-turbo is used for handling JPEG icons. This library doesn't support lossless JPEG (likewise for official sw which uses libjpeg-turbo).
* `libjpeg-turbo` is used for handling JPEG icons. This library doesn't support lossless JPEG (likewise for official sw which uses `libjpeg-turbo`).