config BR2_PACKAGE_WIREPLUMBER
	bool "wireplumber"
	depends on BR2_PACKAGE_PIPEWIRE
	depends on BR2_PACKAGE_LUA_5_3 || BR2_PACKAGE_LUA_5_4
	depends on BR2_USE_WCHAR # libglib2
	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
	depends on !BR2_TOOLCHAIN_USES_UCLIBC # gettid
	depends on BR2_USE_MMU # libglib2
	select BR2_PACKAGE_LIBGLIB2
	help
	  WirePlumber is a modular session / policy manager for
	  PipeWire and a GObject-based high-level library that
	  wraps PipeWire’s API, providing convenience for writing
	  the daemon’s modules as well as external tools for
	  managing PipeWire.

	  https://pipewire.pages.freedesktop.org/wireplumber/

comment "wireplumber needs a glibc or musl toolchain w/ wchar, threads and Lua >= 5.3"
	depends on BR2_PACKAGE_PIPEWIRE
	depends on BR2_USE_MMU
	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
		BR2_TOOLCHAIN_USES_UCLIBC || \
		(!BR2_PACKAGE_LUA_5_3 && !BR2_PACKAGE_LUA_5_4)
