mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
modules/mpris: fix dependency search
Move dependency discovery to be with other module dependency searches. Also only define the `sdbus` dependency if the module is enabled. The `mpris` module was always being compiled because the `sdbus` dependency always existed. Instead, check for the external dependency's status and create the `sdbus` bridge dependency only when necessary.
This commit is contained in:
parent
e68ed8d843
commit
7e76d53c0a
2 changed files with 5 additions and 7 deletions
|
@ -77,10 +77,6 @@ backend_wayland = wayland_client.found() and wayland_cursor.found()
|
|||
tllist = dependency('tllist', version: '>=1.0.1', fallback: 'tllist')
|
||||
fcft = dependency('fcft', version: ['>=3.0.0', '<4.0.0'], fallback: 'fcft')
|
||||
|
||||
# DBus dependency. Used by 'modules/mpris'
|
||||
sdbus_library = dependency('libsystemd', 'libelogind', 'basu', required: get_option('plugin-mpris'))
|
||||
sdbus = declare_dependency(compile_args: ['-DHAVE_' + sdbus_library.name().to_upper()], dependencies:[sdbus_library])
|
||||
|
||||
add_project_arguments(
|
||||
cc_flags +
|
||||
['-D_GNU_SOURCE'] +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue