d5cf92e298
Previously, modules customized behavior around the handling of sourceOrOutputDependencyTag by comparing them to android.SourceDepTag and retrieving the module using something like this: ctx.GetDirectDepWithTag(m, android.SourceDepTag) The problem with that is it does not allow an output tag to be specified and does not handle fully qualified names properly. This adds the following: * IsSourceDepTag and IsSourceDepTagWithOutputTag to check whether a blueprint.DependencyTag is a sourceOrOutputDependencyTag. The latter also checks that it has the correct output tag. * GetModuleFromPathDep(ctx, moduleName, outputTag) as a replacement for ctx.GetDirectDepWithTag(m, android.SourceDepTag). Replaces usages of: * t == SourceDepTag with IsSourceDepTagWithOutputTag(t, "") * ctx.GetDirectDepWithTag(m, android.SourceDepTag) with GetModuleFromPathDep(ctx, m, "") It also deprecates the following: * android.SourcDepTag - as a follow up change needs to modify the sourceOrOutputDependencyTag will make this useless. * ExpandSources, ExpandsSources - copies existing deprecated messages from the implementation to the interface so that they can be seen by users of that interface. Bug: 193228441 Test: m nothing Change-Id: I8c397232b8d7dc1f9702c04ad45ea7819d4631ae |
||
---|---|---|
.. | ||
config | ||
Android.bp | ||
androidmk.go | ||
benchmark.go | ||
benchmark_test.go | ||
binary.go | ||
binary_test.go | ||
bindgen.go | ||
bindgen_test.go | ||
builder.go | ||
builder_test.go | ||
clippy.go | ||
clippy_test.go | ||
compiler.go | ||
compiler_test.go | ||
coverage.go | ||
coverage_test.go | ||
doc.go | ||
fuzz.go | ||
fuzz_test.go | ||
image.go | ||
image_test.go | ||
library.go | ||
library_test.go | ||
OWNERS | ||
prebuilt.go | ||
proc_macro.go | ||
project_json.go | ||
project_json_test.go | ||
protobuf.go | ||
protobuf_test.go | ||
rust.go | ||
rust_test.go | ||
sanitize.go | ||
snapshot_prebuilt.go | ||
snapshot_utils.go | ||
source_provider.go | ||
source_provider_test.go | ||
strip.go | ||
test.go | ||
test_test.go | ||
testing.go | ||
vendor_snapshot_test.go |