diff options
| -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 @@ | |||
| 1 | DESCRIPTION="Protocol Buffers with small code size" | ||
| 2 | LICENSE="Zlib" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f" | ||
| 4 | |||
| 5 | DEPENDS = "protobuf-native" | ||
| 6 | |||
| 7 | SRC_URI = "git://github.com/nanopb/nanopb.git" | ||
| 8 | SRCREV = "70f0de9877b1ce12abc0229d5df84db6349fcbfc" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | |||
| 12 | inherit cmake pythonnative | ||
| 13 | |||
| 14 | do_install_append() { | ||
| 15 | install -Dm 0755 ${S}/generator/nanopb_generator.py ${D}${bindir}/nanopb_generator.py | ||
| 16 | install -Dm 0755 ${S}/generator/protoc-gen-nanopb ${D}${bindir}/protoc-gen-nanopb | ||
| 17 | install -Dm 0755 ${S}/generator/proto/__init__.py ${D}${PYTHON_SITEPACKAGES_DIR}/proto/__init__.py | ||
| 18 | } | ||
| 19 | |||
| 20 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}" | ||
| 21 | FILES_${PN}-dev += "${libdir}/cmake/${BPN}" | ||
| 22 | |||
| 23 | RDEPENDS_${PN} += "\ | ||
| 24 | ${PYTHON_PN}-protobuf \ | ||
| 25 | protobuf-compiler \ | ||
| 26 | " | ||
| 27 | |||
| 28 | BBCLASSEXTEND = "native nativesdk" | ||
