meson: dependency: use fallback without variable name

Now that both tllist and fcft use meson.override_dependency(), we can
use the simpler form of fallback in our dependency call().

This requires meson >= 0.53, tllist >= 1.0.1 and fcft >= 2.0.0
This commit is contained in:
Daniel Eklöf 2020-04-24 20:32:37 +02:00
parent f736d467d9
commit c82378863c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1,7 +1,7 @@
project('foot', 'c',
version: '1.2.3',
license: 'MIT',
meson_version: '>=0.47.0',
meson_version: '>=0.53.0',
default_options: [
'c_std=c11',
'warning_level=1',
@ -57,8 +57,8 @@ wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
xkb = dependency('xkbcommon')
tllist = dependency('tllist', version: '>=1.0.0', fallback: ['tllist', 'tllist'])
fcft = dependency('fcft', version: ['>=2.0.0', '<2.1.0'], fallback: ['fcft', 'fcft'])
tllist = dependency('tllist', version: '>=1.0.1', fallback: 'tllist')
fcft = dependency('fcft', version: ['>=2.0.0', '<2.1.0'], fallback: 'fcft')
wayland_protocols_datadir = wayland_protocols.get_pkgconfig_variable('pkgdatadir')