This template builds a version of the Tonc Brinstar demo.
A submodule for gba-toolchain is provided, however an existing install of gba-toolchain
can be used by modifying the toolchainFile
field of CMakePresets.json
.
git clone --recurse-submodules https://github.com/felixjones/gba-toolchain-template.git
- CMake (3.18 minimum)
- Arm compiler toolchain (Arm GNU Toolchain, devkitPro)
A host compiler is required if grit
is not detected.
FreeImage
will be compiled during the configure process if both grit
is not detected and FreeImage
.
Configure gba-toolchain
preset into cmake-build
(see CMakePresets.json
)
cmake --preset gba-toolchain
Build brin_demo.elf
as release
into cmake-build
cmake --build --preset release
Install brin_demo.gba
into bin
cmake --install cmake-build