modules: meson: add missing ‘m’ (math) dependency

The following modules used functions from the ‘m’ (math)
library (e.g. round()), but didn’t explicitly link against it. This
caused build failures when no other plugin that _did_ link against ‘m’
was enabled.

* cpu
* mem
* pulse
* pipewire
* foreign-toplevel

Closes #239
This commit is contained in:
Daniel Eklöf 2022-12-17 18:15:14 +01:00
parent a9ce81b376
commit ede6a541e1
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 5 deletions

View file

@ -16,6 +16,13 @@
### Deprecated
### Removed
### Fixed
* Build failures for certain combinations of enabled and disabled
plugins ([#239][239]).
[239]: https://codeberg.org/dnkl/yambar/issues/239
### Security
### Contributors

View file

@ -70,7 +70,7 @@ if plugin_clock_enabled
endif
if plugin_cpu_enabled
mod_data += {'cpu': [[], [dynlist]]}
mod_data += {'cpu': [[], [m, dynlist]]}
endif
if plugin_disk_io_enabled
@ -82,7 +82,7 @@ if plugin_dwl_enabled
endif
if plugin_mem_enabled
mod_data += {'mem': [[], []]}
mod_data += {'mem': [[], [m]]}
endif
if plugin_mpd_enabled
@ -102,11 +102,11 @@ if plugin_network_enabled
endif
if plugin_pipewire_enabled
mod_data += {'pipewire': [[], [pipewire, dynlist, json_pipewire]]}
mod_data += {'pipewire': [[], [m, pipewire, dynlist, json_pipewire]]}
endif
if plugin_pulse_enabled
mod_data += {'pulse': [[], [pulse]]}
mod_data += {'pulse': [[], [m, pulse]]}
endif
if plugin_removables_enabled
@ -170,7 +170,7 @@ if plugin_foreign_toplevel_enabled
command: [wscanner_prog, 'private-code', '@INPUT@', '@OUTPUT@'])
endforeach
mod_data += {'foreign-toplevel': [[wl_proto_src + wl_proto_headers + ftop_proto_headers + ftop_proto_src], [dynlist, wayland_client]]}
mod_data += {'foreign-toplevel': [[wl_proto_src + wl_proto_headers + ftop_proto_headers + ftop_proto_src], [m, dynlist, wayland_client]]}
endif
foreach mod, data : mod_data