Merge "Allow apex dependencies to be restricted to source modules only"
This commit is contained in:
11
apex/apex.go
11
apex/apex.go
@@ -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}
|
||||
|
Reference in New Issue
Block a user