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('''
8 20-pci-vendor-model.hwdb
10 20-usb-vendor-model.hwdb
12 20-sdio-vendor-model.hwdb
14 20-bluetooth-vendor-product.hwdb
21 hwdb_files_test = files('''
23 60-autosuspend-fingerprint-reader.hwdb
34 if conf.get('ENABLE_HWDB') == 1
35 auto_suspend_rules = custom_target(
36 '60-autosuspend-chromiumos.hwdb',
37 output : '60-autosuspend-chromiumos.hwdb',
38 command : make_autosuspend_rules_py,
41 install_dir: udevhwdbdir)
43 install_data(hwdb_files_notest,
45 install_dir : udevhwdbdir)
48 meson.add_install_script('sh', '-c',
49 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
51 meson.add_install_script('sh', '-c',
52 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
56 if want_tests != 'false'
57 parse_hwdb_py = find_program('parse_hwdb.py')
60 args : [hwdb_files_test,
66 ############################################################
70 command : [update_hwdb_sh, meson.current_source_dir()])
73 'update-hwdb-autosuspend',
74 command : [update_hwdb_autosuspend_sh, project_source_root])