diff options
| author | 2022-11-03 20:38:01 -0700 | |
|---|---|---|
| committer | 2022-11-04 09:04:02 -0700 | |
| commit | 662d61430f51412fca8d304b8b4d30cf89524dad (patch) | |
| tree | 68e4d6d41e621a1183312873080c3955a928234b /java/java.go | |
| parent | 1265bfdfbd722249c1a4fff00699585bd53f074e (diff) | |
Make PackageVarContext implement PathGlobContext
Make PackageVarContext implement PathGlobContext by implementing
GlobWithDeps.  This will allow calls to ExistentPathForSource
inside a VariableFunc to use optimized glob dependencies instead of
falling back to AddNinjaFileDeps, which is resulting in extra
dependencies from soong_build on top level directories, triggering
extra Soong regenerations.
Remove the fallback path in ExistentPathForSource by making it take
a PathGlobContext, which is now a superset of PathContext.
Rewrite TestNinjaDeps to not rely on the unoptimized glob dependencies
in VariableFuncs and instead call ctx.Config().AddNinjaFileDeps
directly.
Bug: 257079828
Test: test_create_global_include_directory
Change-Id: I48cf189157d78b9252d339dbc9baeb27e4694807
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions