meson: move library version defines to the top (#6939)

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-09-28 19:24:16 +02:00 committed by Lennart Poettering
parent e88fe88877
commit 56d50ab1d3
2 changed files with 5 additions and 2 deletions

View File

@ -10,6 +10,9 @@ project('systemd', 'c',
meson_version : '>= 0.40',
)
libsystemd_version = '0.19.0'
libudev_version = '1.6.6'
# We need the same data in three different formats, ugh!
# Also, for hysterical reasons, we use different variable
# names, sometimes. Not all variables are included in every
@ -1126,7 +1129,7 @@ libsystemd = shared_library(
'systemd',
libsystemd_internal_sources,
journal_internal_sources,
version : '0.19.0',
version : libsystemd_version,
include_directories : includes,
link_args : ['-shared',
'-Wl,--version-script=' + libsystemd_sym_path],

View File

@ -19,7 +19,7 @@ libudev_sym_path = '@0@/@1@'.format(meson.current_source_dir(), libudev_sym)
libudev = shared_library(
'udev',
libudev_sources,
version : '1.6.6',
version : libudev_version,
include_directories : includes,
link_args : ['-shared',
'-Wl,--version-script=' + libudev_sym_path],