diff --git a/meson_options.txt b/meson_options.txt index 49d5b2203..2687bfe7e 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -237,3 +237,7 @@ option('libcanberra', description: 'Enable code that depends on libcanberra', type: 'feature', value: 'auto') +option('legacy-rtkit', + description: 'Build legacy rtkit module', + type: 'boolean', + value: 'true') diff --git a/src/modules/meson.build b/src/modules/meson.build index ee724bf52..2d26cc459 100644 --- a/src/modules/meson.build +++ b/src/modules/meson.build @@ -139,7 +139,7 @@ pipewire_module_rt = shared_library('pipewire-module-rt', [ 'module-rt.c' ], dependencies : [dbus_dep, mathlib, dl_lib, pipewire_dep], ) -build_module_rtkit = dbus_dep.found() +build_module_rtkit = dbus_dep.found() and (get_option('legacy-rtkit') == true) if build_module_rtkit # TODO: This serves as a temporary alias to prevent breaking existing setups # while `module-rtkit` is being migrated to `module-rt`