+# SPDX-License-Identifier: LGPL-2.1+
+
hwdb_files = files('''
20-pci-vendor-model.hwdb
20-pci-classes.hwdb
20-acpi-vendor.hwdb
20-OUI.hwdb
20-net-ifname.hwdb
+ 20-vmbus-class.hwdb
60-evdev.hwdb
60-keyboard.hwdb
60-sensor.hwdb
+ 70-joystick.hwdb
70-mouse.hwdb
70-pointingstick.hwdb
70-touchpad.hwdb
'''.split())
-if conf.get('ENABLE_HWDB', 0) == 1
+if conf.get('ENABLE_HWDB') == 1
install_data(hwdb_files,
install_dir : udevhwdbdir)
############################################################
parse_hwdb_py = find_program('parse_hwdb.py')
-test('parse-hwdb',
- parse_hwdb_py)
+if want_tests != 'false'
+ test('parse-hwdb',
+ parse_hwdb_py,
+ timeout : 90)
+endif
############################################################
run_target(
- 'update',
+ 'hwdb-update',
command : [hwdb_update_sh, meson.current_source_dir()])