From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 29 Jul 2022 08:27:43 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oHJTL-003GBN-Lm for lore@lore.pengutronix.de; Fri, 29 Jul 2022 08:27:43 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1oHJTK-00034k-2v; Fri, 29 Jul 2022 08:27:42 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oHJPQ-000687-Fg; Fri, 29 Jul 2022 08:23:40 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oHJPP-000SO1-Ov; Fri, 29 Jul 2022 08:23:39 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oHJPP-00A2Oo-1E; Fri, 29 Jul 2022 08:23:39 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 29 Jul 2022 08:23:39 +0200 Message-Id: <20220729062339.2392459-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220705075006.5054-1-ada@thorsis.com> References: <20220705075006.5054-1-ada@thorsis.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] nlohmann-json: Add new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Alexander Dahl Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 3554e6046d5aa90360bfbe507b675d8ea41b31b0. Michael [sent from post-receive hook] On Fri, 29 Jul 2022 08:23:38 +0200, Alexander Dahl wrote: > While you could just add those header files to your project, it might be > easier to have it in one central place in your BSP, especially when > using it from more than one application. > > Signed-off-by: Alexander Dahl > Message-Id: <20220705075006.5054-1-ada@thorsis.com> > Signed-off-by: Michael Olbrich > > diff --git a/rules/nlohmann-json.in b/rules/nlohmann-json.in > new file mode 100644 > index 000000000000..af2f688ce6ed > --- /dev/null > +++ b/rules/nlohmann-json.in > @@ -0,0 +1,21 @@ > +## SECTION=system_libraries > + > +menuconfig NLOHMANN_JSON > + tristate > + prompt "JSON for Modern C++ " > + select HOST_CMAKE > + help > + Modern C++11 JSON library with intuitive syntax, trivial > + integration, and serious testing. > + > + https://json.nlohmann.me/ > + > +if NLOHMANN_JSON > + > +config NLOHMANN_JSON_BUILD_TESTS > + bool > + prompt "Build the unit tests" > + > +endif > + > +# vim: ft=kconfig noet tw=72 ts=8 sw=8 > diff --git a/rules/nlohmann-json.make b/rules/nlohmann-json.make > new file mode 100644 > index 000000000000..4116ac4d1cae > --- /dev/null > +++ b/rules/nlohmann-json.make > @@ -0,0 +1,42 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2021 by Alexander Dahl > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_NLOHMANN_JSON) += nlohmann-json > + > +# > +# Paths and names > +# > +NLOHMANN_JSON_VERSION := 3.10.5 > +NLOHMANN_JSON_MD5 := 5b946f7d892fa55eabec45e76a20286b > +NLOHMANN_JSON := nlohmann-json-$(NLOHMANN_JSON_VERSION) > +NLOHMANN_JSON_SUFFIX := tar.gz > +NLOHMANN_JSON_URL := https://github.com/nlohmann/json/archive/refs/tags/v$(NLOHMANN_JSON_VERSION).$(NLOHMANN_JSON_SUFFIX) > +NLOHMANN_JSON_SOURCE := $(SRCDIR)/$(NLOHMANN_JSON).$(NLOHMANN_JSON_SUFFIX) > +NLOHMANN_JSON_DIR := $(BUILDDIR)/$(NLOHMANN_JSON) > +NLOHMANN_JSON_LICENSE := MIT > +NLOHMANN_JSON_LICENSE_FILES := file://LICENSE.MIT;md5=f969127d7b7ed0a8a63c2bbeae002588 > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +NLOHMANN_JSON_CONF_TOOL := cmake > +NLOHMANN_JSON_CONF_OPT := \ > + $(CROSS_CMAKE_USR) \ > + -DJSON_BuildTests:BOOL=$(call ptx/onoff, PTXCONF_NLOHMANN_JSON_BUILD_TESTS) \ > + -DJSON_CI:BOOL=OFF \ > + -DJSON_Diagnostics:BOOL=OFF \ > + -DJSON_ImplicitConversions:BOOL=ON \ > + -DJSON_Install:BOOL=ON \ > + -DJSON_MultipleHeaders:BOOL=OFF \ > + -DJSON_SystemInclude:BOOL=OFF > + > +# vim: ft=make noet tw=72 ts=8 sw=8