mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
libfprint: Don't build SPI backend if not SPI driver
The SPI backend only builds on Linux, this makes it work non non-Linux platforms, such as FreeBSD. Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
committed by
Marco Trevisan
parent
04a167b09b
commit
c84d3774cf
@@ -1,3 +1,11 @@
|
|||||||
|
if 'elanspi' in drivers
|
||||||
|
spi_headers = ['fpi-spi-transfer.h']
|
||||||
|
spi_sources = ['fpi-spi-transfer.c']
|
||||||
|
else
|
||||||
|
spi_sources = []
|
||||||
|
spi_headers = []
|
||||||
|
endif
|
||||||
|
|
||||||
libfprint_sources = [
|
libfprint_sources = [
|
||||||
'fp-context.c',
|
'fp-context.c',
|
||||||
'fp-device.c',
|
'fp-device.c',
|
||||||
@@ -16,7 +24,7 @@ libfprint_private_sources = [
|
|||||||
'fpi-print.c',
|
'fpi-print.c',
|
||||||
'fpi-ssm.c',
|
'fpi-ssm.c',
|
||||||
'fpi-usb-transfer.c',
|
'fpi-usb-transfer.c',
|
||||||
'fpi-spi-transfer.c',
|
spi_sources,
|
||||||
]
|
]
|
||||||
|
|
||||||
libfprint_public_headers = [
|
libfprint_public_headers = [
|
||||||
@@ -41,7 +49,7 @@ libfprint_private_headers = [
|
|||||||
'fpi-minutiae.h',
|
'fpi-minutiae.h',
|
||||||
'fpi-print.h',
|
'fpi-print.h',
|
||||||
'fpi-usb-transfer.h',
|
'fpi-usb-transfer.h',
|
||||||
'fpi-spi-transfer.h',
|
spi_headers,
|
||||||
'fpi-ssm.h',
|
'fpi-ssm.h',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user