janus-gateway: add websockets to transport section

Signed-off-by: Adam Duskett <aduskett@codeblue.com>
[Thomas: propagate BR2_USE_MMU dependency.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Adam Duskett 2017-06-15 08:13:10 -04:00 committed by Thomas Petazzoni
parent 2083c40b54
commit b447ed4a84
2 changed files with 12 additions and 7 deletions

View File

@ -64,6 +64,11 @@ config BR2_PACKAGE_JANUS_REST
comment "REST transport needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
config BR2_PACKAGE_JANUS_WEBSOCKETS
bool "WebSockets"
depends on BR2_USE_MMU
select BR2_PACKAGE_LIBWEBSOCKETS
endif
comment "janus-gateway needs a toolchain w/ dynamic library, threads, wchar"

View File

@ -84,13 +84,6 @@ else
JANUS_GATEWAY_CONF_OPTS += --disable-plugin-voicemail
endif
ifeq ($(BR2_PACKAGE_LIBWEBSOCKETS),y)
JANUS_GATEWAY_DEPENDENCIES += libwebsockets
JANUS_GATEWAY_CONF_OPTS += --enable-websockets
else
JANUS_GATEWAY_CONF_OPTS += --disable-websockets
endif
ifeq ($(BR2_PACKAGE_JANUS_REST),y)
JANUS_GATEWAY_DEPENDENCIES += libmicrohttpd
JANUS_GATEWAY_CONF_OPTS += --enable-rest
@ -98,6 +91,13 @@ else
JANUS_GATEWAY_CONF_OPTS += --disable-rest
endif
ifeq ($(BR2_PACKAGE_JANUS_WEBSOCKETS),y)
JANUS_GATEWAY_DEPENDENCIES += libwebsockets
JANUS_GATEWAY_CONF_OPTS += --enable-websockets
else
JANUS_GATEWAY_CONF_OPTS += --disable-websockets
endif
# Parallel build broken
JANUS_GATEWAY_MAKE = $(MAKE1)