janus-gateway: add mqtt to transport section
authorAdam Duskett <Aduskett@gmail.com>
Thu, 15 Jun 2017 12:13:12 +0000 (08:13 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Jun 2017 21:09:33 +0000 (23:09 +0200)
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>
package/janus-gateway/Config.in
package/janus-gateway/janus-gateway.mk

index 7fa23eca988939c08d3e712eb15dc32c7fdda89b..b0e4ae9260590325170fa8ddbf4b1099e2a61a76 100644 (file)
@@ -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
index 35faf77e46c5e9ab15217e2682bcb173f48812a2..b19ed54d91942949849a23ce38b552b908b4a811 100644 (file)
@@ -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