]> git.ipfire.org Git - thirdparty/systemd.git/blob - hwdb.d/meson.build
sd-bus: Add sd_bus_get/set_property docs
[thirdparty/systemd.git] / hwdb.d / meson.build
1 # SPDX-License-Identifier: LGPL-2.1+
2
3 hwdb_files = files('''
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
14 20-vmbus-class.hwdb
15 60-evdev.hwdb
16 60-input-id.hwdb
17 60-keyboard.hwdb
18 60-sensor.hwdb
19 70-joystick.hwdb
20 70-mouse.hwdb
21 70-pointingstick.hwdb
22 70-touchpad.hwdb
23 '''.split())
24
25 if conf.get('ENABLE_HWDB') == 1
26 install_data(hwdb_files,
27 install_dir : udevhwdbdir)
28
29 meson.add_install_script('sh', '-c',
30 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
31
32 meson.add_install_script('sh', '-c',
33 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
34 .format(rootbindir))
35 endif
36
37 ############################################################
38
39 parse_hwdb_py = find_program('parse_hwdb.py')
40 if want_tests != 'false'
41 test('parse-hwdb',
42 parse_hwdb_py,
43 timeout : 90)
44 endif
45
46 ############################################################
47
48 run_target(
49 'hwdb-update',
50 command : [hwdb_update_sh, meson.current_source_dir()])
51
52 run_target(
53 'autosuspend-update',
54 command : [autosuspend_update_sh, project_source_root + '/tools/chromiumos'])