Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Duskett <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/7] janus-gateway: add transports section to config.
Date: Thu, 15 Jun 2017 08:13:09 -0400	[thread overview]
Message-ID: <20170615121314.1485-2-aduskett@codeblue.com> (raw)
In-Reply-To: <20170615121314.1485-1-aduskett@codeblue.com>

janus-gateway supports many different transports, and currently
there is no implicit way to turn them off or on.  Instead, if the
dependency happens to be built, then the transport is enabled.

Create a transports section in the config file and add
BR2_PACKAGE_JANUS_REST as the first transport.

Signed-off-by: Adam Duskett <aduskett@codeblue.com>
---
 package/janus-gateway/Config.in        | 6 ++++++
 package/janus-gateway/janus-gateway.mk | 7 +++++++
 2 files changed, 13 insertions(+)

diff --git a/package/janus-gateway/Config.in b/package/janus-gateway/Config.in
index e07b4ad..7fc213f 100644
--- a/package/janus-gateway/Config.in
+++ b/package/janus-gateway/Config.in
@@ -54,6 +54,12 @@ config BR2_PACKAGE_JANUS_VOICE_MAIL
 	bool "voice mail"
 	select BR2_PACKAGE_LIBOGG
 
+comment "transports"
+
+config BR2_PACKAGE_JANUS_REST
+	bool "REST (HTTP/HTTPS)"
+	select BR2_PACKAGE_LIBMICROHTTPD
+
 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 b79e340..01021f8 100644
--- a/package/janus-gateway/janus-gateway.mk
+++ b/package/janus-gateway/janus-gateway.mk
@@ -91,6 +91,13 @@ else
 JANUS_GATEWAY_CONF_OPTS += --disable-websockets
 endif
 
+ifeq ($(BR2_PACKAGE_JANUS_REST),y)
+JANUS_GATEWAY_DEPENDENCIES += libmicrohttpd
+JANUS_GATEWAY_CONF_OPTS += --enable-rest
+else
+JANUS_GATEWAY_CONF_OPTS += --disable-rest
+endif
+
 # Parallel build broken
 JANUS_GATEWAY_MAKE = $(MAKE1)
 
-- 
2.9.4

  reply	other threads:[~2017-06-15 12:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 12:13 [Buildroot] [PATCH 1/7] janus-gateway: bump to version 0.2.3 Adam Duskett
2017-06-15 12:13 ` Adam Duskett [this message]
2017-06-20 21:13   ` [Buildroot] [PATCH 2/7] janus-gateway: add transports section to config Thomas Petazzoni
2017-06-15 12:13 ` [Buildroot] [PATCH 3/7] janus-gatway: add websockets to transport section Adam Duskett
2017-06-15 12:13 ` [Buildroot] [PATCH 4/7] janus-gatway: add rabbitmq to transports section Adam Duskett
2017-06-15 12:13 ` [Buildroot] [PATCH 5/7] janus-gatway: add mqtt to transport section Adam Duskett
2017-06-15 12:13 ` [Buildroot] [PATCH 6/7] janus-gatway: add unix-sockets " Adam Duskett
2017-06-15 12:13 ` [Buildroot] [PATCH 7/7] DEVELOPERS: Add janus-gateway to Adam Duskett Adam Duskett
2017-06-15 21:34 ` [Buildroot] [PATCH 1/7] janus-gateway: bump to version 0.2.3 Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170615121314.1485-2-aduskett@codeblue.com \
    --to=aduskett@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox