package/pipewire: add option to build the AAC codec in spa-bluez

This allows for more precise control of the AAC codec feature,
instead of it being silently enabled if the fdk-aac library happens
to be built earlier, or disabled otherwise.

Also remove the -Dbluez5-codec-opus=disabled option in the case where
the entire bluez5 integration is disabled. -Dbluez5=disabled implies
that all codecs are also disabled.

Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
George Kiagiadakis
2024-08-16 12:07:00 +03:00
committed by Arnout Vandecappelle
parent 14b1b8ca8d
commit 57fdc3cb8e

View File

@@ -120,8 +120,14 @@ PIPEWIRE_DEPENDENCIES += opus
else
PIPEWIRE_CONF_OPTS += -Dbluez5-codec-opus=disabled
endif
ifeq ($(BR2_PACKAGE_FDK_AAC),y)
PIPEWIRE_CONF_OPTS += -Dbluez5-codec-aac=enabled
PIPEWIRE_DEPENDENCIES += fdk-aac
else
PIPEWIRE_CONF_OPTS += -Dbluez5=disabled -Dbluez5-codec-opus=disabled
PIPEWIRE_CONF_OPTS += -Dbluez5-codec-aac=disabled
endif
else
PIPEWIRE_CONF_OPTS += -Dbluez5=disabled
endif
ifeq ($(BR2_PACKAGE_FFMPEG),y)