mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2026-04-29 21:51:49 +00:00
Update windows instructions + use clang in example
This commit is contained in:
parent
83a1912af6
commit
167af24b45
1 changed files with 17 additions and 5 deletions
22
BUILDING.md
22
BUILDING.md
|
|
@ -17,14 +17,23 @@ git clone --recurse-submodules
|
||||||
|
|
||||||
## 2. Install Dependencies
|
## 2. Install Dependencies
|
||||||
|
|
||||||
You will need a few dependencies. For Linux the instructions for Ubuntu are provided, but you can find the equivalent packages for your preferred distro.
|
### Linux
|
||||||
|
For Linux the instructions for Ubuntu are provided, but you can find the equivalent packages for your preferred distro.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# For Ubuntu, simply run:
|
# For Ubuntu, simply run:
|
||||||
sudo apt-get install cmake ninja libsdl2-dev libgtk-3-dev lld llvm clang-15
|
sudo apt-get install cmake ninja libsdl2-dev libgtk-3-dev lld llvm clang-15
|
||||||
|
```
|
||||||
|
|
||||||
# For Windows, you can use Chocolatey:
|
### Windows
|
||||||
choco cmake install ninja sdl2 gtk3 llvm
|
You will need to install [Visual Studio 2022](https://visualstudio.microsoft.com/downloads/).
|
||||||
|
In the setup process you'll need to select the following tools for installation:
|
||||||
|
- C++ Clang Compiler for Windows
|
||||||
|
- C++ CMake tools for Windows
|
||||||
|
|
||||||
|
The other tool necessary will be `make` which can be installe via [Chocolatey](https://chocolatey.org/):
|
||||||
|
```bash
|
||||||
|
choco install make
|
||||||
```
|
```
|
||||||
|
|
||||||
## 3. Creating the ELF file & decompressed ROM
|
## 3. Creating the ELF file & decompressed ROM
|
||||||
|
|
@ -56,9 +65,12 @@ After that, go back to the repository root, and run the following commands:
|
||||||
|
|
||||||
## 5. Building the Project
|
## 5. Building the Project
|
||||||
|
|
||||||
Finally, you can build the project using CMake:
|
Finally, you can build the project! :rocket:
|
||||||
|
|
||||||
|
On Windows, you can open the repository folder with Visual Studio, and you'll be able to `[build / run / debug]` the project from there. If you prefer the commandline or you're on a Unix platform you can build the project using CMake:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cmake -S . -B cmake-build -G Ninja -DCMAKE_BUILD_TYPE=Release # or Debug if you want to debug
|
cmake -S . -B cmake-build -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -G Ninja -DCMAKE_BUILD_TYPE=Release # or Debug if you want to debug
|
||||||
cmake --build build-cmake --target Zelda64Recompiled -j$(nproc) --config Release # or Debug
|
cmake --build build-cmake --target Zelda64Recompiled -j$(nproc) --config Release # or Debug
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue