Granite is a companion library for GTK and GLib. Among other things, it provides complex widgets and convenience functions designed for use in apps built for elementary OS.
Building, Testing, and Installation
You'll need the following dependencies:
- meson >= 0.48.2
- libgtk-4-dev >= 4.4.0
meson build to configure the build environment:
meson build --prefix=/usr
This command creates a
build directory. For all following commands, change to
the build directory before running them.
To build granite, use
To install, use
To see a demo app of Granite's widgets, run
granite-demo after installing it:
Documentation for all of the classes and functions in Granite is available on Valadoc
The additional requirements for building the documentation are:
To generate gtk-doc and valadoc documentation for this project, pass the
-Ddocumentation=true flag to meson, and run
ninja as before.