package/sbc: add config option to control tools build
PATCH 1/1 package/sbc: add config option to control tools build
libsndfile is only needed by the sbctester utility and the library can be built without this dependency.
Add a config option to cover not just sbctester but the command-line utilities as well. While the utilities may be useful for debugging, normal usage will only need libsbc and these applications can be omitted.
Signed-off-by John Keeping <[email protected]>
--- package/sbc/Config.in | 8 +++++++- package/sbc/sbc.mk | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-)
package/sbc/Config.in +7 -1
@@ -1,8 +1,14 @@ config BR2_PACKAGE_SBC bool "sbc" - select BR2_PACKAGE_LIBSNDFILE help An audio codec to connect bluetooth high quality audio devices like headphones or loudspeakers. http://www.bluez.org/ + +config BR2_PACKAGE_SBC_TOOLS + bool "tools" + depends on BR2_PACKAGE_SBC + select BR2_PACKAGE_SBC_TOOLS + help + Build the command-line SBC tools as well as the library.
package/sbc/sbc.mk +8 -1
@@ -8,8 +8,15 @@ SBC_VERSION = 2.0 SBC_SOURCE = sbc-$(SBC_VERSION).tar.xz SBC_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth SBC_INSTALL_STAGING = YES -SBC_DEPENDENCIES = libsndfile host-pkgconf +SBC_DEPENDENCIES = host-pkgconf SBC_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (library) SBC_LICENSE_FILES = COPYING COPYING.LIB +ifeq ($(BR2_PACKAGE_SBC_TOOLS),y) +SBC_DEPENDENCIES += libsndfile +SBC_CONF_OPTS += --enable-tools --enable-tester +else +SBC_CONF_OPTS += --disable-tools --disable-tester +endif + $(eval $(autotools-package))
Signature · 6 lines
2.38.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot