meson: Add the include directories to deps

So we don't have to repeat them everywhere.
This commit is contained in:
Marco Trevisan (Treviño) 2019-12-04 12:43:12 +01:00
parent e143f12e57
commit e1d181887f

View file

@ -184,12 +184,13 @@ vflag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), mapfil
deps = [ mathlib_dep, glib_dep, gusb_dep, nss_dep, imaging_dep, gio_dep ] deps = [ mathlib_dep, glib_dep, gusb_dep, nss_dep, imaging_dep, gio_dep ]
nbis_lib = static_library('nbis', deps += declare_dependency(include_directories: [
nbis_sources,
include_directories: [
root_inc, root_inc,
include_directories('nbis/include'), include_directories('nbis/include'),
], ])
libnbis = static_library('nbis',
nbis_sources,
dependencies: deps, dependencies: deps,
install: false) install: false)
@ -199,13 +200,9 @@ libfprint = library('fprint',
soversion: soversion, soversion: soversion,
version: libversion, version: libversion,
c_args: drivers_cflags, c_args: drivers_cflags,
include_directories: [
root_inc,
include_directories('nbis/include'),
],
link_args : vflag, link_args : vflag,
link_depends : mapfile, link_depends : mapfile,
link_with: nbis_lib, link_with: libnbis,
dependencies: deps, dependencies: deps,
install: true) install: true)
@ -218,9 +215,6 @@ install_headers(['fprint.h'] + libfprint_public_headers, subdir: 'libfprint')
udev_rules = executable('fprint-list-udev-rules', udev_rules = executable('fprint-list-udev-rules',
'fprint-list-udev-rules.c', 'fprint-list-udev-rules.c',
include_directories: [
root_inc,
],
dependencies: [ deps, libfprint_dep ], dependencies: [ deps, libfprint_dep ],
install: false) install: false)
@ -235,9 +229,6 @@ endif
supported_devices = executable('fprint-list-supported-devices', supported_devices = executable('fprint-list-supported-devices',
'fprint-list-supported-devices.c', 'fprint-list-supported-devices.c',
include_directories: [
root_inc,
],
dependencies: [ deps, libfprint_dep ], dependencies: [ deps, libfprint_dep ],
install: false) install: false)