Plumb through OtherModuleFarDependencyVariantExists from blueprint. am: 408ffd8cca
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1697061 Change-Id: I4ef78cd1d954c20e78136288d10c4f437f0b3570
This commit is contained in:
@@ -165,13 +165,20 @@ type BaseModuleContext interface {
|
|||||||
// OtherModuleDependencyVariantExists returns true if a module with the
|
// OtherModuleDependencyVariantExists returns true if a module with the
|
||||||
// specified name and variant exists. The variant must match the given
|
// specified name and variant exists. The variant must match the given
|
||||||
// variations. It must also match all the non-local variations of the current
|
// variations. It must also match all the non-local variations of the current
|
||||||
// module. In other words, it checks for the module AddVariationDependencies
|
// module. In other words, it checks for the module that AddVariationDependencies
|
||||||
// would add a dependency on with the same arguments.
|
// would add a dependency on with the same arguments.
|
||||||
OtherModuleDependencyVariantExists(variations []blueprint.Variation, name string) bool
|
OtherModuleDependencyVariantExists(variations []blueprint.Variation, name string) bool
|
||||||
|
|
||||||
|
// OtherModuleFarDependencyVariantExists returns true if a module with the
|
||||||
|
// specified name and variant exists. The variant must match the given
|
||||||
|
// variations, but not the non-local variations of the current module. In
|
||||||
|
// other words, it checks for the module that AddFarVariationDependencies
|
||||||
|
// would add a dependency on with the same arguments.
|
||||||
|
OtherModuleFarDependencyVariantExists(variations []blueprint.Variation, name string) bool
|
||||||
|
|
||||||
// OtherModuleReverseDependencyVariantExists returns true if a module with the
|
// OtherModuleReverseDependencyVariantExists returns true if a module with the
|
||||||
// specified name exists with the same variations as the current module. In
|
// specified name exists with the same variations as the current module. In
|
||||||
// other words, it checks for the module AddReverseDependency would add a
|
// other words, it checks for the module that AddReverseDependency would add a
|
||||||
// dependency on with the same argument.
|
// dependency on with the same argument.
|
||||||
OtherModuleReverseDependencyVariantExists(name string) bool
|
OtherModuleReverseDependencyVariantExists(name string) bool
|
||||||
|
|
||||||
@@ -2022,6 +2029,9 @@ func (b *baseModuleContext) OtherModuleExists(name string) bool { return b.bp.Ot
|
|||||||
func (b *baseModuleContext) OtherModuleDependencyVariantExists(variations []blueprint.Variation, name string) bool {
|
func (b *baseModuleContext) OtherModuleDependencyVariantExists(variations []blueprint.Variation, name string) bool {
|
||||||
return b.bp.OtherModuleDependencyVariantExists(variations, name)
|
return b.bp.OtherModuleDependencyVariantExists(variations, name)
|
||||||
}
|
}
|
||||||
|
func (b *baseModuleContext) OtherModuleFarDependencyVariantExists(variations []blueprint.Variation, name string) bool {
|
||||||
|
return b.bp.OtherModuleFarDependencyVariantExists(variations, name)
|
||||||
|
}
|
||||||
func (b *baseModuleContext) OtherModuleReverseDependencyVariantExists(name string) bool {
|
func (b *baseModuleContext) OtherModuleReverseDependencyVariantExists(name string) bool {
|
||||||
return b.bp.OtherModuleReverseDependencyVariantExists(name)
|
return b.bp.OtherModuleReverseDependencyVariantExists(name)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user