瀏覽代碼

package/squeezelite: add optional lirc-tools dependency

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fabrice Fontaine 6 年之前
父節點
當前提交
a53b5bfdc0
共有 2 個文件被更改,包括 13 次插入0 次删除
  1. 8 0
      package/squeezelite/Config.in
  2. 5 0
      package/squeezelite/squeezelite.mk

+ 8 - 0
package/squeezelite/Config.in

@@ -27,6 +27,14 @@ config BR2_PACKAGE_SQUEEZELITE_FFMPEG
 config BR2_PACKAGE_SQUEEZELITE_DSD
 	bool "Enable DSD decoding"
 
+config BR2_PACKAGE_SQUEEZELITE_LIRC
+	bool "Enable lirc support"
+	depends on BR2_INSTALL_LIBSTDCPP
+	select BR2_PACKAGE_LIRC_TOOLS
+
+comment "lirc support needs a toolchain with C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
+
 config BR2_PACKAGE_SQUEEZELITE_RESAMPLE
 	bool "Enable resampling support"
 	select BR2_PACKAGE_LIBSOXR

+ 5 - 0
package/squeezelite/squeezelite.mk

@@ -20,6 +20,11 @@ ifeq ($(BR2_PACKAGE_SQUEEZELITE_DSD),y)
 SQUEEZELITE_MAKE_OPTS += -DDSD
 endif
 
+ifeq ($(BR2_PACKAGE_SQUEEZELITE_LIRC),y)
+SQUEEZELITE_DEPENDENCIES += lirc-tools
+SQUEEZELITE_MAKE_OPTS += -DIR
+endif
+
 ifeq ($(BR2_PACKAGE_SQUEEZELITE_RESAMPLE),y)
 SQUEEZELITE_DEPENDENCIES += libsoxr
 SQUEEZELITE_MAKE_OPTS += -DRESAMPLE