upower/rules/meson.build
Pino Toscano 029651a96d build: make 'udevrulesdir' and 'udevhwdbdir' as Linux-only
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.
2023-07-07 06:50:31 +00:00

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