]> git.ipfire.org Git - thirdparty/systemd.git/blame - hwdb/meson.build
hwdb: add support for VMBUS guids (#8677)
[thirdparty/systemd.git] / hwdb / meson.build
CommitLineData
3a726fcd
ZJS
1# SPDX-License-Identifier: LGPL-2.1+
2#
3# Copyright 2017 Zbigniew Jędrzejewski-Szmek
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9#
10# systemd is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# Lesser General Public License for more details.
14#
15# You should have received a copy of the GNU Lesser General Public License
16# along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
5c23128d 18hwdb_files = files('''
37efbbd8
ZJS
19 20-pci-vendor-model.hwdb
20 20-pci-classes.hwdb
21 20-usb-vendor-model.hwdb
22 20-usb-classes.hwdb
23 20-sdio-vendor-model.hwdb
24 20-sdio-classes.hwdb
25 20-bluetooth-vendor-product.hwdb
26 20-acpi-vendor.hwdb
27 20-OUI.hwdb
28 20-net-ifname.hwdb
2063b554 29 20-vmbus-class.hwdb
37efbbd8
ZJS
30 60-evdev.hwdb
31 60-keyboard.hwdb
32 60-sensor.hwdb
816be2ba 33 70-joystick.hwdb
37efbbd8
ZJS
34 70-mouse.hwdb
35 70-pointingstick.hwdb
36 70-touchpad.hwdb
5c23128d
ZJS
37'''.split())
38
349cc4a5 39if conf.get('ENABLE_HWDB') == 1
37efbbd8
ZJS
40 install_data(hwdb_files,
41 install_dir : udevhwdbdir)
94e75a54 42
37efbbd8
ZJS
43 meson.add_install_script('sh', '-c',
44 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
f6e49d4e 45
37efbbd8
ZJS
46 meson.add_install_script('sh', '-c',
47 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
48 .format(rootbindir))
5c23128d 49endif
abba22c5
ZJS
50
51############################################################
52
26bd4b7f
ZJS
53parse_hwdb_py = find_program('parse_hwdb.py')
54test('parse-hwdb',
939c4301
MB
55 parse_hwdb_py,
56 timeout : 90)
26bd4b7f
ZJS
57
58############################################################
59
a923e085 60run_target(
9e82570e 61 'hwdb-update',
37efbbd8 62 command : [hwdb_update_sh, meson.current_source_dir()])