mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 08:15:40 +02:00
meson: make ‘label’ plugin compile time optional
This commit is contained in:
parent
f54f583be1
commit
8d5e8b5f20
4 changed files with 16 additions and 3 deletions
|
@ -27,6 +27,8 @@ plugin_mpd_enabled = mpd.found()
|
|||
json_i3 = dependency('json-c', required: get_option('plugin-i3'))
|
||||
plugin_i3_enabled = json_i3.found()
|
||||
|
||||
plugin_label_enabled = get_option('plugin-label').allowed()
|
||||
|
||||
pipewire = dependency('libpipewire-0.3', required: get_option('plugin-pipewire'))
|
||||
plugin_pipewire_enabled = pipewire.found()
|
||||
|
||||
|
@ -37,7 +39,6 @@ plugin_dwl_enabled = get_option('plugin-dwl').allowed()
|
|||
|
||||
# Module name -> (source-list, dep-list)
|
||||
mod_data = {
|
||||
'label': [[], []],
|
||||
'network': [[], []],
|
||||
'removables': [[], [dynlist, udev]],
|
||||
'script': [[], []],
|
||||
|
@ -84,6 +85,10 @@ if plugin_i3_enabled
|
|||
mod_data += {'i3': [['i3-common.c', 'i3-common.h'], [dynlist, json_i3]]}
|
||||
endif
|
||||
|
||||
if plugin_label_enabled
|
||||
mod_data += {'label': [[], []]}
|
||||
endif
|
||||
|
||||
if plugin_pipewire_enabled
|
||||
mod_data += {'pipewire': [[], [pipewire, dynlist, json]]}
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue