mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
build: Automatically bump mutter API version each cycle
Mutter will now bump the API version automatically at the beginning of a new development cycle; do the same here. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/641
This commit is contained in:
parent
2c61badc02
commit
466dc8da8f
1 changed files with 6 additions and 1 deletions
|
|
@ -4,9 +4,14 @@ project('gnome-shell', 'c',
|
|||
license: 'GPLv2+'
|
||||
)
|
||||
|
||||
split_version = meson.project_version().split('.')
|
||||
|
||||
# We depend on a specific version of the libmutter API. The mutter variants of
|
||||
# the Cogl and Clutter libraries also use this API version.
|
||||
mutter_api_version = '4'
|
||||
# The API version is increased automatically each development cycle,
|
||||
# starting with 0 in 3.23.x
|
||||
api_version = (split_version[1].to_int() - 23) / 2
|
||||
mutter_api_version = '@0@'.format(api_version)
|
||||
|
||||
clutter_pc = 'mutter-clutter-' + mutter_api_version
|
||||
cogl_pc = 'mutter-cogl-' + mutter_api_version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue