meta-heipc (pronounced "hype C") is a personal passion project born of the idea to make usage of grpc in your yocto distro super easy.
The setup is very easy, you just need to inherit the heipc class and set HEIPC_PROTO_LOCATION.
inherit heipc
HEIPC_PROTO_LOCATION = "${S}/src/greeter.proto"There is also an example heipc server implementation /recipes-examples/heipc-cpp-server/
With heipc, your recipe will build a lot of extra packages you can use:
${PN}-lib-python: A python client library installed into your site-packages. The resulting package name for python imports is<PN>_grpc_client, where all-are replaced with_.${PN}-lib-cpp: Currently only C++17 and higher is supported.nativesdk-${PN}-lib-python: Generates the nativesdk used forTOOLCHAIN_HOST_TASKSto add the python library to the sdk. Keep in mind that this will also add the prefixnativesdk_to the python library, so it could mean that this needs handling if trying to develop clients locally.
The location where after the fetch the proto file will be stored at.
Note that
heipcwill use its own directories, therefore this should be an absolute path (e.g.${S}/src/service.proto).