libeconf supports two options to build it: Meson (preferred) or CMake (alternate)
libeconf requires a relatively recent version of Meson, version 0.49 or newer.
Building with Meson is quite simple:
$ meson build
$ ninja -C build
$ ninja -C build test
$ sudo ninja -C build install
If you want to build with the address sanitizer enabled, add
-Db_sanitize=address
as an argument to meson build
.
libeconf requires CMake 3.12 or newer.
Building with CMake is straightforward:
$ cmake -B build
$ make -C build
$ make -C build check
$ make -C build doc
$ sudo make -C build install
If you want to build with the address sanitizer enabled, add
-DCMAKE_BUILD_TYPE=SanitizeAddress
as an argument to cmake -B build
.
- Edit NEWS declaring the new version number and making all the changes to it.
- Update the version number in CMakeLists.txt and meson.build.
- Commit to git.
- On https://github.com/openSUSE/libeconf click on releases on the right column (or go to https://github.com/openSUSE/libeconf/releases)
- 'Draft a new release'.
- In 'tag version' write vX.Y.Z matching the new version you declared in your NEWS commit.
- Write a release title (e.g. "Release Version X.Y.Z")
- In the description just copy/paste the NEWS entry.
- Publish the release.
This creates a git tag for all the latest commits (hence the NEWS commit being important) under the new version number.