diff options
author | 2025-02-26 23:39:20 +0000 | |
---|---|---|
committer | 2025-02-26 23:59:24 +0000 | |
commit | 71f1ea3f81feae294a3031799cd638c38610850e (patch) | |
tree | 8789f5835a3464960509903acbf698b5780371e6 /android/module.go | |
parent | e472c1dce304ca1e156e3270d104c552cc46ca2a (diff) |
Convert tidyPhonySingleton, jdepsGeneratorSingleton and
genNoticeBuildRules to use ModuleProxy.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: I7507a580e3533b01f552778a7815bcc43d301e23
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:"-"` |