mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-12-25 02:30:09 +01:00
Don't build SPI driver on non-Linux
Doesn't build on other operating systems. With auto-detection we don't have to manually select all other drivers. Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
parent
c84d3774cf
commit
10e1cd76aa
2 changed files with 8 additions and 6 deletions
|
|
@ -1,9 +1,9 @@
|
|||
spi_sources = []
|
||||
spi_headers = []
|
||||
|
||||
if 'elanspi' in drivers
|
||||
spi_headers = ['fpi-spi-transfer.h']
|
||||
spi_sources = ['fpi-spi-transfer.c']
|
||||
else
|
||||
spi_sources = []
|
||||
spi_headers = []
|
||||
endif
|
||||
|
||||
libfprint_sources = [
|
||||
|
|
|
|||
|
|
@ -135,11 +135,13 @@ default_drivers = [
|
|||
'fpcmoc',
|
||||
'realtek',
|
||||
'focaltech_moc',
|
||||
|
||||
# SPI
|
||||
'elanspi',
|
||||
]
|
||||
|
||||
# SPI
|
||||
if host_machine.system() == 'linux'
|
||||
default_drivers += ['elanspi']
|
||||
endif
|
||||
|
||||
# FIXME: All the drivers should be fixed by adjusting the byte order.
|
||||
# See https://gitlab.freedesktop.org/libfprint/libfprint/-/issues/236
|
||||
endian_independent_drivers = virtual_drivers + [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue