fixup! Simplify Synaptics driver
This contains the following changes: * Remove the subdirectories for src/include * Drop the include directory logic from the build (not needed anymore with above, and it was also broken when the synaptics driver was not enabled)
This commit is contained in:
parent
4c42a090f7
commit
e4bac112aa
14 changed files with 8 additions and 16 deletions
|
@ -74,14 +74,6 @@ aesx660 = false
|
||||||
aes3k = false
|
aes3k = false
|
||||||
drivers_sources = []
|
drivers_sources = []
|
||||||
drivers_cflags = []
|
drivers_cflags = []
|
||||||
synaptics_drivers_sources = [
|
|
||||||
'drivers/synaptics/src/synaptics.c',
|
|
||||||
'drivers/synaptics/src/bmkt.c',
|
|
||||||
'drivers/synaptics/src/util.c',
|
|
||||||
'drivers/synaptics/src/bmkt_message.c',
|
|
||||||
'drivers/synaptics/src/sensor.c',
|
|
||||||
'drivers/synaptics/src/usb_transport.c',
|
|
||||||
]
|
|
||||||
|
|
||||||
foreach driver: drivers
|
foreach driver: drivers
|
||||||
if driver == 'upekts'
|
if driver == 'upekts'
|
||||||
|
@ -156,7 +148,14 @@ foreach driver: drivers
|
||||||
drivers_sources += [ 'drivers/elan.c', 'drivers/elan.h' ]
|
drivers_sources += [ 'drivers/elan.c', 'drivers/elan.h' ]
|
||||||
endif
|
endif
|
||||||
if driver == 'synaptics'
|
if driver == 'synaptics'
|
||||||
drivers_sources += synaptics_drivers_sources
|
drivers_sources += [
|
||||||
|
'drivers/synaptics/synaptics.c',
|
||||||
|
'drivers/synaptics/bmkt.c',
|
||||||
|
'drivers/synaptics/util.c',
|
||||||
|
'drivers/synaptics/bmkt_message.c',
|
||||||
|
'drivers/synaptics/sensor.c',
|
||||||
|
'drivers/synaptics/usb_transport.c',
|
||||||
|
]
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
@ -193,12 +192,6 @@ libfprint_sources += configure_file(input: 'empty_file',
|
||||||
|
|
||||||
deps = [ mathlib_dep, glib_dep, libusb_dep, nss_dep, imaging_dep ]
|
deps = [ mathlib_dep, glib_dep, libusb_dep, nss_dep, imaging_dep ]
|
||||||
|
|
||||||
if driver == 'synaptics'
|
|
||||||
synaptics_include_directories = [
|
|
||||||
'drivers/synaptics/include',
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
|
|
||||||
libfprint = library('fprint',
|
libfprint = library('fprint',
|
||||||
libfprint_sources + drivers_sources + nbis_sources + other_sources,
|
libfprint_sources + drivers_sources + nbis_sources + other_sources,
|
||||||
soversion: soversion,
|
soversion: soversion,
|
||||||
|
@ -207,7 +200,6 @@ libfprint = library('fprint',
|
||||||
include_directories: [
|
include_directories: [
|
||||||
root_inc,
|
root_inc,
|
||||||
include_directories('nbis/include'),
|
include_directories('nbis/include'),
|
||||||
include_directories(synaptics_include_directories),
|
|
||||||
],
|
],
|
||||||
dependencies: deps,
|
dependencies: deps,
|
||||||
install: true)
|
install: true)
|
||||||
|
|
Loading…
Reference in a new issue