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:
parent
af42b3e468
commit
24d388f923
3 changed files with 17 additions and 4 deletions
|
@ -9,7 +9,10 @@ datadir = join_paths(prefix, get_option('datadir'))
|
||||||
|
|
||||||
executable('gtk-libfprint-test',
|
executable('gtk-libfprint-test',
|
||||||
[ 'gtk-libfprint-test.c', gtk_test_resources ],
|
[ 'gtk-libfprint-test.c', gtk_test_resources ],
|
||||||
dependencies: [ libfprint_dep, gtk_dep ],
|
dependencies: [
|
||||||
|
gtk_dep,
|
||||||
|
libfprint_dep,
|
||||||
|
],
|
||||||
c_args: '-DPACKAGE_VERSION="' + meson.project_version() + '"',
|
c_args: '-DPACKAGE_VERSION="' + meson.project_version() + '"',
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: bindir)
|
install_dir: bindir)
|
||||||
|
|
|
@ -3,7 +3,10 @@ examples = [ 'enroll', 'verify', 'manage-prints' ]
|
||||||
foreach example: examples
|
foreach example: examples
|
||||||
executable(example,
|
executable(example,
|
||||||
[ example + '.c', 'storage.c', 'utilities.c' ],
|
[ example + '.c', 'storage.c', 'utilities.c' ],
|
||||||
dependencies: [ libfprint_dep, glib_dep ],
|
dependencies: [
|
||||||
|
libfprint_dep,
|
||||||
|
glib_dep,
|
||||||
|
],
|
||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
|
|
@ -233,14 +233,21 @@ libfprint = library('fprint',
|
||||||
libfprint_dep = declare_dependency(link_with: libfprint,
|
libfprint_dep = declare_dependency(link_with: libfprint,
|
||||||
sources: [ fp_enums_h ],
|
sources: [ fp_enums_h ],
|
||||||
include_directories: root_inc,
|
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')
|
install_headers(['fprint.h'] + libfprint_public_headers, subdir: 'libfprint')
|
||||||
|
|
||||||
libfprint_private_dep = declare_dependency(
|
libfprint_private_dep = declare_dependency(
|
||||||
include_directories: include_directories('.'),
|
include_directories: include_directories('.'),
|
||||||
link_with: libfprint_private,
|
link_with: libfprint_private,
|
||||||
dependencies: [ deps, libfprint_dep ]
|
dependencies: [
|
||||||
|
deps,
|
||||||
|
libfprint_dep,
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
udev_rules = executable('fprint-list-udev-rules',
|
udev_rules = executable('fprint-list-udev-rules',
|
||||||
|
|
Loading…
Reference in a new issue