2024-07-29 14:29:53 +00:00
|
|
|
spi_sources = []
|
|
|
|
|
spi_headers = []
|
|
|
|
|
|
2024-08-30 04:16:48 +02:00
|
|
|
if enabled_spi_drivers.length() > 0
|
2024-07-29 13:48:21 +00:00
|
|
|
spi_headers = ['fpi-spi-transfer.h']
|
|
|
|
|
spi_sources = ['fpi-spi-transfer.c']
|
|
|
|
|
endif
|
|
|
|
|
|
2018-05-14 15:15:52 +02:00
|
|
|
libfprint_sources = [
|
2019-07-03 23:29:05 +02:00
|
|
|
'fp-context.c',
|
|
|
|
|
'fp-device.c',
|
|
|
|
|
'fp-image.c',
|
|
|
|
|
'fp-print.c',
|
|
|
|
|
'fp-image-device.c',
|
2019-12-05 14:27:33 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
libfprint_private_sources = [
|
2018-09-28 11:32:09 +02:00
|
|
|
'fpi-assembling.c',
|
2019-12-16 18:07:30 +01:00
|
|
|
'fpi-byte-reader.c',
|
|
|
|
|
'fpi-byte-writer.c',
|
2019-12-10 20:24:04 +01:00
|
|
|
'fpi-device.c',
|
2019-12-11 13:40:47 +01:00
|
|
|
'fpi-image-device.c',
|
2019-12-16 18:07:30 +01:00
|
|
|
'fpi-image.c',
|
2019-12-11 19:55:47 +01:00
|
|
|
'fpi-print.c',
|
2018-09-05 12:39:16 +02:00
|
|
|
'fpi-ssm.c',
|
2019-07-03 23:29:05 +02:00
|
|
|
'fpi-usb-transfer.c',
|
2024-09-03 06:28:47 +02:00
|
|
|
] + spi_sources
|
2019-07-03 23:29:05 +02:00
|
|
|
|
|
|
|
|
libfprint_public_headers = [
|
|
|
|
|
'fp-context.h',
|
|
|
|
|
'fp-device.h',
|
2019-12-17 05:14:54 +01:00
|
|
|
'fp-image-device.h',
|
2019-07-03 23:29:05 +02:00
|
|
|
'fp-image.h',
|
|
|
|
|
'fp-print.h',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
libfprint_private_headers = [
|
|
|
|
|
'fpi-assembling.h',
|
2019-12-16 18:07:30 +01:00
|
|
|
'fpi-byte-reader.h',
|
|
|
|
|
'fpi-byte-utils.h',
|
|
|
|
|
'fpi-byte-writer.h',
|
2020-02-27 06:03:21 +01:00
|
|
|
'fpi-compat.h',
|
2019-12-16 18:07:30 +01:00
|
|
|
'fpi-context.h',
|
2019-07-03 23:29:05 +02:00
|
|
|
'fpi-device.h',
|
|
|
|
|
'fpi-image-device.h',
|
2019-12-16 18:07:30 +01:00
|
|
|
'fpi-image.h',
|
|
|
|
|
'fpi-log.h',
|
|
|
|
|
'fpi-minutiae.h',
|
2019-07-03 23:29:05 +02:00
|
|
|
'fpi-print.h',
|
2019-12-16 18:07:30 +01:00
|
|
|
'fpi-usb-transfer.h',
|
|
|
|
|
'fpi-ssm.h',
|
2024-09-03 06:28:47 +02:00
|
|
|
] + spi_headers
|
2018-05-14 15:15:52 +02:00
|
|
|
|
|
|
|
|
nbis_sources = [
|
|
|
|
|
'nbis/bozorth3/bozorth3.c',
|
|
|
|
|
'nbis/bozorth3/bz_alloc.c',
|
|
|
|
|
'nbis/bozorth3/bz_drvrs.c',
|
|
|
|
|
'nbis/bozorth3/bz_gbls.c',
|
|
|
|
|
'nbis/bozorth3/bz_io.c',
|
|
|
|
|
'nbis/bozorth3/bz_sort.c',
|
|
|
|
|
'nbis/mindtct/binar.c',
|
|
|
|
|
'nbis/mindtct/block.c',
|
2018-08-24 19:48:53 +02:00
|
|
|
'nbis/mindtct/chaincod.c',
|
2018-05-14 15:15:52 +02:00
|
|
|
'nbis/mindtct/contour.c',
|
|
|
|
|
'nbis/mindtct/detect.c',
|
|
|
|
|
'nbis/mindtct/dft.c',
|
|
|
|
|
'nbis/mindtct/free.c',
|
2018-08-24 19:48:53 +02:00
|
|
|
'nbis/mindtct/getmin.c',
|
2018-05-14 15:15:52 +02:00
|
|
|
'nbis/mindtct/globals.c',
|
|
|
|
|
'nbis/mindtct/imgutil.c',
|
|
|
|
|
'nbis/mindtct/init.c',
|
|
|
|
|
'nbis/mindtct/line.c',
|
2018-08-24 19:48:53 +02:00
|
|
|
'nbis/mindtct/link.c',
|
2018-05-14 15:15:52 +02:00
|
|
|
'nbis/mindtct/log.c',
|
|
|
|
|
'nbis/mindtct/loop.c',
|
|
|
|
|
'nbis/mindtct/maps.c',
|
|
|
|
|
'nbis/mindtct/matchpat.c',
|
|
|
|
|
'nbis/mindtct/minutia.c',
|
|
|
|
|
'nbis/mindtct/morph.c',
|
|
|
|
|
'nbis/mindtct/quality.c',
|
|
|
|
|
'nbis/mindtct/remove.c',
|
|
|
|
|
'nbis/mindtct/ridges.c',
|
|
|
|
|
'nbis/mindtct/shape.c',
|
|
|
|
|
'nbis/mindtct/sort.c',
|
|
|
|
|
'nbis/mindtct/util.c',
|
2018-08-24 19:48:53 +02:00
|
|
|
'nbis/mindtct/xytreps.c',
|
2018-05-14 15:15:52 +02:00
|
|
|
]
|
|
|
|
|
|
2020-10-30 16:26:06 +01:00
|
|
|
driver_sources = {
|
|
|
|
|
'upekts' :
|
|
|
|
|
[ 'drivers/upekts.c', 'drivers/upek_proto.c' ],
|
|
|
|
|
'upektc' :
|
|
|
|
|
[ 'drivers/upektc.c' ],
|
|
|
|
|
'upeksonly' :
|
|
|
|
|
[ 'drivers/upeksonly.c' ],
|
|
|
|
|
'uru4000' :
|
|
|
|
|
[ 'drivers/uru4000.c' ],
|
|
|
|
|
'aes1610' :
|
|
|
|
|
[ 'drivers/aes1610.c' ],
|
|
|
|
|
'aes1660' :
|
|
|
|
|
[ 'drivers/aes1660.c' ],
|
|
|
|
|
'aes2501' :
|
|
|
|
|
[ 'drivers/aes2501.c' ],
|
|
|
|
|
'aes2550' :
|
|
|
|
|
[ 'drivers/aes2550.c' ],
|
|
|
|
|
'aes2660' :
|
|
|
|
|
[ 'drivers/aes2660.c' ],
|
|
|
|
|
'aes3500' :
|
|
|
|
|
[ 'drivers/aes3500.c' ],
|
|
|
|
|
'aes4000' :
|
|
|
|
|
[ 'drivers/aes4000.c' ],
|
|
|
|
|
'vcom5s' :
|
|
|
|
|
[ 'drivers/vcom5s.c' ],
|
|
|
|
|
'vfs101' :
|
|
|
|
|
[ 'drivers/vfs101.c' ],
|
|
|
|
|
'vfs301' :
|
|
|
|
|
[ 'drivers/vfs301.c', 'drivers/vfs301_proto.c' ],
|
|
|
|
|
'vfs5011' :
|
|
|
|
|
[ 'drivers/vfs5011.c' ],
|
|
|
|
|
'vfs7552' :
|
|
|
|
|
[ 'drivers/vfs7552.c' ],
|
|
|
|
|
'upektc_img' :
|
|
|
|
|
[ 'drivers/upektc_img.c', 'drivers/upek_proto.c' ],
|
|
|
|
|
'etes603' :
|
|
|
|
|
[ 'drivers/etes603.c' ],
|
2021-07-07 11:20:12 +02:00
|
|
|
'egis0570' :
|
|
|
|
|
[ 'drivers/egis0570.c' ],
|
2023-10-08 14:52:55 +02:00
|
|
|
'egismoc' :
|
|
|
|
|
[ 'drivers/egismoc/egismoc.c' ],
|
2020-10-30 16:26:06 +01:00
|
|
|
'vfs0050' :
|
|
|
|
|
[ 'drivers/vfs0050.c' ],
|
|
|
|
|
'elan' :
|
|
|
|
|
[ 'drivers/elan.c' ],
|
2021-05-05 22:21:57 +08:00
|
|
|
'elanmoc' :
|
|
|
|
|
[ 'drivers/elanmoc/elanmoc.c' ],
|
2020-10-30 16:26:06 +01:00
|
|
|
'elanspi' :
|
|
|
|
|
[ 'drivers/elanspi.c' ],
|
|
|
|
|
'nb1010' :
|
|
|
|
|
[ 'drivers/nb1010.c' ],
|
|
|
|
|
'virtual_image' :
|
|
|
|
|
[ 'drivers/virtual-image.c' ],
|
|
|
|
|
'virtual_device' :
|
|
|
|
|
[ 'drivers/virtual-device.c' ],
|
|
|
|
|
'virtual_device_storage' :
|
|
|
|
|
[ 'drivers/virtual-device-storage.c' ],
|
|
|
|
|
'synaptics' :
|
|
|
|
|
[ 'drivers/synaptics/synaptics.c', 'drivers/synaptics/bmkt_message.c' ],
|
|
|
|
|
'goodixmoc' :
|
|
|
|
|
[ 'drivers/goodixmoc/goodix.c', 'drivers/goodixmoc/goodix_proto.c' ],
|
2022-07-25 15:12:11 +08:00
|
|
|
'fpcmoc' :
|
|
|
|
|
[ 'drivers/fpcmoc/fpc.c' ],
|
2023-08-04 10:21:17 +08:00
|
|
|
'realtek' :
|
|
|
|
|
[ 'drivers/realtek/realtek.c' ],
|
2022-11-08 10:43:15 +08:00
|
|
|
'focaltech_moc' :
|
|
|
|
|
[ 'drivers/focaltech_moc/focaltech_moc.c' ],
|
2020-10-30 16:26:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
helper_sources = {
|
|
|
|
|
'aeslib' :
|
|
|
|
|
[ 'drivers/aeslib.c' ],
|
|
|
|
|
'aesx660' :
|
|
|
|
|
[ 'drivers/aesx660.c' ],
|
|
|
|
|
'aes3k' :
|
|
|
|
|
[ 'drivers/aes3k.c' ],
|
2025-02-13 00:52:28 +01:00
|
|
|
'openssl' :
|
2020-10-30 16:26:06 +01:00
|
|
|
[ ],
|
|
|
|
|
'udev' :
|
|
|
|
|
[ ],
|
|
|
|
|
'virtual' :
|
|
|
|
|
[ 'drivers/virtual-device-listener.c' ],
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-14 15:15:52 +02:00
|
|
|
drivers_sources = []
|
|
|
|
|
drivers_cflags = []
|
|
|
|
|
foreach driver: drivers
|
2020-10-30 16:26:06 +01:00
|
|
|
drivers_sources += driver_sources[driver]
|
|
|
|
|
endforeach
|
|
|
|
|
foreach helper : driver_helpers
|
|
|
|
|
drivers_sources += helper_sources[helper]
|
2018-05-14 15:15:52 +02:00
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
|
|
2019-07-03 23:29:05 +02:00
|
|
|
fp_enums = gnome.mkenums_simple('fp-enums',
|
2019-11-21 20:37:17 +01:00
|
|
|
sources: libfprint_public_headers,
|
2019-12-17 15:39:24 +01:00
|
|
|
install_header: true,
|
2020-01-23 17:08:41 +01:00
|
|
|
install_dir: get_option('includedir') / versioned_libname,
|
2019-12-17 15:39:24 +01:00
|
|
|
)
|
2019-07-03 23:29:05 +02:00
|
|
|
fp_enums_h = fp_enums[1]
|
|
|
|
|
|
|
|
|
|
fpi_enums = gnome.mkenums_simple('fpi-enums',
|
2019-11-21 20:37:17 +01:00
|
|
|
sources: libfprint_private_headers,
|
2019-12-16 19:00:36 +01:00
|
|
|
install_header: false,
|
|
|
|
|
)
|
2019-07-03 23:29:05 +02:00
|
|
|
fpi_enums_h = fpi_enums[1]
|
|
|
|
|
|
2019-12-17 07:02:16 +01:00
|
|
|
enums_dep = declare_dependency(
|
|
|
|
|
sources: [ fp_enums_h, fpi_enums_h ]
|
|
|
|
|
)
|
|
|
|
|
|
2020-10-30 14:30:52 +01:00
|
|
|
# Export the drivers' types to the core code
|
|
|
|
|
drivers_type_list = []
|
|
|
|
|
drivers_type_func = []
|
|
|
|
|
drivers_type_list += '#include <glib-object.h>'
|
|
|
|
|
drivers_type_list += '#include "fpi-context.h"'
|
|
|
|
|
drivers_type_list += ''
|
|
|
|
|
drivers_type_func += 'GArray *'
|
|
|
|
|
drivers_type_func += 'fpi_get_driver_types (void)'
|
|
|
|
|
drivers_type_func += '{'
|
|
|
|
|
drivers_type_func += ' GArray *drivers = g_array_new (TRUE, FALSE, sizeof (GType));'
|
|
|
|
|
drivers_type_func += ' GType t;'
|
|
|
|
|
drivers_type_func += ''
|
|
|
|
|
foreach driver: supported_drivers
|
|
|
|
|
drivers_type_list += 'extern GType (fpi_device_' + driver + '_get_type) (void);'
|
|
|
|
|
drivers_type_func += ' t = fpi_device_' + driver + '_get_type ();'
|
|
|
|
|
drivers_type_func += ' g_array_append_val (drivers, t);'
|
|
|
|
|
drivers_type_func += ''
|
|
|
|
|
endforeach
|
|
|
|
|
drivers_type_list += ''
|
|
|
|
|
drivers_type_func += ' return drivers;'
|
|
|
|
|
drivers_type_func += '}'
|
|
|
|
|
|
2019-07-03 23:29:05 +02:00
|
|
|
drivers_sources += configure_file(input: 'empty_file',
|
2019-12-04 13:44:08 +01:00
|
|
|
output: 'fpi-drivers.c',
|
2019-11-21 20:37:17 +01:00
|
|
|
capture: true,
|
|
|
|
|
command: [
|
|
|
|
|
'echo',
|
2019-12-04 13:44:08 +01:00
|
|
|
'\n'.join(drivers_type_list + [] + drivers_type_func)
|
2019-11-21 20:37:17 +01:00
|
|
|
])
|
2019-07-03 23:29:05 +02:00
|
|
|
|
2019-12-16 18:46:07 +01:00
|
|
|
deps = [
|
2019-12-17 07:02:16 +01:00
|
|
|
enums_dep,
|
2019-12-16 18:46:07 +01:00
|
|
|
gio_dep,
|
|
|
|
|
glib_dep,
|
2020-02-13 18:11:46 +01:00
|
|
|
gobject_dep,
|
2019-12-16 18:46:07 +01:00
|
|
|
gusb_dep,
|
|
|
|
|
mathlib_dep,
|
2020-10-30 16:26:06 +01:00
|
|
|
] + optional_deps
|
2019-12-04 11:37:30 +01:00
|
|
|
|
2020-01-29 15:34:40 +01:00
|
|
|
# These are empty and only exist so that the include directories are created
|
|
|
|
|
# in the build tree. This silences a build time warning.
|
|
|
|
|
subdir('nbis/include')
|
|
|
|
|
subdir('nbis/libfprint-include')
|
2019-12-04 12:43:12 +01:00
|
|
|
deps += declare_dependency(include_directories: [
|
|
|
|
|
root_inc,
|
|
|
|
|
include_directories('nbis/include'),
|
2019-12-04 13:12:52 +01:00
|
|
|
include_directories('nbis/libfprint-include'),
|
2019-12-04 12:43:12 +01:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
libnbis = static_library('nbis',
|
2019-12-04 11:37:30 +01:00
|
|
|
nbis_sources,
|
|
|
|
|
dependencies: deps,
|
2019-12-04 13:12:52 +01:00
|
|
|
c_args: cc.get_supported_arguments([
|
|
|
|
|
'-Wno-error=redundant-decls',
|
|
|
|
|
'-Wno-redundant-decls',
|
|
|
|
|
'-Wno-discarded-qualifiers',
|
2020-12-09 15:46:23 +01:00
|
|
|
'-Wno-array-bounds',
|
|
|
|
|
'-Wno-array-parameter',
|
2019-12-04 13:12:52 +01:00
|
|
|
]),
|
2019-12-04 11:37:30 +01:00
|
|
|
install: false)
|
|
|
|
|
|
2019-12-05 14:27:33 +01:00
|
|
|
libfprint_private = static_library('fprint-private',
|
2019-12-17 07:02:16 +01:00
|
|
|
sources: [
|
|
|
|
|
fpi_enums,
|
|
|
|
|
libfprint_private_sources,
|
|
|
|
|
],
|
2019-12-05 14:27:33 +01:00
|
|
|
dependencies: deps,
|
2019-12-11 20:21:01 +01:00
|
|
|
link_with: libnbis,
|
|
|
|
|
install: false)
|
|
|
|
|
|
|
|
|
|
libfprint_drivers = static_library('fprint-drivers',
|
2019-12-17 07:02:16 +01:00
|
|
|
sources: drivers_sources,
|
2019-12-11 20:21:01 +01:00
|
|
|
c_args: drivers_cflags,
|
|
|
|
|
dependencies: deps,
|
|
|
|
|
link_with: libfprint_private,
|
2019-12-05 14:27:33 +01:00
|
|
|
install: false)
|
|
|
|
|
|
2019-12-05 14:28:05 +01:00
|
|
|
mapfile = files('libfprint.ver')
|
2023-06-23 13:26:04 -04:00
|
|
|
vflag = '-Wl,--version-script,@0@/@1@'.format(meson.project_source_root(), mapfile[0])
|
2019-12-05 14:28:05 +01:00
|
|
|
|
2021-01-21 17:36:41 +01:00
|
|
|
libfprint = shared_library(versioned_libname.split('lib')[1],
|
2019-12-17 07:02:16 +01:00
|
|
|
sources: [
|
|
|
|
|
fp_enums,
|
|
|
|
|
libfprint_sources,
|
|
|
|
|
],
|
2019-11-21 20:37:17 +01:00
|
|
|
soversion: soversion,
|
|
|
|
|
version: libversion,
|
|
|
|
|
link_args : vflag,
|
|
|
|
|
link_depends : mapfile,
|
2020-03-20 11:59:58 +01:00
|
|
|
link_with: [libfprint_drivers, libfprint_private],
|
2019-11-21 20:37:17 +01:00
|
|
|
dependencies: deps,
|
|
|
|
|
install: true)
|
2018-05-14 15:15:52 +02:00
|
|
|
|
|
|
|
|
libfprint_dep = declare_dependency(link_with: libfprint,
|
2019-11-21 20:37:17 +01:00
|
|
|
include_directories: root_inc,
|
2019-12-13 19:33:12 +01:00
|
|
|
dependencies: [
|
2019-12-17 07:02:16 +01:00
|
|
|
enums_dep,
|
2019-12-13 19:33:12 +01:00
|
|
|
gio_dep,
|
|
|
|
|
glib_dep,
|
2020-02-13 18:11:46 +01:00
|
|
|
gobject_dep,
|
2019-12-13 19:33:12 +01:00
|
|
|
gusb_dep,
|
|
|
|
|
])
|
2018-05-14 15:15:52 +02:00
|
|
|
|
2019-12-16 19:02:00 +01:00
|
|
|
install_headers(['fprint.h'] + libfprint_public_headers,
|
2020-01-23 17:08:41 +01:00
|
|
|
subdir: versioned_libname
|
2019-12-16 19:02:00 +01:00
|
|
|
)
|
2018-05-14 15:15:52 +02:00
|
|
|
|
2019-12-11 20:21:01 +01:00
|
|
|
libfprint_private_dep = declare_dependency(
|
|
|
|
|
include_directories: include_directories('.'),
|
|
|
|
|
link_with: libfprint_private,
|
2019-12-13 19:33:12 +01:00
|
|
|
dependencies: [
|
|
|
|
|
deps,
|
|
|
|
|
libfprint_dep,
|
|
|
|
|
]
|
2019-12-11 20:21:01 +01:00
|
|
|
)
|
|
|
|
|
|
2021-01-19 14:13:03 +01:00
|
|
|
udev_hwdb = executable('fprint-list-udev-hwdb',
|
|
|
|
|
'fprint-list-udev-hwdb.c',
|
2019-12-11 20:21:01 +01:00
|
|
|
dependencies: libfprint_private_dep,
|
|
|
|
|
link_with: libfprint_drivers,
|
2019-11-21 20:37:17 +01:00
|
|
|
install: false)
|
2018-05-14 15:15:52 +02:00
|
|
|
|
2021-01-20 20:02:05 +01:00
|
|
|
udev_hwdb_generator = custom_target('udev-hwdb',
|
|
|
|
|
output: 'autosuspend.hwdb',
|
|
|
|
|
depend_files: drivers_sources,
|
2021-01-19 14:19:10 +01:00
|
|
|
capture: true,
|
|
|
|
|
command: [ udev_hwdb ],
|
2021-01-20 20:02:05 +01:00
|
|
|
install: false,
|
|
|
|
|
)
|
|
|
|
|
|
2025-02-18 20:45:09 +01:00
|
|
|
metainfo = executable('fprint-list-metainfo',
|
|
|
|
|
'fprint-list-metainfo.c',
|
|
|
|
|
dependencies: libfprint_private_dep,
|
|
|
|
|
link_with: libfprint_drivers,
|
|
|
|
|
install: false)
|
|
|
|
|
|
|
|
|
|
metainfo_generator = custom_target('metainfo',
|
|
|
|
|
output: 'org.freedesktop.libfprint.metainfo.xml',
|
|
|
|
|
depend_files: drivers_sources,
|
|
|
|
|
capture: true,
|
|
|
|
|
command: [ metainfo ],
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: datadir / 'metainfo'
|
|
|
|
|
)
|
|
|
|
|
|
2021-06-25 09:51:44 +02:00
|
|
|
if install_udev_rules
|
2021-06-22 14:51:26 +02:00
|
|
|
udev_rules = executable('fprint-list-udev-rules',
|
|
|
|
|
'fprint-list-udev-rules.c',
|
|
|
|
|
dependencies: libfprint_private_dep,
|
|
|
|
|
link_with: libfprint_drivers,
|
|
|
|
|
install: false)
|
|
|
|
|
|
|
|
|
|
custom_target('udev-rules',
|
|
|
|
|
output: '70-@0@.rules'.format(versioned_libname),
|
|
|
|
|
depend_files: drivers_sources,
|
|
|
|
|
capture: true,
|
|
|
|
|
command: [ udev_rules ],
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: udev_rules_dir,
|
|
|
|
|
)
|
|
|
|
|
endif
|
|
|
|
|
|
2022-09-27 14:05:53 +02:00
|
|
|
sync_udev_udb = custom_target('sync-udev-hwdb',
|
2021-01-20 20:02:05 +01:00
|
|
|
depends: udev_hwdb_generator,
|
|
|
|
|
output: 'sync-udev-hwdb',
|
|
|
|
|
install: false,
|
|
|
|
|
command: [
|
|
|
|
|
'cp', '-v',
|
|
|
|
|
udev_hwdb_generator.full_path(),
|
2023-06-23 13:26:04 -04:00
|
|
|
meson.project_source_root() / 'data'
|
2021-01-20 20:02:05 +01:00
|
|
|
]
|
|
|
|
|
)
|
2018-05-14 15:15:52 +02:00
|
|
|
|
2022-09-27 14:05:53 +02:00
|
|
|
alias_target('sync-udev-hwdb', sync_udev_udb)
|
|
|
|
|
|
2018-06-03 14:40:34 +02:00
|
|
|
supported_devices = executable('fprint-list-supported-devices',
|
2019-11-21 20:37:17 +01:00
|
|
|
'fprint-list-supported-devices.c',
|
2019-12-11 20:21:01 +01:00
|
|
|
dependencies: libfprint_private_dep,
|
|
|
|
|
link_with: libfprint_drivers,
|
2019-11-21 20:37:17 +01:00
|
|
|
install: false)
|
2019-07-03 23:29:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
if get_option('introspection')
|
|
|
|
|
# We do *not* include the private header here
|
|
|
|
|
libfprint_girtarget = gnome.generate_gir(libfprint,
|
|
|
|
|
sources : fp_enums + [
|
|
|
|
|
libfprint_public_headers,
|
|
|
|
|
libfprint_sources,
|
|
|
|
|
],
|
2019-12-16 19:05:35 +01:00
|
|
|
nsversion : '@0@.0'.format(soversion),
|
2019-07-03 23:29:05 +02:00
|
|
|
namespace : 'FPrint',
|
|
|
|
|
symbol_prefix : 'fp_',
|
|
|
|
|
identifier_prefix : 'Fp',
|
|
|
|
|
export_packages : 'fprint',
|
|
|
|
|
extra_args : [
|
|
|
|
|
'--c-include=fprint.h',
|
|
|
|
|
],
|
|
|
|
|
link_with : libfprint,
|
|
|
|
|
dependencies : [
|
|
|
|
|
gio_dep,
|
2020-02-13 18:11:46 +01:00
|
|
|
gobject_dep,
|
2019-07-03 23:29:05 +02:00
|
|
|
gusb_dep,
|
|
|
|
|
],
|
|
|
|
|
includes : [
|
|
|
|
|
'Gio-2.0',
|
|
|
|
|
'GObject-2.0',
|
|
|
|
|
'GUsb-1.0',
|
|
|
|
|
],
|
2019-11-21 20:37:17 +01:00
|
|
|
install : true)
|
2019-07-03 23:29:05 +02:00
|
|
|
libfprint_gir = libfprint_girtarget[0]
|
|
|
|
|
libfprint_typelib = libfprint_girtarget[1]
|
|
|
|
|
endif
|