aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2017-06-15 08:13:11 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-20 23:09:13 +0200
commit5dc7252d734221431a5276699e2a9d1a0df3fc56 (patch)
tree75e5ede059d08e84d3a4687220f54417d9fb0e37
parentb447ed4a848823918927fb8da77796b0b6b87a63 (diff)
downloadbuildroot-5dc7252d734221431a5276699e2a9d1a0df3fc56.tar.gz
buildroot-5dc7252d734221431a5276699e2a9d1a0df3fc56.tar.bz2
janus-gateway: add rabbitmq to transports section
Signed-off-by: Adam Duskett <aduskett@codeblue.com> [Thomas: propagate rabbitmq-c dependency, use alphabetic ordering.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/janus-gateway/Config.in8
-rw-r--r--package/janus-gateway/janus-gateway.mk8
2 files changed, 15 insertions, 1 deletions
diff --git a/package/janus-gateway/Config.in b/package/janus-gateway/Config.in
index 9af4d56637..7fa23eca98 100644
--- a/package/janus-gateway/Config.in
+++ b/package/janus-gateway/Config.in
@@ -56,6 +56,14 @@ config BR2_PACKAGE_JANUS_VOICE_MAIL
comment "transports"
+config BR2_PACKAGE_JANUS_RABBITMQ
+ bool "RabbitMQ"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ select BR2_PACKAGE_RABBITMQ_C
+
+comment "RabbitMQ transport needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
+
config BR2_PACKAGE_JANUS_REST
bool "REST (HTTP/HTTPS)"
depends on BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/janus-gateway/janus-gateway.mk b/package/janus-gateway/janus-gateway.mk
index 69282a20ca..35faf77e46 100644
--- a/package/janus-gateway/janus-gateway.mk
+++ b/package/janus-gateway/janus-gateway.mk
@@ -24,7 +24,6 @@ JANUS_GATEWAY_POST_PATCH_HOOKS += JANUS_GATEWAY_M4
JANUS_GATEWAY_CONF_OPTS = \
--disable-data-channels \
- --disable-rabbitmq \
--disable-sample-event-handler
ifeq ($(BR2_PACKAGE_JANUS_AUDIO_BRIDGE),y)
@@ -84,6 +83,13 @@ else
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-voicemail
endif
+ifeq ($(BR2_PACKAGE_JANUS_RABBITMQ),y)
+JANUS_GATEWAY_DEPENDENCIES += rabbitmq-c
+JANUS_GATEWAY_CONF_OPTS += --enable-rabbitmq
+else
+JANUS_GATEWAY_CONF_OPTS += --disable-rabbitmq
+endif
+
ifeq ($(BR2_PACKAGE_JANUS_REST),y)
JANUS_GATEWAY_DEPENDENCIES += libmicrohttpd
JANUS_GATEWAY_CONF_OPTS += --enable-rest