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
This commit is contained in:
1 parent
cf7fc0eabb
commit
c9ecfb1d81
2 files changed
+13
No files matched your search
@@ -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@"
|
||||
Reference in new issue
Block a user