meson.build: use project version instead of hardcoding it

This will make it one less thing to change when branching.
This commit is contained in:
Ernestas Kulik 2018-03-19 14:11:20 +02:00
parent fc5d9cbcbc
commit b1be1fc680

View file

@ -97,7 +97,8 @@ if get_option('profile') == 'development'
name_suffix = ' (Development Snapshot)'
elif get_option('profile') == 'stable-flatpak'
profile = 'StableFlatpak'
name_suffix = ' (3.28 Flatpak)'
version_array = meson.project_version().split('.')
name_suffix = ' (@0@.@1@ Flatpak)'.format(version_array[0], version_array[1])
else
profile = ''
name_suffix = ''