diff options
author | Fabio Berton <fabio.berton@ossystems.com.br> | 2019-12-20 17:35:14 -0300 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-12-20 16:01:19 -0800 |
commit | b27741f2a4d611c1b0c2eca88a8d19b7b779c5a1 (patch) | |
tree | 559f85de2a7f4a0a7e266706c2334942a6899494 /meta-oe/recipes-devtools/nanopb | |
parent | abda84d15d8b513884a80579b2021d2015c26880 (diff) | |
download | meta-openembedded-b27741f2a4d611c1b0c2eca88a8d19b7b779c5a1.tar.gz |
nanopb: Add recipe for version 0.4.0
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/nanopb')
-rw-r--r-- | meta-oe/recipes-devtools/nanopb/nanopb_0.4.0.bb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nanopb/nanopb_0.4.0.bb b/meta-oe/recipes-devtools/nanopb/nanopb_0.4.0.bb new file mode 100644 index 0000000000..aedd53a7a4 --- /dev/null +++ b/meta-oe/recipes-devtools/nanopb/nanopb_0.4.0.bb @@ -0,0 +1,28 @@ +DESCRIPTION="Protocol Buffers with small code size" +LICENSE="Zlib" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f" + +DEPENDS = "protobuf-native" + +SRC_URI = "git://github.com/nanopb/nanopb.git" +SRCREV = "70f0de9877b1ce12abc0229d5df84db6349fcbfc" + +S = "${WORKDIR}/git" + +inherit cmake pythonnative + +do_install_append() { + install -Dm 0755 ${S}/generator/nanopb_generator.py ${D}${bindir}/nanopb_generator.py + install -Dm 0755 ${S}/generator/protoc-gen-nanopb ${D}${bindir}/protoc-gen-nanopb + install -Dm 0755 ${S}/generator/proto/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/proto/__init__.py +} + +FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}" +FILES_${PN}-dev += "${libdir}/cmake/${BPN}" + +RDEPENDS_${PN} += "\ + ${PYTHON_PN}-protobuf \ + protobuf-compiler \ +" + +BBCLASSEXTEND = "native nativesdk" |