*RequiredModuleNames functions are available via Module interface
...so that the required module names can be known to other modules Bug: N/A Test: m Change-Id: Ib032b51c4ea4fd77bdebcf09b2d1c2aec1c8eb27
This commit is contained in:
@@ -221,6 +221,10 @@ type Module interface {
|
|||||||
|
|
||||||
// Get the visibility rules that control the visibility of this module.
|
// Get the visibility rules that control the visibility of this module.
|
||||||
visibility() []string
|
visibility() []string
|
||||||
|
|
||||||
|
RequiredModuleNames() []string
|
||||||
|
HostRequiredModuleNames() []string
|
||||||
|
TargetRequiredModuleNames() []string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Qualified id for a module
|
// Qualified id for a module
|
||||||
@@ -887,6 +891,18 @@ func (m *ModuleBase) InRecovery() bool {
|
|||||||
return m.base().commonProperties.ImageVariation == RecoveryVariation
|
return m.base().commonProperties.ImageVariation == RecoveryVariation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *ModuleBase) RequiredModuleNames() []string {
|
||||||
|
return m.base().commonProperties.Required
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ModuleBase) HostRequiredModuleNames() []string {
|
||||||
|
return m.base().commonProperties.Host_required
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *ModuleBase) TargetRequiredModuleNames() []string {
|
||||||
|
return m.base().commonProperties.Target_required
|
||||||
|
}
|
||||||
|
|
||||||
func (m *ModuleBase) generateModuleTarget(ctx ModuleContext) {
|
func (m *ModuleBase) generateModuleTarget(ctx ModuleContext) {
|
||||||
allInstalledFiles := Paths{}
|
allInstalledFiles := Paths{}
|
||||||
allCheckbuildFiles := Paths{}
|
allCheckbuildFiles := Paths{}
|
||||||
@@ -1877,15 +1893,15 @@ func (m *moduleContext) ExpandOptionalSource(srcFile *string, prop string) Optio
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (m *moduleContext) RequiredModuleNames() []string {
|
func (m *moduleContext) RequiredModuleNames() []string {
|
||||||
return m.module.base().commonProperties.Required
|
return m.module.RequiredModuleNames()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *moduleContext) HostRequiredModuleNames() []string {
|
func (m *moduleContext) HostRequiredModuleNames() []string {
|
||||||
return m.module.base().commonProperties.Host_required
|
return m.module.HostRequiredModuleNames()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *moduleContext) TargetRequiredModuleNames() []string {
|
func (m *moduleContext) TargetRequiredModuleNames() []string {
|
||||||
return m.module.base().commonProperties.Target_required
|
return m.module.TargetRequiredModuleNames()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *baseModuleContext) Glob(globPattern string, excludes []string) Paths {
|
func (b *baseModuleContext) Glob(globPattern string, excludes []string) Paths {
|
||||||
|
Reference in New Issue
Block a user