forked from external/yambar
meson: make ‘i3’ plugin compile time optional
This commit is contained in:
parent
85d55905f9
commit
f54f583be1
4 changed files with 18 additions and 3 deletions
|
@ -24,6 +24,9 @@ plugin_mem_enabled = get_option('plugin-mem').allowed()
|
|||
mpd = dependency('libmpdclient', required: get_option('plugin-mpd'))
|
||||
plugin_mpd_enabled = mpd.found()
|
||||
|
||||
json_i3 = dependency('json-c', required: get_option('plugin-i3'))
|
||||
plugin_i3_enabled = json_i3.found()
|
||||
|
||||
pipewire = dependency('libpipewire-0.3', required: get_option('plugin-pipewire'))
|
||||
plugin_pipewire_enabled = pipewire.found()
|
||||
|
||||
|
@ -34,7 +37,6 @@ plugin_dwl_enabled = get_option('plugin-dwl').allowed()
|
|||
|
||||
# Module name -> (source-list, dep-list)
|
||||
mod_data = {
|
||||
'i3': [['i3-common.c', 'i3-common.h'], [dynlist, json]],
|
||||
'label': [[], []],
|
||||
'network': [[], []],
|
||||
'removables': [[], [dynlist, udev]],
|
||||
|
@ -77,6 +79,11 @@ endif
|
|||
if plugin_mpd_enabled
|
||||
mod_data += {'mpd': [[], [mpd]]}
|
||||
endif
|
||||
|
||||
if plugin_i3_enabled
|
||||
mod_data += {'i3': [['i3-common.c', 'i3-common.h'], [dynlist, json_i3]]}
|
||||
endif
|
||||
|
||||
if plugin_pipewire_enabled
|
||||
mod_data += {'pipewire': [[], [pipewire, dynlist, json]]}
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue