mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-29 15:48:22 +02:00
udev is available only on Linux, so limit their usage when the backend is 'linux'. This fixes the build when the backend is different than 'linux', i.e. typically on non-Linux OSes.
20 lines
283 B
Meson
20 lines
283 B
Meson
rules = [
|
|
'95-upower-wup.rules',
|
|
'95-upower-hid.rules',
|
|
]
|
|
|
|
hwdb = [
|
|
'95-upower-hid.hwdb',
|
|
]
|
|
|
|
if os_backend == 'linux'
|
|
install_data(
|
|
rules,
|
|
install_dir: udevrulesdir,
|
|
)
|
|
|
|
install_data(
|
|
hwdb,
|
|
install_dir: udevhwdbdir,
|
|
)
|
|
endif
|