diff options
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/android/module.go b/android/module.go index 85909b602..d2da576d5 100644 --- a/android/module.go +++ b/android/module.go @@ -2373,8 +2373,16 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext) }) } - if v, ok := m.module.(ModuleMakeVarsProvider); m.Enabled(ctx) && ok { - SetProvider(ctx, ModuleMakeVarsInfoProvider, v.MakeVars(ctx)) + if m.Enabled(ctx) { + if v, ok := m.module.(ModuleMakeVarsProvider); ok { + SetProvider(ctx, ModuleMakeVarsInfoProvider, v.MakeVars(ctx)) + } + + if am, ok := m.module.(AndroidMkDataProvider); ok { + SetProvider(ctx, AndroidMkDataInfoProvider, AndroidMkDataInfo{ + Class: am.AndroidMk().Class, + }) + } } } @@ -3163,14 +3171,6 @@ type IDEInfo interface { BaseModuleName() string } -// Extract the base module name from the Import name. -// Often the Import name has a prefix "prebuilt_". -// Remove the prefix explicitly if needed -// until we find a better solution to get the Import name. -type IDECustomizedModuleName interface { - IDECustomizedModuleName() string -} - // Collect information for opening IDE project files in java/jdeps.go. type IdeInfo struct { BaseModuleName string `json:"-"` |