mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-23 06:59:44 -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
|
|
@ -4,14 +4,13 @@ version_data.set_quoted('WLR_VERSION_STR', meson.project_version())
|
|||
version_data.set('WLR_VERSION_MAJOR', version_array[0])
|
||||
version_data.set('WLR_VERSION_MINOR', version_array[1])
|
||||
version_data.set('WLR_VERSION_MICRO', version_array[2])
|
||||
version_data.set('WLR_VERSION_NUM', '(WLR_VERSION_MAJOR << 16) | (WLR_VERSION_MINOR << 8) | WLR_VERSION_MICRO')
|
||||
version_data.set('WLR_VERSION_API_CURRENT', so_version[0])
|
||||
version_data.set('WLR_VERSION_API_REVISION', so_version[1])
|
||||
version_data.set('WLR_VERSION_API_AGE', so_version[2])
|
||||
|
||||
install_headers(
|
||||
configure_file(output: 'config.h', configuration: conf_data),
|
||||
configure_file(output: 'version.h', configuration: version_data),
|
||||
configure_file(input: 'config.h.in', output: 'config.h',configuration: conf_data),
|
||||
configure_file(input: 'version.h.in', output: 'version.h', configuration: version_data),
|
||||
'backend.h',
|
||||
'xcursor.h',
|
||||
subdir: 'wlr'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue