summaryrefslogtreecommitdiffstats
path: root/hwdb
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2017-04-25 15:10:15 +0200
committerGitHub <noreply@github.com>2017-04-25 15:10:15 +0200
commitd5d5e06086734f6406b3ccc522c4951cdc18ca21 (patch)
tree55cc62ab712a9ef82600cafbc8755c589f49d71f /hwdb
parentfix parenthesis in pager.c (#5798) (diff)
parentmeson: require newest meson and revert m4 patch (diff)
downloadsystemd-d5d5e06086734f6406b3ccc522c4951cdc18ca21.tar.xz
systemd-d5d5e06086734f6406b3ccc522c4951cdc18ca21.zip
Merge pull request #5704 from keszybz/meson
meson: build systemd using meson
Diffstat (limited to 'hwdb')
-rw-r--r--hwdb/meson.build42
1 files changed, 42 insertions, 0 deletions
diff --git a/hwdb/meson.build b/hwdb/meson.build
new file mode 100644
index 0000000000..68a23e0afe
--- /dev/null
+++ b/hwdb/meson.build
@@ -0,0 +1,42 @@
+hwdb_files = files('''
+ 20-pci-vendor-model.hwdb
+ 20-pci-classes.hwdb
+ 20-usb-vendor-model.hwdb
+ 20-usb-classes.hwdb
+ 20-sdio-vendor-model.hwdb
+ 20-sdio-classes.hwdb
+ 20-bluetooth-vendor-product.hwdb
+ 20-acpi-vendor.hwdb
+ 20-OUI.hwdb
+ 20-net-ifname.hwdb
+ 60-evdev.hwdb
+ 60-keyboard.hwdb
+ 60-sensor.hwdb
+ 70-mouse.hwdb
+ 70-pointingstick.hwdb
+ 70-touchpad.hwdb
+'''.split())
+
+if conf.get('ENABLE_HWDB', 0) == 1
+ install_data(hwdb_files,
+ install_dir : udevhwdbdir)
+
+ meson.add_install_script('sh', '-c',
+ mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
+
+ meson.add_install_script('sh', '-c',
+ 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
+ .format(rootbindir))
+endif
+
+############################################################
+
+parse_hwdb_py = find_program('parse_hwdb.py')
+test('parse-hwdb',
+ parse_hwdb_py)
+
+############################################################
+
+run_target(
+ 'update',
+ command : [hwdb_update_sh, meson.current_source_dir()])