meson: Split single-line dependencies to reduce the diff on changes

Make it more readable and in case we add something else, it's easier to track
This commit is contained in:
Marco Trevisan (Treviño) 2019-12-13 19:33:12 +01:00
parent af42b3e468
commit 24d388f923
3 changed files with 17 additions and 4 deletions

View file

@ -9,7 +9,10 @@ datadir = join_paths(prefix, get_option('datadir'))
executable('gtk-libfprint-test',
[ 'gtk-libfprint-test.c', gtk_test_resources ],
dependencies: [ libfprint_dep, gtk_dep ],
dependencies: [
gtk_dep,
libfprint_dep,
],
c_args: '-DPACKAGE_VERSION="' + meson.project_version() + '"',
install: true,
install_dir: bindir)

View file

@ -3,7 +3,10 @@ examples = [ 'enroll', 'verify', 'manage-prints' ]
foreach example: examples
executable(example,
[ example + '.c', 'storage.c', 'utilities.c' ],
dependencies: [ libfprint_dep, glib_dep ],
dependencies: [
libfprint_dep,
glib_dep,
],
)
endforeach

View file

@ -233,14 +233,21 @@ libfprint = library('fprint',
libfprint_dep = declare_dependency(link_with: libfprint,
sources: [ fp_enums_h ],
include_directories: root_inc,
dependencies: [ glib_dep, gusb_dep, gio_dep ])
dependencies: [
gio_dep,
glib_dep,
gusb_dep,
])
install_headers(['fprint.h'] + libfprint_public_headers, subdir: 'libfprint')
libfprint_private_dep = declare_dependency(
include_directories: include_directories('.'),
link_with: libfprint_private,
dependencies: [ deps, libfprint_dep ]
dependencies: [
deps,
libfprint_dep,
]
)
udev_rules = executable('fprint-list-udev-rules',