Re-order mmglib checking as per suggestion

This commit is contained in:
Adam Pigg
2021-04-09 08:31:27 +01:00
parent 40136c2a52
commit dfeab4c79b

View File

@@ -47,19 +47,20 @@ eg25_datadir = join_paths(full_datadir, meson.project_name())
add_global_arguments('-D@0@="@1@"'.format('EG25_CONFDIR', eg25_confdir), language : 'c') add_global_arguments('-D@0@="@1@"'.format('EG25_CONFDIR', eg25_confdir), language : 'c')
add_global_arguments('-D@0@="@1@"'.format('EG25_DATADIR', eg25_datadir), language : 'c') add_global_arguments('-D@0@="@1@"'.format('EG25_DATADIR', eg25_datadir), language : 'c')
mmglib_dep = dependency('mm-glib', required : false)
if mmglib_dep.found()
add_global_arguments('-DHAVE_MMGLIB=1', language : 'c')
endif
mgr_deps = [ mgr_deps = [
dependency('glib-2.0'), dependency('glib-2.0'),
dependency('gio-unix-2.0'), dependency('gio-unix-2.0'),
dependency('gudev-1.0'), dependency('gudev-1.0'),
dependency('libgpiod'), dependency('libgpiod'),
dependency('libusb-1.0'), dependency('libusb-1.0'),
mmglib_dep,
] ]
mmglib_dep = dependency('mm-glib', required : false)
if mmglib_dep.found()
add_global_arguments('-DHAVE_MMGLIB=1', language : 'c')
endif
subdir('data') subdir('data')
subdir('src') subdir('src')
subdir('udev') subdir('udev')