]> git.ipfire.org Git - thirdparty/systemd.git/blame - hwdb/meson.build
Merge pull request #5619 from fbuihuu/fully-restore-unit-cgroup-state
[thirdparty/systemd.git] / hwdb / meson.build
CommitLineData
5c23128d 1hwdb_files = files('''
37efbbd8
ZJS
2 20-pci-vendor-model.hwdb
3 20-pci-classes.hwdb
4 20-usb-vendor-model.hwdb
5 20-usb-classes.hwdb
6 20-sdio-vendor-model.hwdb
7 20-sdio-classes.hwdb
8 20-bluetooth-vendor-product.hwdb
9 20-acpi-vendor.hwdb
10 20-OUI.hwdb
11 20-net-ifname.hwdb
12 60-evdev.hwdb
13 60-keyboard.hwdb
14 60-sensor.hwdb
15 70-mouse.hwdb
16 70-pointingstick.hwdb
17 70-touchpad.hwdb
5c23128d
ZJS
18'''.split())
19
2c201c21 20if conf.get('ENABLE_HWDB', false)
37efbbd8
ZJS
21 install_data(hwdb_files,
22 install_dir : udevhwdbdir)
94e75a54 23
37efbbd8
ZJS
24 meson.add_install_script('sh', '-c',
25 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
f6e49d4e 26
37efbbd8
ZJS
27 meson.add_install_script('sh', '-c',
28 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
29 .format(rootbindir))
5c23128d 30endif
abba22c5
ZJS
31
32############################################################
33
26bd4b7f
ZJS
34parse_hwdb_py = find_program('parse_hwdb.py')
35test('parse-hwdb',
36 parse_hwdb_py)
37
38############################################################
39
a923e085 40run_target(
37efbbd8 41 'update',
37efbbd8 42 command : [hwdb_update_sh, meson.current_source_dir()])