]> git.ipfire.org Git - thirdparty/systemd.git/blame - hwdb/meson.build
travis: add 5 more fuzz targets
[thirdparty/systemd.git] / hwdb / meson.build
CommitLineData
3a726fcd 1# SPDX-License-Identifier: LGPL-2.1+
3a726fcd 2
5c23128d 3hwdb_files = files('''
37efbbd8
ZJS
4 20-pci-vendor-model.hwdb
5 20-pci-classes.hwdb
6 20-usb-vendor-model.hwdb
7 20-usb-classes.hwdb
8 20-sdio-vendor-model.hwdb
9 20-sdio-classes.hwdb
10 20-bluetooth-vendor-product.hwdb
11 20-acpi-vendor.hwdb
12 20-OUI.hwdb
13 20-net-ifname.hwdb
2063b554 14 20-vmbus-class.hwdb
37efbbd8
ZJS
15 60-evdev.hwdb
16 60-keyboard.hwdb
17 60-sensor.hwdb
816be2ba 18 70-joystick.hwdb
37efbbd8
ZJS
19 70-mouse.hwdb
20 70-pointingstick.hwdb
21 70-touchpad.hwdb
5c23128d
ZJS
22'''.split())
23
349cc4a5 24if conf.get('ENABLE_HWDB') == 1
37efbbd8
ZJS
25 install_data(hwdb_files,
26 install_dir : udevhwdbdir)
94e75a54 27
37efbbd8
ZJS
28 meson.add_install_script('sh', '-c',
29 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
f6e49d4e 30
37efbbd8
ZJS
31 meson.add_install_script('sh', '-c',
32 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
33 .format(rootbindir))
5c23128d 34endif
abba22c5
ZJS
35
36############################################################
37
26bd4b7f 38parse_hwdb_py = find_program('parse_hwdb.py')
938be089
ZJS
39if want_tests != 'false'
40 test('parse-hwdb',
41 parse_hwdb_py,
42 timeout : 90)
43endif
26bd4b7f
ZJS
44
45############################################################
46
a923e085 47run_target(
9e82570e 48 'hwdb-update',
37efbbd8 49 command : [hwdb_update_sh, meson.current_source_dir()])