Commit graph

6 commits

Author SHA1 Message Date
Daniel Eklöf
c4f9168191
meson: fix version generation from git
run_command() was only run at configure time, meaning the generated
version (that was passed on to the sources via -DYAMBAR_VERSION)
became stale.

Fix by implementing a shell script that generates a header file, and
wrap this in a custom target that is run every time (but the generated
file is only updated when the version changes)
2019-10-19 21:47:21 +02:00
Daniel Eklöf
9dbbc480e4
Rename project: f00bar -> yambar 2019-09-28 20:39:45 +02:00
Daniel Eklöf
6753ee3dad meson: set project version
Export project version with -DF00BAR_VERSION.

This is by default set to the meson project version.

However, if git is found, and we manage to run 'git describe' and 'git
branch' in the source directory, version is set to the output of that
instead.
2019-05-07 20:23:51 +02:00
Daniel Eklöf
64171b412a meson: doc: set 'capture: true' instead of redirecting stdout 2019-05-03 23:07:37 +02:00
Daniel Eklöf
6a10ddbc39 meson: don't compress man pages
This is up to the distribution/packager.

For example, arch automatically compresses man pages.
2019-05-03 22:58:22 +02:00
Daniel Eklöf
095766ca12 meson: generate man pages 2019-05-03 22:37:47 +02:00