commit | 2f95ec70316c4bf41f4a4641a3237329deeb75be | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Fri Jan 10 13:47:35 2020 -0800 |
committer | Colin Cross <ccross@android.com> | Fri Jan 10 13:52:22 2020 -0800 |
tree | db7e6105703019e1a93903c0e77643a60b3360ca | |
parent | 5e8efd5f0852d3dad074efe63463fb334464f3c3 [diff] |
Fix reading absolute paths through OsFs OsFs may be asked to read absolute paths if buildDir is absolute. Check if the path is absolute before prepending srcDir to it. Bug: 146437378 Test: fs_test.go Change-Id: I2a67593e9d836ca3e11dc10b81f49a4fb49d2cdf
Blueprint is a meta-build system that reads in Blueprints files that describe modules that need to be built, and produces a Ninja manifest describing the commands that need to be run and their dependencies. Where most build systems use built-in rules or a domain-specific language to describe the logic for converting module descriptions to build rules, Blueprint delegates this to per-project build logic written in Go. For large, heterogenous projects this allows the inherent complexity of the build logic to be maintained in a high-level language, while still allowing simple changes to individual modules by modifying easy to understand Blueprints files.