浏览代码

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>
George Kiagiadakis 11 月之前
父节点
当前提交
57fdc3cb8e
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      package/pipewire/pipewire.mk

+ 7 - 1
package/pipewire/pipewire.mk

@@ -120,8 +120,14 @@ PIPEWIRE_DEPENDENCIES += opus
 else
 else
 PIPEWIRE_CONF_OPTS += -Dbluez5-codec-opus=disabled
 PIPEWIRE_CONF_OPTS += -Dbluez5-codec-opus=disabled
 endif
 endif
+ifeq ($(BR2_PACKAGE_FDK_AAC),y)
+PIPEWIRE_CONF_OPTS += -Dbluez5-codec-aac=enabled
+PIPEWIRE_DEPENDENCIES += fdk-aac
 else
 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
 endif
 
 
 ifeq ($(BR2_PACKAGE_FFMPEG),y)
 ifeq ($(BR2_PACKAGE_FFMPEG),y)