Building Courage Reborn#
Requirements#
- Git
- Python 3
- Ninja
- MSVC (Visual Studio 2022 Build Tools or full IDE)
- CMake 3.20+
1. Clone the repository#
git clone -b 0.8 https://github.com/linifadomra/Courage-Reborn.git --recurse-submodules
cd Courage-Reborn
Tip
This uses the 0.8 branch. Replace it with your desired branch name if needed.
2. Build options#
Option A (Recommended): Ninja + vcpkg#
Important
On Windows, you must at the very least use a build option with vcpkg. This is due to libffi, a depedency of Augment, which is unable to be fetched any other way.
-
Set up the local vcpkg:
Tip
By default this clones vcpkg into
pc\vcpkg, which the CMake configure step picks up automatically. To share one vcpkg across projects, pass a directory:.\scripts\setup_vcpkg.bat D:\dev\shared. The script persistsVCPKG_COURAGE_REBORNto your user environment. Open a fresh terminal afterwards. -
Launch
x64 Native Tools Command Prompt for VS 2022andcdintopc/. -
Configure:
Important
If it's your first time building, or you've made large changes, please see how to build the modding framework. You need this. Mods will otherwise break.
-
Build:
Tip
Replace
Xwith your CPU thread count for a parallel build.
Option B: Visual Studio 2022#
-
Configure:
-
Build:
Option C: Without vcpkg (CPM)#
Note
Building without a package manager uses CPM and may take longer on first run.
With Ninja#
-
Launch
x86 Native Tools Command Prompt for VS 2022andcdintopc/. -
Configure:
-
Build:
Without Ninja#
-
Configure:
-
Build: