|author||Alexei Frolov <firstname.lastname@example.org>||Wed Sep 21 21:51:46 2022 +0000|
|committer||CQ Bot Account <email@example.com>||Wed Sep 21 21:51:46 2022 +0000|
pw_build: GN template to evaluate expressions in a file Pigweed's GN build wraps all invocations of a Python script with a Python runner. One of the runner's main purposes is to determine the binary outputs of GN libraries and executables, as this information is not available through GN itself. Sometimes, it is cumbersome or unfeasible to pass information to a script through its command line arguments. Instead, the necessary data is often written to a file for the script to parse. However, doing so from within GN bypasses Pigweed's Python runner binary resolution. `bloat.py` is an example of this -- it needed to import and run the resolution logic itself. This adds a template which runs GN binary resolution on files, enabling the above use case more generally through the build system. Change-Id: I70ca6e33e974f4b73e723295997c6197b0e91e43 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/108990 Reviewed-by: Keir Mierle <firstname.lastname@example.org> Commit-Queue: Alexei Frolov <email@example.com> Reviewed-by: Brandon Vu <firstname.lastname@example.org> Reviewed-by: Wyatt Hepler <email@example.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/.