Getting started
This page assumes you know C3 and have built C or C++ projects before.
What you need
- the C3 compiler, 0.8.x;
- CMake and a C compiler;
- Linux for the steps below. Windows builds cross-compile from Linux; Android and the web have their own builds, described in the repository.
Build and run the examples
git clone https://gitlab.com/tristanperalta/kiln.git
cd kiln
scripts/setup.sh # builds raylib and SDL3 once, from pinned sources
c3c run hello # App style: a sidebar, cards and text in several scripts
c3c run gallery # every widget in every state, light and dark
c3c run dashboard # charts, filters, a table and export
c3c run game # Game style: menus, pause and a HUD over raylib
c3c test # the test suite, screenshot tests included; needs no window
scripts/setup.sh builds raylib and SDL3 as static libraries into build/, so each example ships as one file. c3c run builds for debugging, at O0 with every check. To ship, build an example’s -release target and strip it:
c3c build gallery-release && strip build/gallery-release
Use Kiln in your project
Kiln is a set of C3 libraries in packages/: kiln, the core, and one backend: kiln_sdl3, kiln_raylib or kiln_software.
- Copy or link the repository to
lib/kilnin your project. - Run
scripts/setup.shthere once. - List the libraries in
project.json, with Kiln’s own dependencies, which c3c doesn’t load by itself:
"dependency-search-paths": [ "lib", "lib/kiln/packages", "lib/kiln/lib" ],
"dependencies": [ "kiln", "kiln_sdl3", "clay", "sdl3" ],
"linker-search-paths": [ "lib/kiln/build/sdl3" ]
Then start from the taste of the API on the home page. The guide’s Backends chapter covers raylib, the software renderer and the browser.
Other languages
Kiln has a C ABI and a header-only C++ wrapper, in bindings/.
Next
- The guide and the API reference.
- The gallery, to see each widget before you use it.