1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

meson: bump required version to 0.59.0

fs.stemp() and fs.name() can take File object since 0.59.0.
This commit is contained in:
Yu Watanabe 2022-05-16 03:53:01 +09:00
parent 2bd6f87e95
commit ff5becf585

View File

@ -10,7 +10,7 @@ project('systemd', 'c',
'localstatedir=/var',
'warning_level=2',
],
meson_version : '>= 0.56.0',
meson_version : '>= 0.59.0',
)
libsystemd_version = '0.36.0'
@ -4454,16 +4454,13 @@ foreach test : tests
versiondep,
]
# FIXME: Drop .format with meson >= 0.59.0
name = fs.stem('@0@'.format(sources[0]))
name = fs.stem(sources[0])
if not name.endswith('.cc')
deps += [userspace]
endif
name = name.split('.')[0]
suite = fs.name(fs.parent('@0@'.format(sources[0])))
# FIXME: Use str.replace() with meson >= 0.58.0
suite = suite.split('sd-')[-1]
suite = fs.name(fs.parent(sources[0])).replace('sd-', '')
if condition != '' and conf.get(condition) == 0
message('Not compiling @0@ because @1@ is not true'.format(name, condition))
@ -4594,8 +4591,7 @@ foreach fuzzer : fuzzers
endif
sources += fuzz_generated_directives
# FIXME: Drop .format with meson >= 0.59.0
name = fs.stem('@0@'.format(sources[0]))
name = fs.stem(sources[0])
exe = executable(
name,