1 # SPDX-License-Identifier: LGPL-2.1+
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('''
7 20-pci-vendor-model.hwdb
9 20-usb-vendor-model.hwdb
11 20-sdio-vendor-model.hwdb
13 20-bluetooth-vendor-product.hwdb
20 hwdb_files_test = files('''
32 if conf.get('ENABLE_HWDB') == 1
33 auto_suspend_rules = custom_target(
34 '60-autosuspend-chromiumos.hwdb',
35 output : '60-autosuspend-chromiumos.hwdb',
36 command : make_autosuspend_rules_py,
39 install_dir: udevhwdbdir)
41 install_data(hwdb_files_notest,
43 install_dir : udevhwdbdir)
45 meson.add_install_script('sh', '-c',
46 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
48 meson.add_install_script('sh', '-c',
49 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
52 if want_tests != 'false'
53 parse_hwdb_py = find_program('parse_hwdb.py')
56 args : [hwdb_files_test,
62 ############################################################
66 command : [hwdb_update_sh, meson.current_source_dir()])
70 command : [autosuspend_update_sh, project_source_root + '/tools/chromiumos'])