Add EarlyModuleContext.BlueprintsFile
EarlyModuleContext already has ModuleDir, add BlueprintsFile too. Test: m checkbuild Change-Id: Ia9e0c724562e1461dfcd5e01f56ff8abbea2ac06
This commit is contained in:
parent
b6ebce2c23
commit
c03a50c49c
1 changed files with 8 additions and 0 deletions
|
@ -137,6 +137,10 @@ type EarlyModuleContext interface {
|
|||
// RegisterModuleType.
|
||||
ModuleType() string
|
||||
|
||||
// BlueprintFile returns the name of the blueprint file that contains the definition of this
|
||||
// module.
|
||||
BlueprintsFile() string
|
||||
|
||||
// Config returns the config object that was passed to Context.PrepareBuildActions.
|
||||
Config() interface{}
|
||||
|
||||
|
@ -351,6 +355,10 @@ func (d *baseModuleContext) ModuleDir() string {
|
|||
return filepath.Dir(d.module.relBlueprintsFile)
|
||||
}
|
||||
|
||||
func (d *baseModuleContext) BlueprintsFile() string {
|
||||
return d.module.relBlueprintsFile
|
||||
}
|
||||
|
||||
func (d *baseModuleContext) Config() interface{} {
|
||||
return d.config
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue