diff options
author | 2024-05-10 11:17:33 +0900 | |
---|---|---|
committer | 2024-05-10 14:03:04 +0900 | |
commit | 1fb7c3512989311818af83d6aee246f171907a05 (patch) | |
tree | cfdb1acd7bcd7e0b26cd5618b64d65b24bce719f /filesystem/filesystem_test.go | |
parent | ef5511ff77305d1e55e191a667706d1115f9486d (diff) |
Add SkipToTransitiveDepsTag interface for dependency tags
Consider this dependency graph:
A --> B --> C
And let's assume that B is built into A (e.g. static_libs), while B -->
C is a runtime dependency (e.g. required).
We want to install C (but not B of course) when A gets installed.
However, before this change, it was not supported because the dependency
A -> B was not tracked in computeInstallDeps. One had to explicitly add
a A -> C dependency.
This change fixes the problem by introducing the new interface
SkipToTransitiveDepsTag. computeInstallDeps uses it to decide whether to
take all install files and packaging specs or only those from transitive
dependencies. In the above example, if the dependency A --> B implements
the new interface and returns true, B's transitive dependencies (i.e. C)
are added into A's transitive dependencies. B's outputs are not added.
Bug: N/A
Test: go test ./... under soong/android
Change-Id: I3ca03a21633883f320ecb9e5bc82eb134519cd88
Diffstat (limited to 'filesystem/filesystem_test.go')
0 files changed, 0 insertions, 0 deletions