platform_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
..
config rust: Add missing Rust allow path modules. 2021-06-28 11:59:07 -04:00
Android.bp Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00
androidmk.go Add support for packaging rust fuzzers 2021-05-01 00:55:42 -07:00
benchmark.go Attach rust_benchmark to atest and tradefed. 2021-04-06 12:40:34 +02:00
benchmark_test.go Add rust_benchmark module to soong. 2021-04-06 12:40:32 +02:00
binary.go Remove IsDependencyRoot from interface 2021-07-07 16:29:09 -04:00
binary_test.go Rust: abort on panic 2021-01-26 09:09:06 -05:00
bindgen.go Merge "rust: Pass additional Clang C flags from toolchain" 2021-04-23 18:13:10 +00:00
bindgen_test.go rust: Add header library support to rust_bindgen. 2020-11-17 13:40:50 -05:00
builder.go Generate rustdoc index. 2021-04-27 17:12:02 -07:00
builder_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
clippy.go rust: modify linting properties 2020-08-13 15:58:09 +02:00
clippy_test.go Convert remaining rust tests to use test fixtures 2021-03-30 22:45:21 +01:00
compiler.go Remove IsDependencyRoot from interface 2021-07-07 16:29:09 -04:00
compiler_test.go rust: Add cfgs property 2021-04-07 15:04:10 +02:00
coverage.go Migrate Rust to LLVM coverage. 2021-01-15 19:44:07 +00:00
coverage_test.go Migrate Rust to LLVM coverage. 2021-01-15 19:44:07 +00:00
doc.go Rustdoc support. 2021-04-16 13:38:01 -07:00
fuzz.go Add support for packaging rust fuzzers 2021-05-01 00:55:42 -07:00
fuzz_test.go rust: Switch rust_fuzz to HWASan 2021-04-13 15:58:44 -07:00
image.go Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00
image_test.go Add more Rust vendor image support. 2021-04-13 13:17:12 -04:00
library.go Only store what's used in SharedLibraryInfo 2021-06-08 16:44:23 -04:00
library_test.go Move prefer_rlib from binary to base compiler. 2020-12-09 09:55:12 -05:00
OWNERS Add Matt to OWNERS for Rust 2020-06-26 09:23:47 +02:00
prebuilt.go Rustdoc support. 2021-04-16 13:38:01 -07:00
proc_macro.go Refactor vendor snapshot to use LinkableInterface. 2021-05-12 14:01:10 -04:00
project_json.go rust: Add features list to rust_project.json 2021-03-25 09:59:49 +01:00
project_json_test.go Remove FixturePreparer.Extend() 2021-04-01 10:33:20 +01:00
protobuf.go Merge rust_protobuf and rust_grpcio module types. 2020-12-11 16:19:02 -05:00
protobuf_test.go Support test fixtures in rust package 2021-03-23 18:47:15 +00:00
rust.go Support customizing behavior around sourceOrOutputDependencyTag 2021-07-09 23:54:01 +01:00
rust_test.go Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00
sanitize.go Refactor vendor snapshot to use LinkableInterface. 2021-05-12 14:01:10 -04:00
snapshot_prebuilt.go Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00
snapshot_utils.go Include static lib information for the snapshot modules 2021-07-01 11:42:28 +00:00
source_provider.go rust: Add support for multiple protos per module. 2020-11-30 14:55:00 +00:00
source_provider_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
strip.go Add comments to {cc,rust}/strip.go 2020-11-19 20:02:34 +01:00
test.go Merge "Changing default of rust_test_host to unit_tests:true" 2021-02-10 00:07:49 +00:00
test_test.go rust: Allow rust_tests to include data files. 2021-01-29 14:31:32 -05:00
testing.go Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00
vendor_snapshot_test.go Rust rlib vendor snapshot support. 2021-06-03 08:36:09 -04:00