summaryrefslogtreecommitdiff
path: root/rust/rust_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-04-07 15:25:44 +0100
committer Paul Duffin <paulduffin@google.com> 2020-04-08 08:40:44 +0100
commitdddd5469adce075b2f2f4b835f19bad533399ceb (patch)
tree4a43df9bca23c25a10101b86f4787161890b456d /rust/rust_test.go
parent6534770793b05328a7ad18130203eb471a715c02 (diff)
Ignore PrebuiltDepTag when processing APEX contents
When a source and a prebuilt module are present in the same build a dependency is added from the source module to the prebuilt module. Previously, the code for generating the APEX did not recognize that tag and in some cases (e.g. for cc_(prebuilt_)library_shared) will fail the build. This change: 1) Adds a test to reproduce the problem. 2) Improves the debug message by pretty printing the tag. 3) Adds a new ExcludeFromApexContents interface that can be implemented by a tag to declare that it should be excluded from the APEX contents. 4) Ignores tags that implement that interface when generating APEX contents. 5) Implements that interface on prebuiltDependencyTag to fix the test. Bug: 153326844 Test: m nothing Change-Id: I9dd4312c4f995c816c0a31d8d733eb5d7f56e1ea
Diffstat (limited to 'rust/rust_test.go')
0 files changed, 0 insertions, 0 deletions