]> git.ipfire.org Git - thirdparty/systemd.git/blob - hwdb/meson.build
meson: add hwdb/update target
[thirdparty/systemd.git] / hwdb / meson.build
1 # -*- mode: meson -*-
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 60-evdev.hwdb
15 60-keyboard.hwdb
16 60-sensor.hwdb
17 70-mouse.hwdb
18 70-pointingstick.hwdb
19 70-touchpad.hwdb
20 '''.split())
21
22 if conf.get('ENABLE_HWDB', 0) == 1
23 install_data(hwdb_files,
24 install_dir : udevhwdbdir)
25
26 meson.add_install_script('sh', '-c',
27 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
28 endif
29
30 ############################################################
31
32 custom_target(
33 'update',
34 output : 'update',
35 command : [hwdb_update_sh, meson.current_source_dir()])