Skip to contentSkip to conversation

cpp-argparse: added recipe

PATCH In review Yishai Jaffe 2 participants 2 messages Jul 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpp-argparse: added recipe

Added recipe for C++ argparse library

---
 .../cpp-argparse/cpp-argparse_3.2.bb              | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb
meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb new file +15 -0
new file mode 100644
index 0000000000..5d7965149f
@@ -0,0 +1,15 @@
+SUMMARY = "Argument Parser for Modern C++"
+HOMEPAGE = "https://github.com/p-ranav/argparse"
+BUGTRACKER = "https://github.com/p-ranav/argparse/issues"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4f3ed9ec2c801700ac8fda1fcd29a330"
+
+SRCREV = "3eda91b2e1ce7d569f84ba295507c4cd8fd96910"
+SRC_URI = "git://github.com/p-ranav/argparse.git;branch=master;protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit cmake
+EXTRA_OECMAKE = "-DARGPARSE_BUILD_TESTS=OFF"
+
+BBCLASSEXTEND = "native nativesdk"
#1 lore raw
Quoted 14 lines · Yishai Jaffe via lists.openembedded.org

Added recipe for C++ argparse library

---
 .../cpp-argparse/cpp-argparse_3.2.bb              | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb
meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb new file +0 -0
new file mode 100644
index 0000000000..5d7965149f

meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb line 8

Quoted 8 lines
meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb new file +8 -0
@@ -0,0 +1,15 @@
+SUMMARY = "Argument Parser for Modern C++"
+HOMEPAGE = "https://github.com/p-ranav/argparse"
+BUGTRACKER = "https://github.com/p-ranav/argparse/issues"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4f3ed9ec2c801700ac8fda1fcd29a330"
+
+SRCREV = "3eda91b2e1ce7d569f84ba295507c4cd8fd96910"
+SRC_URI = "git://github.com/p-ranav/argparse.git;branch=master;protocol=https"

Could you add ";tag=v${PV}` to the SRC_URI? That will allow bitbake check the revision against the tag.

meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb line 10

Quoted 2 lines
meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb new file +2 -0
+
+S = "${WORKDIR}/git"

This generates a fatal error using the latest master oe-core. You should be able to remove the "S" assignment altogether.

Quoted 6 lines
meta-oe/recipes-devtools/cpp-argparse/cpp-argparse_3.2.bb new file +5 -0
+
+inherit cmake
+EXTRA_OECMAKE = "-DARGPARSE_BUILD_TESTS=OFF"
+
+BBCLASSEXTEND = "native nativesdk"