Merge "Allow apex dependencies to be restricted to source modules only" am: c0a5ccbf3b am: 69f4244007

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1642107

Change-Id: I97bdc2f4f20f15bc72708f461eb05d9f2a2e597d
This commit is contained in:
Paul Duffin 2021-03-18 09:13:38 +00:00 committed by Automerger Merge Worker
commit 25703000a5
1 changed files with 11 additions and 0 deletions

View File

@ -549,8 +549,19 @@ type dependencyTag struct {
// Determines if the dependent will be part of the APEX payload. Can be false for the
// dependencies to the signing key module, etc.
payload bool
// True if the dependent can only be a source module, false if a prebuilt module is a suitable
// replacement. This is needed because some prebuilt modules do not provide all the information
// needed by the apex.
sourceOnly bool
}
func (d dependencyTag) ReplaceSourceWithPrebuilt() bool {
return !d.sourceOnly
}
var _ android.ReplaceSourceWithPrebuilt = &dependencyTag{}
var (
androidAppTag = dependencyTag{name: "androidApp", payload: true}
bpfTag = dependencyTag{name: "bpf", payload: true}