From patchwork Fri Nov 3 10:23:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Maignial X-Patchwork-Id: 833757 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ySyjl5LqWz9sPk for ; Fri, 3 Nov 2017 21:24:10 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7AC502F903; Fri, 3 Nov 2017 10:24:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mkW60gM1kLHM; Fri, 3 Nov 2017 10:24:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 506352CED4; Fri, 3 Nov 2017 10:24:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 7E7491C2DB8 for ; Fri, 3 Nov 2017 10:24:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7276F2CED4 for ; Fri, 3 Nov 2017 10:24:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YYyyZxgN5aBA for ; Fri, 3 Nov 2017 10:24:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from idris.smile.fr (idris.smile.fr [91.216.209.19]) by silver.osuosl.org (Postfix) with ESMTPS id 38C36258CF for ; Fri, 3 Nov 2017 10:24:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by idris.smile.fr (Postfix) with ESMTP id E21741EE45EB; Fri, 3 Nov 2017 11:24:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at smile.fr Received: from idris.smile.fr ([127.0.0.1]) by localhost (bluemind-mta.prod.vitry.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lYNwhH6PKxaO; Fri, 3 Nov 2017 11:24:02 +0100 (CET) Received: from smtp.smile.fr (myfox-157-50.fib.nerim.net [194.79.157.50]) by idris.smile.fr (Postfix) with ESMTPSA id A72401EE46DA; Fri, 3 Nov 2017 11:24:02 +0100 (CET) From: Olivier Maignial To: buildroot@buildroot.org Date: Fri, 3 Nov 2017 11:23:59 +0100 Message-Id: <1509704639-20360-1-git-send-email-olivier.maignial@smile.fr> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH 1/1] janus-gateway: add option for libcurl support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gregory Dymarek , Adam Duskett , Olivier Maignial MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" libcurl is not mandatory to compile Janus, but Janus use it in several way: - RTSP stream support in plugin streaming - TURN REST API support - HTTP backend for text room plugin - ... This commit add an option "libcurl support" to add dependency on libcurl. Signed-off-by: Olivier Maignial --- package/janus-gateway/Config.in | 18 ++++++++++++++++++ package/janus-gateway/janus-gateway.mk | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/package/janus-gateway/Config.in b/package/janus-gateway/Config.in index 5bd4e95..156fac6 100644 --- a/package/janus-gateway/Config.in +++ b/package/janus-gateway/Config.in @@ -38,6 +38,12 @@ config BR2_PACKAGE_JANUS_STREAMING # SO_REUSEPORT depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 +if BR2_PACKAGE_JANUS_STREAMING +config BR2_PACKAGE_JANUS_STREAMING_RTSP + bool "Support RTSP feed" + select BR2_PACKAGE_JANUS_LIBCURL +endif + comment "streaming plugin needs a toolchain w/ headers >= 3.9" depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9 @@ -77,6 +83,7 @@ config BR2_PACKAGE_JANUS_REST bool "REST (HTTP/HTTPS)" depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_LIBMICROHTTPD + select BR2_PACKAGE_JANUS_LIBCURL comment "REST transport needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS @@ -90,6 +97,17 @@ config BR2_PACKAGE_JANUS_WEBSOCKETS depends on BR2_USE_MMU select BR2_PACKAGE_LIBWEBSOCKETS +comment "libcurl support" + +config BR2_PACKAGE_JANUS_LIBCURL + bool "Enable libcurl support" + default y + help + Janus uses libcurl to several purposes: + - Enable TURN REST API + - Implement Sample Event Handler plugin + - Support RTSP stream in streaming plugin + 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 bf3e590..7314d1c 100644 --- a/package/janus-gateway/janus-gateway.mk +++ b/package/janus-gateway/janus-gateway.mk @@ -117,6 +117,10 @@ else JANUS_GATEWAY_CONF_OPTS += --disable-websockets endif +ifeq ($(BR2_PACKAGE_JANUS_LIBCURL),y) +JANUS_GATEWAY_DEPENDENCIES += libcurl +endif + # Parallel build broken JANUS_GATEWAY_MAKE = $(MAKE1)