yuzu/README.md
2024-03-06 21:29:04 +00:00

67 lines
1.1 KiB
Markdown

# Yuzu
[Releases](https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu/-/releases)
# Building
## Linux
### Step 1: Clone the project
Clone the project recursively
```sh
$ git clone --recursive https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu
```
### Step 2: Configure SPIRV Shaders
We need to make some changes because SPIRV Shaders throws an error otherwise. If someone knows how to fix it please reach out to me.
```sh
$ rm -rf externals/sirit/externals
```
Then edit `externals/sirit/CMakeLists.txt` and enable "Use system SPIR-V Headers".
Like this:
```c
option(SIRIT_USE_SYSTEM_SPIRV_HEADERS "Use system SPIR-V headers" ON)
```
### Step 3: Configure MBEDTLS
Open `externals/mbedtls/include/mbedtls/config.h` with a text editor and search for the following line:
```cpp
//#define MBEDTLS_CMAC_C
```
You should uncomment that so it ends like this:
```cpp
#define MBEDTLS_CMAC_C
```
### Step 4: Build
Create a directory named `build` and cd into it.
```sh
$ mkdir build
$ cd build
```
Then configure the project
```sh
$ cmake .. -GNinja -DYUZU_USE_BUNDLED_VCPKG=ON -DYUZU_TESTS=OFF
```
Once that is done you can build it with
```sh
$ ninja
```