blob: 2e3da7d4d3e25172d2eeb69d81895d2e9f771a6f [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001DESCRIPTION="Protocol Buffers with small code size"
2LICENSE="Zlib"
3LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9db4b73a55a3994384112efcdb37c01f"
4
5DEPENDS = "protobuf-native"
6
7SRC_URI = "git://github.com/nanopb/nanopb.git"
8SRCREV = "70f0de9877b1ce12abc0229d5df84db6349fcbfc"
9
10S = "${WORKDIR}/git"
11
Andrew Geissler82c905d2020-04-13 13:39:40 -050012inherit cmake python3native
Brad Bishope42b3e32020-01-15 22:08:42 -050013
14do_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
20FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}"
21FILES_${PN}-dev += "${libdir}/cmake/${BPN}"
22
23RDEPENDS_${PN} += "\
24 ${PYTHON_PN}-protobuf \
25 protobuf-compiler \
26"
27
28BBCLASSEXTEND = "native nativesdk"
Andrew Geissler82c905d2020-04-13 13:39:40 -050029
Andrew Geisslereafcbb82020-06-05 17:59:17 -050030PNBLACKLIST[nanopb] ?= "Needs forward porting to use python3"