mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-08 11:08:29 -05:00
Use input file for configure_file
This is so we can potentially add comments to it, and so if a user looks at the installed header, they can see the /* #undef WLR_HAS_FEATURE */ line to see every option, even if not available.
This commit is contained in:
parent
653ea512c2
commit
f41c411980
3 changed files with 37 additions and 3 deletions
16
include/wlr/version.h.in
Normal file
16
include/wlr/version.h.in
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef WLR_VERSION_H
|
||||
#define WLR_VERSION_H
|
||||
|
||||
#mesondefine WLR_VERSION_STR
|
||||
|
||||
#mesondefine WLR_VERSION_MAJOR
|
||||
#mesondefine WLR_VERSION_MINOR
|
||||
#mesondefine WLR_VERSION_MICRO
|
||||
|
||||
#define WLR_VERSION_NUM ((WLR_VERSION_MAJOR << 16) | (WLR_VERSION_MINOR << 8) | WLR_VERSION_MICRO)
|
||||
|
||||
#mesondefine WLR_VERSION_API_CURRENT
|
||||
#mesondefine WLR_VERSION_API_REVISION
|
||||
#mesondefine WLR_VERSION_API_AGE
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue