mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-04 15:10:20 +00:00
meson: Add option to enable/disable legacy RTKit module
The RTKit module is being replaced by the RT module. Currently, it is always built if D-Bus is present. For packagers, it can be beneficial to be able to disable the legacy module. Add a Meson option to allow for exactly that. Make it enabled by default to not change default behavior.
This commit is contained in:
parent
f0424c0b99
commit
e8f93c3e1e
|
@ -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')
|
||||
|
|
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue