]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
aa549ff3 ZJS |
3 | # Those files right now are not supported by the grammar. Also, |
4 | # they are very long but quite repetitive and the parser is not very fast. | |
5 | # So we don't "test" them. | |
f1b98127 ZJS |
6 | hwdb_files_notest = files( |
7 | 'README', | |
8 | '20-dmi-id.hwdb', | |
9 | '20-pci-vendor-model.hwdb', | |
10 | '20-pci-classes.hwdb', | |
11 | '20-usb-vendor-model.hwdb', | |
12 | '20-usb-classes.hwdb', | |
13 | '20-sdio-vendor-model.hwdb', | |
14 | '20-sdio-classes.hwdb', | |
15 | '20-bluetooth-vendor-product.hwdb', | |
16 | '20-acpi-vendor.hwdb', | |
17 | '20-OUI.hwdb', | |
18 | '20-net-ifname.hwdb', | |
19 | '20-vmbus-class.hwdb') | |
aa549ff3 | 20 | |
f1b98127 ZJS |
21 | hwdb_files_test = files( |
22 | '60-autosuspend.hwdb', | |
23 | '60-autosuspend-fingerprint-reader.hwdb', | |
24 | '60-evdev.hwdb', | |
25 | '60-input-id.hwdb', | |
26 | '60-keyboard.hwdb', | |
27 | '60-seat.hwdb', | |
28 | '60-sensor.hwdb', | |
29 | '70-analyzers.hwdb', | |
f2c36c0e | 30 | '70-av-production.hwdb', |
f1b98127 ZJS |
31 | '70-cameras.hwdb', |
32 | '70-joystick.hwdb', | |
33 | '70-mouse.hwdb', | |
34 | '70-pda.hwdb', | |
35 | '70-pointingstick.hwdb', | |
56506988 | 36 | '70-sound-card.hwdb', |
f1b98127 ZJS |
37 | '70-touchpad.hwdb', |
38 | '80-ieee1394-unit-function.hwdb') | |
5c23128d | 39 | |
349cc4a5 | 40 | if conf.get('ENABLE_HWDB') == 1 |
aa549ff3 ZJS |
41 | auto_suspend_rules = custom_target( |
42 | '60-autosuspend-chromiumos.hwdb', | |
43 | output : '60-autosuspend-chromiumos.hwdb', | |
44 | command : make_autosuspend_rules_py, | |
45 | capture : true, | |
46 | install : true, | |
47 | install_dir: udevhwdbdir) | |
48 | ||
49 | install_data(hwdb_files_notest, | |
50 | hwdb_files_test, | |
37efbbd8 | 51 | install_dir : udevhwdbdir) |
94e75a54 | 52 | |
d7aa78c3 | 53 | if install_sysconfdir |
7c22f07c | 54 | meson.add_install_script('sh', '-c', |
fce9abb2 | 55 | mkdir_p.format(sysconfdir / 'udev/hwdb.d')) |
f6e49d4e | 56 | |
7c22f07c | 57 | meson.add_install_script('sh', '-c', |
b0d3095f | 58 | 'test -n "$DESTDIR" || @0@/systemd-hwdb update'.format(bindir)) |
d7aa78c3 | 59 | endif |
abba22c5 | 60 | |
aa549ff3 ZJS |
61 | if want_tests != 'false' |
62 | parse_hwdb_py = find_program('parse_hwdb.py') | |
63 | test('parse-hwdb', | |
64 | parse_hwdb_py, | |
02e0f430 | 65 | suite : 'dist', |
aa549ff3 ZJS |
66 | args : [hwdb_files_test, |
67 | auto_suspend_rules], | |
68 | timeout : 90) | |
69 | endif | |
938be089 | 70 | endif |
26bd4b7f ZJS |
71 | |
72 | ############################################################ | |
73 | ||
a923e085 | 74 | run_target( |
4095cff0 ZJS |
75 | 'update-hwdb', |
76 | command : [update_hwdb_sh, meson.current_source_dir()]) | |
62d39995 ZJS |
77 | |
78 | run_target( | |
816f31d0 ZJS |
79 | 'update-hwdb-autosuspend', |
80 | command : [update_hwdb_autosuspend_sh, project_source_root]) |