mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
Re-order mmglib checking as per suggestion
This commit is contained in:
11
meson.build
11
meson.build
@@ -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')
|
||||||
|
Reference in New Issue
Block a user