janus-gateway comes with an example website to test its features.
Since the bump to 0.10.3, this website takes 1.8MiB uncompressed on
the target, among which is a 1MiB video sample which does not compress
well.
Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
if BR2_PACKAGE_JANUS_GATEWAY
+config BR2_PACKAGE_JANUS_GATEWAY_DEMOS
+ bool "HTML demos"
+ help
+ Install the demonstration website, as featured on
+ https://janus.conf.meetecho.com/
+
comment "plugins"
config BR2_PACKAGE_JANUS_GATEWAY_AUDIO_BRIDGE
--disable-data-channels \
--disable-sample-event-handler
+ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_DEMOS),)
+define JANUS_GATEWAY_REMOVE_DEMOS
+ $(RM) -fr $(TARGET_DIR)/usr/share/janus/demos/
+endef
+JANUS_GATEWAY_POST_INSTALL_TARGET_HOOKS += JANUS_GATEWAY_REMOVE_DEMOS
+endif
+
ifeq ($(BR2_PACKAGE_JANUS_GATEWAY_AUDIO_BRIDGE),y)
JANUS_GATEWAY_DEPENDENCIES += opus
JANUS_GATEWAY_CONF_OPTS += --enable-plugin-audiobridge