diff options
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go index bbdeb2733..f805acdf5 100644 --- a/android/module.go +++ b/android/module.go @@ -331,6 +331,8 @@ type BaseContext interface { type ModuleContext interface { BaseModuleContext + blueprintModuleContext() blueprint.ModuleContext + // Deprecated: use ModuleContext.Build instead. ModuleBuild(pctx PackageContext, params ModuleBuildParams) @@ -2544,6 +2546,10 @@ func (m *moduleContext) CheckbuildFile(srcPath Path) { m.checkbuildFiles = append(m.checkbuildFiles, srcPath) } +func (m *moduleContext) blueprintModuleContext() blueprint.ModuleContext { + return m.bp +} + // SrcIsModule decodes module references in the format ":name" into the module name, or empty string if the input // was not a module reference. func SrcIsModule(s string) (module string) { |