From 674858cd6e42980000871dc81deaf6d1ca85c78b Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 16 Jan 2022 16:25:28 +0100 Subject: [PATCH] modules: Provide an alias for module-rtkit So this will now use `module-rt` even with old configurations that still use `module-rtkit`. --- src/modules/meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/modules/meson.build b/src/modules/meson.build index df6588484..a2ae53381 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -145,6 +145,20 @@ pipewire_module_rt = shared_library('pipewire-module-rt', [ 'module-rt.c' ], install_rpath: modules_install_dir, dependencies : [dbus_dep, mathlib, dl_lib, pipewire_dep], ) +# TODO: This serves as a temporary alias to prevent breaking existing setups +# while `module-rtkit` is being migrated to `module-rt` +fs = import('fs') +custom_target('pipewire-module-rtkit', + # Basing this on the original output path makes sure we get the library + # prefixes and suffixes right + output : [fs.name(pipewire_module_rt.full_path()).replace('module-rt', 'module-rtkit')], + # Using the `input` parameter for this doesn't work on Meson 59, and on newer + # versions it will show a spurious warning + command : ['ln', '-sf', fs.name(pipewire_module_rt.full_path()), '@OUTPUT@'], + install : true, + install_dir : modules_install_dir, + depends : [pipewire_module_rt], +) endif summary({'rt': build_module_rt}, bool_yn: true, section: 'Optional Modules')