mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-01-07 23:00:21 +01: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:
parent
04a167b09b
commit
c84d3774cf
1 changed files with 10 additions and 2 deletions
|
|
@ -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 = [
|
||||
'fp-context.c',
|
||||
'fp-device.c',
|
||||
|
|
@ -16,7 +24,7 @@ libfprint_private_sources = [
|
|||
'fpi-print.c',
|
||||
'fpi-ssm.c',
|
||||
'fpi-usb-transfer.c',
|
||||
'fpi-spi-transfer.c',
|
||||
spi_sources,
|
||||
]
|
||||
|
||||
libfprint_public_headers = [
|
||||
|
|
@ -41,7 +49,7 @@ libfprint_private_headers = [
|
|||
'fpi-minutiae.h',
|
||||
'fpi-print.h',
|
||||
'fpi-usb-transfer.h',
|
||||
'fpi-spi-transfer.h',
|
||||
spi_headers,
|
||||
'fpi-ssm.h',
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue