diff options
author | Luca Boccassi <luca.boccassi@gmail.com> | 2025-01-15 00:22:04 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2025-01-15 10:48:27 +0100 |
commit | af0a28854d24456e63e9634283ce4a9ffbed459c (patch) | |
tree | fb52fc29bc891490c226174cfb2abde13986ada7 /units | |
parent | terminal-util: drop support for pre-TIOCGPTPEER kernels (diff) | |
download | systemd-af0a28854d24456e63e9634283ce4a9ffbed459c.tar.xz systemd-af0a28854d24456e63e9634283ce4a9ffbed459c.zip |
meson: add udev/hwdb build aliases
Allows to do:
meson compile libudev udev hwdb
meson install --no-rebuild --tags libudev,udev,hwdb
Diffstat (limited to 'units')
-rw-r--r-- | units/meson.build | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/units/meson.build b/units/meson.build index caae65fea0..2f2a1d5fe9 100644 --- a/units/meson.build +++ b/units/meson.build @@ -833,6 +833,10 @@ units = [ }, ] +# For the udev/hwdb aliases +udev_units = [] +hwdb_units = [] + foreach unit : units source = unit.get('file') @@ -855,7 +859,7 @@ foreach unit : units endforeach if needs_jinja - custom_target( + t = custom_target( name, input : source, output : name, @@ -863,6 +867,11 @@ foreach unit : units install : install, install_dir : systemunitdir, install_tag : unit.get('install_tag', '')) + if unit.get('install_tag', '') == 'udev' + udev_units += t + elif unit.get('install_tag', '') == 'hwdb' + hwdb_units += t + endif elif install install_data(source, install_dir : systemunitdir, |