mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-14 17:59:59 +00:00
30bb83b306
This makes it possible to avoid building components which are not used in the native or runtime tooling. Most users of nanopb just want to build `nanopb-generator-native` and `nanopb-runtime` and not the other two combinations as they are building software for their target leveraging nanopb. Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 lines
304 B
BlitzBasic
15 lines
304 B
BlitzBasic
require nanopb.inc
|
|
|
|
inherit python3-dir
|
|
|
|
DEPENDS = "protobuf-native"
|
|
RDEPENDS:${PN} += "python3-protobuf"
|
|
|
|
EXTRA_OECMAKE += " \
|
|
-Dnanopb_PYTHON_INSTDIR_OVERRIDE=${PYTHON_SITEPACKAGES_DIR} \
|
|
-Dnanopb_BUILD_RUNTIME=OFF \
|
|
-Dnanopb_BUILD_GENERATOR=ON \
|
|
"
|
|
|
|
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}"
|