Allow to build without mmglib

This commit is contained in:
Adam Pigg
2021-03-31 20:13:27 +01:00
parent ea19b0271c
commit 40136c2a52
6 changed files with 38 additions and 8 deletions

View File

@@ -53,9 +53,13 @@ mgr_deps = [
dependency('gudev-1.0'),
dependency('libgpiod'),
dependency('libusb-1.0'),
dependency('mm-glib'),
]
mmglib_dep = dependency('mm-glib', required : false)
if mmglib_dep.found()
add_global_arguments('-DHAVE_MMGLIB=1', language : 'c')
endif
subdir('data')
subdir('src')
subdir('udev')