Flint
Flint is a small C support library for raylib-style applications. It keeps a
raylib-compatible public surface available through flint.h, then adds the
pieces shared by downstream apps: UI controls, layout helpers, text rendering,
themes, embedded assets, locale loading, file dialogs, desktop tray support,
runtime asset downloads, and Lyra account/sync helpers.
Layout
include/- public headers, includingflint.hand generated raylib compatibility declarationssrc/- Flint implementation files, with reusable UI modules undersrc/ui/icons/andpfp/- PNG icon inputs embedded intosrc/ui/ui_icon_assets.cthemes/- built-in theme files for the runtime theme loaderassets/fonts/- generated locale font atlas outputsmk/- Make fragments for native, web, Android, Windows, packaging, and vendored dependency buildsscripts/- asset embedding, icon embedding, raylib preparation, and boundary check helpersexamples/- small programs that exercise Flint UI featurestests/- focused C tests for account, sync, and transition helpersvendor/raylib,vendor/curl,vendor/liboqs- source submodules used by downstream app builds
Building
Flint builds with the repository Makefile:
make
On FreeBSD, use the repository makefile entrypoint. It delegates to the GNU
Make build while keeping make as the command downstream apps can run:
make bsd-check
Run the focused tests with:
make test
Build a distributable static-library archive with:
make dist-static
The archive is an extracted SDK layout. It contains libflint.a,
libraylib.a, vendored static dependency libraries, public headers, API docs,
example consumers, CMake and pkg-config metadata, third-party notices, a package
manifest, and the submodule revisions used to build it. Validate it with:
make check-static-package
libflint.a stays focused on Flint object files. Companion libraries are shipped
beside it and linked through lib/pkgconfig/flint.pc. OpenSSL is still treated
as an external system/toolchain dependency unless explicit OpenSSL static library
paths are supplied at build time.
Releases
Flint releases are tag-driven. Run the Release GitHub Actions workflow with a
version such as v0.1.0; the workflow validates the version, creates and pushes
the annotated tag, checks out that tag, builds and tests Flint, packages the
static-library archive, uploads it as an artifact, and attaches it to the GitHub
release. Pushing a v* tag manually uses the same build-and-publish path.
Integration
To integrate Flint into your project:
- Add
include/to your header search paths - Include
flint.hfor the raylib-compatible API plus Flint modules - Compile Flint sources from
src/andsrc/ui/, or use themk/fragments to let Flint assemble source lists and platform flags - Use
scripts/embed-icons.shandscripts/embed-assets.shwhen your app needs custom embedded icons, locale files, fonts, themes, or image/audio assets - Include
mk/vendor.mkwhen your app enables curl or liboqs-backed features
Applications should keep build artifacts in their own build directories, but
the dependency source of truth and common build recipes should live under Flint.
For TLS-enabled curl builds, mk/vendor.mk passes the OPENSSL_* make
variables through to the vendored curl CMake build.
Conventions
Flint follows raylib-style C conventions where practical: lowercase module
filenames, simple C structs, and public functions named like raylib APIs
(InitWindow, DrawTexture, BeginUIFrame, DrawUIButton). Internal helpers
stay private to src/ unless a downstream app needs the API in include/.
Documentation
docs/API.mddocuments the public API.docs/site/contains the static documentation website.docs/AGENTS.mddocuments how downstream apps should use Flint, including modal/input capture and submodule update rules.