meson: support older udev systems

Differential Revision: https://phab.enlightenment.org/D7145
This commit is contained in:
Marcel Hollerbach 2018-10-04 19:23:11 +02:00
parent 93ee5f9d53
commit ba0630afda
1 changed files with 6 additions and 1 deletions

View File

@ -52,9 +52,14 @@ endif
options_to_check = ['eject', 'mount', 'unmount']
eeze_deps += dependency('libudev',
udev = dependency('libudev',
version: ['>=148']
)
eeze_deps += udev
if udev.version() < '199'
config_h.set('OLD_LIBUDEV', '1')
endif
foreach option : options_to_check
val = get_option(option+'-path')