aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2017-06-15 08:13:10 -0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-06-20 23:08:44 +0200
commitb447ed4a848823918927fb8da77796b0b6b87a63 (patch)
tree8c86010b69e202c9f59ce79d0017dcb99b7d5d2a
parent2083c40b548ed791eeb804d4f9a23fc3e399bba8 (diff)
downloadbuildroot-b447ed4a848823918927fb8da77796b0b6b87a63.tar.gz
buildroot-b447ed4a848823918927fb8da77796b0b6b87a63.tar.bz2
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>
-rw-r--r--package/janus-gateway/Config.in5
-rw-r--r--package/janus-gateway/janus-gateway.mk14
2 files changed, 12 insertions, 7 deletions
diff --git a/package/janus-gateway/Config.in b/package/janus-gateway/Config.in
index 7e170fd4c0..9af4d56637 100644
--- a/package/janus-gateway/Config.in
+++ b/package/janus-gateway/Config.in
@@ -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"
diff --git a/package/janus-gateway/janus-gateway.mk b/package/janus-gateway/janus-gateway.mk
index 01021f84f5..69282a20ca 100644
--- a/package/janus-gateway/janus-gateway.mk
+++ b/package/janus-gateway/janus-gateway.mk
@@ -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)