commit | ef447ae6f95cab0d4f6f74f4e356c14f212cb0bb | [log] [tgz] |
---|---|---|
author | Jonathon Reinhart <jrreinhart@google.com> | Tue Sep 12 07:16:11 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 12 07:16:11 2023 +0000 |
tree | e665a074b275ff8187aa0ae94048588b15b8b32f | |
parent | f9b10568994c1472c203ec56ac810f4ae112a499 [diff] |
pw_log: Update Android.bp to generate RPC header files This adds the following genrules to generate associated header files: * pw_log_log_rpc_pwpb_h: "pw_log/proto/log.rpc.pwpb.h" * pw_log_log_raw_rpc_h: "pw_log/proto/log.raw_rpc.pb.h" Note the following changes to the argument-passing pattern: * --out-dir and --compile-dir are set to $(genDir), no longer including the prefix. * --proto-path is passed for the input file, as required by protoc with the prior change. The result is that the generated RPC header files are able to correctly refer to the generated pw_log/proto/log.pwpb.h header file, including the directory prefix. This also updates the pw_log_log_proto_pwpb_h genrule to match. Test: Verify that the existing log.pwpb.h is unmoved and unchanged. Test: Verify that the new "pw_log/proto/log.rpc.pwpb.h" and "pw_log/proto/log.raw_rpc.pb.h" can be included in an Android project. Bug: 298693458 Change-Id: I6a46b0d96101b81cc5819ce1e0686299b26dfbae Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/169530 Reviewed-by: Matt Stokes <matthewbstokes@google.com> Reviewed-by: Austin Foxley <afoxley@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Carlos Chinchilla <cachinchilla@google.com> Pigweed-Auto-Submit: Jonathon Reinhart <jrreinhart@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.