meson: headers: use util-linux version of version defines
This matches what autotools is doing. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
This commit is contained in:
parent
312b64d9d1
commit
f02de6de85
4 changed files with 14 additions and 10 deletions
|
@ -1,9 +1,13 @@
|
|||
dir_libblkid = include_directories('.', 'src')
|
||||
|
||||
defs = configuration_data()
|
||||
defs.set('LIBBLKID_DATE', libblkid_date)
|
||||
defs.set('LIBBLKID_VERSION', pc_version)
|
||||
|
||||
blkid_h = configure_file(
|
||||
input : 'src/blkid.h.in',
|
||||
output : 'blkid.h',
|
||||
configuration : conf)
|
||||
configuration : defs)
|
||||
|
||||
lib_blkid_sources = '''
|
||||
src/blkidP.h
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
dir_libfdisk = include_directories('.', 'src')
|
||||
|
||||
defs = configuration_data()
|
||||
defs.set('LIBFDISK_VERSION', libfdisk_version)
|
||||
defs.set('LIBFDISK_MAJOR_VERSION', libfdisk_version.split('.')[0])
|
||||
defs.set('LIBFDISK_MINOR_VERSION', libfdisk_version.split('.')[1])
|
||||
defs.set('LIBFDISK_PATCH_VERSION', libfdisk_version.split('.')[2])
|
||||
defs.set('LIBFDISK_VERSION', pc_version)
|
||||
defs.set('LIBFDISK_MAJOR_VERSION', pc_version.split('.')[0])
|
||||
defs.set('LIBFDISK_MINOR_VERSION', pc_version.split('.')[1])
|
||||
defs.set('LIBFDISK_PATCH_VERSION', pc_version.split('.')[2])
|
||||
|
||||
libfdisk_h = configure_file(
|
||||
input : 'src/libfdisk.h.in',
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
dir_libmount = include_directories('.', 'src')
|
||||
|
||||
defs = configuration_data()
|
||||
defs.set('LIBMOUNT_VERSION', libmount_version)
|
||||
defs.set('LIBMOUNT_MAJOR_VERSION', libmount_version.split('.')[0])
|
||||
defs.set('LIBMOUNT_MINOR_VERSION', libmount_version.split('.')[1])
|
||||
defs.set('LIBMOUNT_PATCH_VERSION', libmount_version.split('.')[2])
|
||||
defs.set('LIBMOUNT_VERSION', pc_version)
|
||||
defs.set('LIBMOUNT_MAJOR_VERSION', pc_version.split('.')[0])
|
||||
defs.set('LIBMOUNT_MINOR_VERSION', pc_version.split('.')[1])
|
||||
defs.set('LIBMOUNT_PATCH_VERSION', pc_version.split('.')[2])
|
||||
|
||||
libmount_h = configure_file(
|
||||
input : 'src/libmount.h.in',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
dir_libsmartcols = include_directories('.', 'src')
|
||||
|
||||
defs = configuration_data()
|
||||
defs.set('LIBSMARTCOLS_VERSION', libsmartcols_version)
|
||||
defs.set('LIBSMARTCOLS_VERSION', pc_version)
|
||||
|
||||
libsmartcols_h = configure_file(
|
||||
input : 'src/libsmartcols.h.in',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue