aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2017-06-15 08:13:12 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-20 23:09:33 +0200
commit0c14c1f5e679a2009f9253d051ea6e274d54e367 (patch)
tree131ae72eceb8157ccf7c0abe6ccb1bd67cf14cf3
parent5dc7252d734221431a5276699e2a9d1a0df3fc56 (diff)
downloadbuildroot-0c14c1f5e679a2009f9253d051ea6e274d54e367.tar.gz
buildroot-0c14c1f5e679a2009f9253d051ea6e274d54e367.tar.bz2
janus-gateway: add mqtt to transport section
Signed-off-by: Adam Duskett <aduskett@codeblue.com> [Thomas: propagate paho-mqtt dependencies, use alphabetic ordering.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/janus-gateway/Config.in9
-rw-r--r--package/janus-gateway/janus-gateway.mk7
2 files changed, 16 insertions, 0 deletions
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