aboutsummaryrefslogtreecommitdiff
path: root/package/janus-gateway/janus-gateway.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/janus-gateway/janus-gateway.mk')
-rw-r--r--package/janus-gateway/janus-gateway.mk8
1 files changed, 7 insertions, 1 deletions
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