diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2025-03-14 20:15:11 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2025-03-14 20:15:11 +0000 |
| commit | eb9357709bfd521a87f5fc4232bf37ce360a0317 (patch) | |
| tree | 0ff80196c91c85b06d9cd8272ed708363f7da51e /foot-features.c | |
| parent | meson: require wayland-protocols >= 1.41 (diff) | |
main/client: simplify code for printing --version string
Diffstat (limited to 'foot-features.c')
| -rw-r--r-- | foot-features.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/foot-features.c b/foot-features.c new file mode 100644 index 00000000..1b5bf7fd --- /dev/null +++ b/foot-features.c @@ -0,0 +1,30 @@ +#include "foot-features.h" +#include "version.h" + +const char version_and_features[] = + "version: " FOOT_VERSION + +#if defined(FOOT_PGO_ENABLED) && FOOT_PGO_ENABLED + " +pgo" +#else + " -pgo" +#endif + +#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED + " +ime" +#else + " -ime" +#endif + +#if defined(FOOT_GRAPHEME_CLUSTERING) && FOOT_GRAPHEME_CLUSTERING + " +graphemes" +#else + " -graphemes" +#endif + +#if !defined(NDEBUG) + " +assertions" +#else + " -assertions" +#endif +; |
