diff options
author | Colin Walters <walters@verbum.org> | 2019-07-24 21:31:54 +0000 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-07-29 13:58:13 +0000 |
commit | c9ecfb1d81b5592ab9b5978da440b2997b8716a3 (patch) | |
tree | e90ee3a615e5c102d7d00dd30632efacb2e9e0fd /src/libostree/ostree-version.h.in | |
parent | cf7fc0eabbe20e854dc576d518babb2ec23b4487 (diff) | |
download | ostree-c9ecfb1d81b5592ab9b5978da440b2997b8716a3.tar.gz |
Add OSTREE_BUILT_FEATURES to ostree-version.h
This way projects can dispatch at run-time based on ostree's
build time options, e.g. detect the availability of GPG.
Closes: #1890
Approved by: jlebon
Diffstat (limited to 'src/libostree/ostree-version.h.in')
-rw-r--r-- | src/libostree/ostree-version.h.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libostree/ostree-version.h.in b/src/libostree/ostree-version.h.in index 8edb9116..2c7ecdec 100644 --- a/src/libostree/ostree-version.h.in +++ b/src/libostree/ostree-version.h.in @@ -91,3 +91,13 @@ #define OSTREE_CHECK_VERSION(year,release) \ (OSTREE_YEAR_VERSION > (year) || \ (OSTREE_YEAR_VERSION == (year) && OSTREE_RELEASE_VERSION >= (release))) + +/** + * OSTREE_BUILT_FEATURES: + * + * Whitespace separated set of features this libostree was configured with at build time. + * Consult the source code in configure.ac (or the CLI `ostree --version`) for examples. + * + * Since: 2019.3 + */ +#define OSTREE_BUILT_FEATURES "@OSTREE_FEATURES@" |