Files
build_soong/rust
Paul Duffin d5cf92e298 Support customizing behavior around sourceOrOutputDependencyTag
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
2021-07-09 23:54:01 +01:00
..
2021-06-03 08:36:09 -04:00
2021-01-26 09:09:06 -05:00
2021-04-27 17:12:02 -07:00
2020-08-13 15:58:09 +02:00
2021-04-07 15:04:10 +02:00
2021-01-15 19:44:07 +00:00
2021-04-16 13:38:01 -07:00
2021-04-13 15:58:44 -07:00
2021-05-01 00:55:42 -07:00
2021-06-03 08:36:09 -04:00
2020-06-26 09:23:47 +02:00
2021-04-16 13:38:01 -07:00
2020-11-19 20:02:34 +01:00
2021-06-03 08:36:09 -04:00