A small library intended for internal use by GNOME Games, but it may be used by others.
Before version 3.0, libgnome-games-support was shipped like a normal library, but now it is a copylib that is used as a meson subproject.
- In your meson.build, declare a dependency on libgnome-games-support, and set the
superproject_name(here it isgnome-mines) to the name of your project:
libgnome_games_support = subproject ('libgnome-games-support',
default_options: 'superproject_name=gnome-mines')
libgnome_games_support_dep = libgnome_games_support.get_variable ('lggs_dependency')
- Create
subprojects/libgnome-games-support.wrap, it should contain
[wrap-git]
directory = libgnome-games-support
url = https://gitlab.gnome.org/GNOME/libgnome-games-support.git
revision = git hash goes here
depth = 1
-
Build the project with
mesonto download the subproject. -
Remove the libgnome-games-support subproject's
.gitdirectory if you don't want it to be a git submodule -
git committhe subproject directory.
You either read the comments in the source code or generate documentation for yourself with:
$ valadoc --package-name=libgnome-games-support --package-version=3.0 --force --pkg=gtk4 --pkg=libadwaita-1 -o docs games/config.vapi games/theme-selector-dialog.vala games/scores/*.vala