1 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # Those files right now are not supported by the grammar. Also,
4 # they are very long but quite repetitive and the parser is not very fast.
5 # So we don't "test" them.
6 hwdb_files_notest = files(
9 '20-pci-vendor-model.hwdb',
10 '20-pci-classes.hwdb',
11 '20-usb-vendor-model.hwdb',
12 '20-usb-classes.hwdb',
13 '20-sdio-vendor-model.hwdb',
14 '20-sdio-classes.hwdb',
15 '20-bluetooth-vendor-product.hwdb',
16 '20-acpi-vendor.hwdb',
19 '20-vmbus-class.hwdb')
21 hwdb_files_test = files(
22 '60-autosuspend.hwdb',
23 '60-autosuspend-fingerprint-reader.hwdb',
30 '70-av-production.hwdb',
32 '70-hardware-wallets.hwdb',
36 '70-pointingstick.hwdb',
39 '80-ieee1394-unit-function.hwdb')
41 if conf.get('ENABLE_HWDB') == 1
42 auto_suspend_rules = custom_target(
43 '60-autosuspend-chromiumos.hwdb',
44 output : '60-autosuspend-chromiumos.hwdb',
45 command : make_autosuspend_rules_py,
48 install_dir: udevhwdbdir,
51 install_data(hwdb_files_notest,
53 install_dir : udevhwdbdir,
57 install_emptydir(sysconfdir / 'udev/hwdb.d', install_tag : 'hwdb')
59 meson.add_install_script(sh, '-c',
60 'test -n "$DESTDIR" || @0@/systemd-hwdb update'.format(bindir),
64 if want_tests != 'false'
65 parse_hwdb_py = find_program('parse_hwdb.py')
69 args : [hwdb_files_test,
75 ############################################################
79 command : [update_hwdb_sh, meson.current_source_dir()])
82 'update-hwdb-autosuspend',
83 command : [update_hwdb_autosuspend_sh, project_source_root])