mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-06-16 00:05:40 +02:00
plugin: use auto-generated defines for enabled plugins
This commit is contained in:
parent
9ef6d73663
commit
690bd630a2
2 changed files with 63 additions and 86 deletions
23
meson.build
23
meson.build
|
@ -131,29 +131,6 @@ yambar = executable(
|
|||
version,
|
||||
dependencies: [bar, libepoll, libinotify, pixman, yaml, threads, dl, tllist, fcft] +
|
||||
decorations + particles + modules,
|
||||
c_args: [
|
||||
plugin_alsa_enabled ? '-DPLUGIN_ENABLED_ALSA' : [],
|
||||
plugin_backlight_enabled ? '-DPLUGIN_ENABLED_BACKLIGHT' : [],
|
||||
plugin_battery_enabled ? '-DPLUGIN_ENABLED_BATTERY' : [],
|
||||
plugin_clock_enabled ? '-DPLUGIN_ENABLED_CLOCK' : [],
|
||||
plugin_cpu_enabled ? '-DPLUGIN_ENABLED_CPU' : [],
|
||||
plugin_disk_io_enabled ? '-DPLUGIN_ENABLED_DISK_IO' : [],
|
||||
plugin_dwl_enabled ? '-DPLUGIN_ENABLED_DWL' : [],
|
||||
plugin_foreign_toplevel_enabled ? '-DPLUGIN_ENABLED_FOREIGN_TOPLEVEL' : [],
|
||||
plugin_mem_enabled ? '-DPLUGIN_ENABLED_MEM' : [],
|
||||
plugin_mpd_enabled ? '-DPLUGIN_ENABLED_MPD' : [],
|
||||
plugin_i3_enabled ? '-DPLUGIN_ENABLED_I3' : [],
|
||||
plugin_label_enabled ? '-DPLUGIN_ENABLED_LABEL' : [],
|
||||
plugin_network_enabled ? '-DPLUGIN_ENABLED_NETWORK' : [],
|
||||
plugin_pipewire_enabled ? '-DPLUGIN_ENABLED_PIPEWIRE' : [],
|
||||
plugin_pulse_enabled ? '-DPLUGIN_ENABLED_PULSE' : [],
|
||||
plugin_removables_enabled ? '-DPLUGIN_ENABLED_REMOVABLES' : [],
|
||||
plugin_river_enabled ? '-DPLUGIN_ENABLED_RIVER' : [],
|
||||
plugin_script_enabled ? '-DPLUGIN_ENABLED_SCRIPT' : [],
|
||||
plugin_sway_xkb_enabled ? '-DPLUGIN_ENABLED_SWAY_XKB' : [],
|
||||
plugin_xkb_enabled ? '-DPLUGIN_ENABLED_XKB' : [],
|
||||
plugin_xwindow_enabled ? '-DPLUGIN_ENABLED_XWINDOW' : [],
|
||||
],
|
||||
build_rpath: '$ORIGIN/modules:$ORIGIN/decorations:$ORIGIN/particles',
|
||||
export_dynamic: true,
|
||||
install: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue