build: Bump API version automatically each development cycle
Since the API version was added, we've bumped it at some point late-ish in the cycle when enough changes had accumulated (but way after the first ABI break). Automate that process by computing the API version automatically from the project version: With this commit, the new API version will be 5 for the remaining 3.33.x releases and all 3.34.x stable versions; 3.35.1 will then bump it to 6 and so forth. https://gitlab.gnome.org/GNOME/mutter/merge_requests/696
This commit is contained in:
parent
08a3cbfc6c
commit
92868182c9
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,12 @@ project('mutter', 'c',
|
|||
|
||||
mutter_plugin_api_version = '3'
|
||||
|
||||
libmutter_api_version = '4'
|
||||
split_version = meson.project_version().split('.')
|
||||
|
||||
# Automatically increase API version each development cycle,
|
||||
# starting with 0 in 3.23.x
|
||||
api_version = (split_version[1].to_int() - 23) / 2
|
||||
libmutter_api_version = '@0@'.format(api_version)
|
||||
|
||||
# generic version requirements
|
||||
fribidi_req = '>= 1.0.0'
|
||||
|
|
Loading…
Reference in a new issue