Skip to contentSkip to conversation

nng: Add recipe

PATCH New Tom Rini 1 participant 1 message Feb 3, 2020

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 nng: Add recipe

nng is the nanomsg project's rewrite of their libnanomsg library. Just like nanomsg it is a socket library that provides several common communication patterns.

Unlike nanomsg it does not normally provide a number of tools and we do not attempt to add them here. We allow for optional mbedtls support.

---
Notes:
- nng is not a 1-to-1 replacement for nanomsg and does provide different runtime files, so we do not conflict/etc with them.
- nng does support cross-compilation of tools but I'm leaving this out as I can't test that currently and it is non-default.
- As it's part of the nanomsg project I am putting this under the nanomsg folder, but I don't have strong preferences here.

---
 .../recipes-connectivity/nanomsg/nng_1.2.5.bb | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta-networking/recipes-connectivity/nanomsg/nng_1.2.5.bb
meta-networking/recipes-connectivity/nanomsg/nng_1.2.5.bb new file +21 -0
new file mode 100644
index 000000000000..77be27ffaa5b
@@ -0,0 +1,21 @@
+SUMMARY = "nanomsg-next-generation -- light-weight brokerless messaging"
+DESCRIPTION = "NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery."
+HOMEPAGE = "https://github.com/nanomsg/nng"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a19b15be6e844b39a54de2ef665bd6de"
+
+SECTION = "libs/networking"
+
+SRCREV = "53ae1a5ab37fdfc9ad5c236df3eaf4dd63f0fee9"
+
+SRC_URI = "git://github.com/nanomsg/nng.git;branch=v1.2.x"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig
+
+EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON"
+
+PACKAGECONFIG ??= ""
+
+PACKAGECONFIG[mbedtls] = "-DNNG_ENABLE_TLS=ON,-DNNG_ENABLE_TLS=OFF,mbedtls"
Signature · 1 line
2.17.1