diff mbox

[08/10] janus-gateway: Make video call plugin optional.

Message ID 20170124195438.4144-8-aduskett@codeblue.com
State Rejected, archived
Headers show

Commit Message

Adam Duskett Jan. 24, 2017, 7:54 p.m. UTC
Currently janus-gateway is built by default with the video call plugin.
This causes a example config file to be placed on the target filing system
that the user may not need or want.
This patch makes the video call plugin a option.

Signed-off-by: Adam Duskett <aduskett@codeblue.com>
---
 package/janus-gateway/Config.in        | 4 ++++
 package/janus-gateway/janus-gateway.mk | 6 ++++++
 2 files changed, 10 insertions(+)
diff mbox

Patch

diff --git a/package/janus-gateway/Config.in b/package/janus-gateway/Config.in
index 453d01d..5020d59 100644
--- a/package/janus-gateway/Config.in
+++ b/package/janus-gateway/Config.in
@@ -45,6 +45,10 @@  config BR2_PACKAGE_JANUS_PLUGIN_TEXT_ROOM
 	bool "janus text room plugin"
 	default n
 
+config BR2_PACKAGE_JANUS_PLUGIN_VIDEO_CALL
+	bool "janus video call plugin"
+	default n
+
 endif
 
 comment "janus-gateway needs a toolchain w/ dynamic library, threads, wchar"
diff --git a/package/janus-gateway/janus-gateway.mk b/package/janus-gateway/janus-gateway.mk
index c3e35c8..a1fffa1 100644
--- a/package/janus-gateway/janus-gateway.mk
+++ b/package/janus-gateway/janus-gateway.mk
@@ -63,6 +63,12 @@  else
 JANUS_GATEWAY_CONF_OPTS += --disable-plugin-textroom
 endif
 
+ifeq ($(BR2_PACKAGE_JANUS_PLUGIN_VIDEO_CALL),y)
+JANUS_GATEWAY_CONF_OPTS += --enable-plugin-videocall
+else
+JANUS_GATEWAY_CONF_OPTS += --disable-plugin-videocall
+endif
+
 ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS),y)
 JANUS_GATEWAY_DEPENDENCIES += libwebsockets
 JANUS_GATEWAY_CONF_OPTS += --enable-websockets