diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2023-07-06 07:17:01 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2023-07-07 06:50:31 +0000 |
commit | 029651a96dfc8e8e1dc6eca79bd3bf23d3aeb5ce (patch) | |
tree | a0b25e3c10393dabd82a503003fde0bad187dd5f /rules | |
parent | aee533e5175fe75694d91cd10883458292fac82c (diff) |
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.
Diffstat (limited to 'rules')
-rw-r--r-- | rules/meson.build | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/rules/meson.build b/rules/meson.build index 63c344c..b780bb2 100644 --- a/rules/meson.build +++ b/rules/meson.build @@ -7,12 +7,14 @@ hwdb = [ '95-upower-hid.hwdb', ] -install_data( - rules, - install_dir: udevrulesdir, -) +if os_backend == 'linux' + install_data( + rules, + install_dir: udevrulesdir, + ) -install_data( - hwdb, - install_dir: udevhwdbdir, -) + install_data( + hwdb, + install_dir: udevhwdbdir, + ) +endif |