commit | 60498cb65400f90df941a2031e0bc285f18c1f9c | [log] [tgz] |
---|---|---|
author | Alexei Frolov <frolv@google.com> | Wed Sep 21 21:51:46 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 21 21:51:46 2022 +0000 |
tree | 8eeb51a88530bdaf0f0180c3b168c8b8a2aeb38a | |
parent | 566dda4bd355bd372547c356e2316130e5268036 [diff] |
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 <keir@google.com> Commit-Queue: Alexei Frolov <frolv@google.com> Reviewed-by: Brandon Vu <brandonvu@google.com> Reviewed-by: Wyatt Hepler <hepler@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/.