From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Duskett Date: Tue, 24 Jan 2017 15:31:32 -0500 Subject: [Buildroot] [V2 03/10] janus-gateway: Make audio bridge plugin optional. In-Reply-To: <20170124203139.15919-1-aduskett@codeblue.com> References: <20170124203139.15919-1-aduskett@codeblue.com> Message-ID: <20170124203139.15919-3-aduskett@codeblue.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Currently janus-gateway is built by default with the audio bridge 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 audio bridge plugin a option. Signed-off-by: Adam Duskett --- v1 -> v2: Fixed patch so that this patch adds the plugin to both the Config.in and the .mk file. package/janus-gateway/Config.in | 4 ++++ package/janus-gateway/janus-gateway.mk | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/package/janus-gateway/Config.in b/package/janus-gateway/Config.in index 2a25c01..20e72ff 100644 --- a/package/janus-gateway/Config.in +++ b/package/janus-gateway/Config.in @@ -21,6 +21,10 @@ if BR2_PACKAGE_JANUS_GATEWAY comment "janus-gateway plugins" +config BR2_PACKAGE_JANUS_PLUGIN_AUDIO_BRIDGE + bool "janus audio bridge plugin" + default n + config BR2_PACKAGE_JANUS_PLUGIN_SIP bool "janus sip gateway plugin" default n diff --git a/package/janus-gateway/janus-gateway.mk b/package/janus-gateway/janus-gateway.mk index 77254e6..da25137 100644 --- a/package/janus-gateway/janus-gateway.mk +++ b/package/janus-gateway/janus-gateway.mk @@ -26,6 +26,12 @@ JANUS_GATEWAY_CONF_OPTS = \ --disable-data-channels \ --disable-rabbitmq +ifeq ($(BR2_PACKAGE_JANUS_PLUGIN_AUDIO_BRIDGE),y) +JANUS_GATEWAY_CONF_OPTS += --enable-plugin-audiobridge +else +JANUS_GATEWAY_CONF_OPTS += --disable-plugin-audiobridge +endif + ifeq ($(BR2_PACKAGE_JANUS_PLUGIN_SIP_GATEWAY),y) JANUS_GATEWAY_DEPENDENCIES += sofia-sip JANUS_GATEWAY_CONF_OPTS += --enable-plugin-sip -- 2.9.3