libfprint: Introduce libfprint_private static library

Split the library into a private part with all the symbols that we can use
for unit-test all the fpi functions.
This commit is contained in:
Marco Trevisan (Treviño) 2019-12-05 14:27:33 +01:00
parent 92a5278a74
commit 7114d97f25

View file

@ -4,6 +4,9 @@ libfprint_sources = [
'fp-image.c',
'fp-print.c',
'fp-image-device.c',
]
libfprint_private_sources = [
'fpi-assembling.c',
'fpi-ssm.c',
'fpi-usb-transfer.c',
@ -200,15 +203,19 @@ libnbis = static_library('nbis',
]),
install: false)
libfprint_private = static_library('fprint-private',
sources: libfprint_private_sources + fpi_enums,
dependencies: deps,
install: false)
libfprint = library('fprint',
libfprint_sources + fp_enums + fpi_enums +
drivers_sources + other_sources,
sources: libfprint_sources + fp_enums + drivers_sources + other_sources,
soversion: soversion,
version: libversion,
c_args: drivers_cflags,
link_args : vflag,
link_depends : mapfile,
link_with: libnbis,
link_with: [libnbis, libfprint_private],
dependencies: deps,
install: true)