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"
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
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)