From: Adam Duskett Date: Thu, 15 Jun 2017 12:13:12 +0000 (-0400) Subject: janus-gateway: add mqtt to transport section X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c14c1f5e679a2009f9253d051ea6e274d54e367;p=buildroot.git janus-gateway: add mqtt to transport section Signed-off-by: Adam Duskett [Thomas: propagate paho-mqtt dependencies, use alphabetic ordering.] Signed-off-by: Thomas Petazzoni --- diff --git a/package/janus-gateway/Config.in b/package/janus-gateway/Config.in index 7fa23eca98..b0e4ae9260 100644 --- a/package/janus-gateway/Config.in +++ b/package/janus-gateway/Config.in @@ -56,6 +56,15 @@ config BR2_PACKAGE_JANUS_VOICE_MAIL comment "transports" +config BR2_PACKAGE_JANUS_MQTT + bool "MQTT" + depends on !BR2_STATIC_LIBS + depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_PAHO_MQTT_C + +comment "MQTT transport needs a toolchain w/ threads and dynamic library support" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS + config BR2_PACKAGE_JANUS_RABBITMQ bool "RabbitMQ" depends on BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/janus-gateway/janus-gateway.mk b/package/janus-gateway/janus-gateway.mk index 35faf77e46..b19ed54d91 100644 --- a/package/janus-gateway/janus-gateway.mk +++ b/package/janus-gateway/janus-gateway.mk @@ -83,6 +83,13 @@ else JANUS_GATEWAY_CONF_OPTS += --disable-plugin-voicemail endif +ifeq ($(BR2_PACKAGE_JANUS_MQTT),y) +JANUS_GATEWAY_DEPENDENCIES += paho-mqtt-c +JANUS_GATEWAY_CONF_OPTS += --enable-mqtt +else +JANUS_GATEWAY_CONF_OPTS += --disable-mqtt +endif + ifeq ($(BR2_PACKAGE_JANUS_RABBITMQ),y) JANUS_GATEWAY_DEPENDENCIES += rabbitmq-c JANUS_GATEWAY_CONF_OPTS += --enable-rabbitmq