meson.build: Clean up previous commit

Don't hardcode things, and move only deduce `current` for non-Visual
Studio builds, as it is only used there.
This commit is contained in:
Chun-wei Fan 2019-04-12 14:01:31 +08:00
parent f5408e5061
commit a4410e9c01

View File

@ -109,14 +109,14 @@ else
endif
# Maintain compatibility with the Autotools build
current = gtk_binary_age - gtk_interface_age
gtk_library_version = ''
gail_library_version = ''
if cc.get_id() == 'msvc'
gtk_library_version = '3'
gail_library_version = '3'
gtk_library_version = gtk_major_version.to_string()
gail_library_version = gtk_major_version.to_string()
else
current = gtk_binary_age - gtk_interface_age
gtk_library_version = '@0@.@1@.@2@'.format(gtk_soversion, current, gtk_interface_age)
gail_library_version = '0.0.0'
endif