meson: tllist/fcft: use system dependency first, fallback to subprojects

This commit is contained in:
Daniel Eklöf 2019-12-01 16:07:56 +01:00
parent dea021e8ef
commit 64844a8937
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -55,19 +55,8 @@ if backend_x11
install_headers('xcb.h', subdir: 'yambar') install_headers('xcb.h', subdir: 'yambar')
endif endif
tllist_proj = subproject('tllist', required: false) tllist = dependency('tllist', fallback: ['tllist', 'tllist'])
if tllist_proj.found() fcft = dependency('fcft', fallback: ['fcft', 'fcft'])
tllist = tllist_proj.get_variable('tllist')
else
tllist = dependency('tllist')
endif
fcft_proj = subproject('fcft', required: false)
if fcft_proj.found()
fcft = fcft_proj.get_variable('fcft')
else
fcft = dependency('fcft')
endif
subdir('completions') subdir('completions')
subdir('doc') subdir('doc')