meson: move library version defines to the top (#6939)
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 28 Sep 2017 17:24:16 +0000 (19:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Sep 2017 17:24:16 +0000 (19:24 +0200)
meson.build
src/libudev/meson.build

index 70f4007..859454b 100644 (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],
index 1378f9a..57d678f 100644 (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],