diff options
author | 2025-01-14 01:03:08 +0000 | |
---|---|---|
committer | 2025-01-15 20:54:26 +0000 | |
commit | c41eae5e45123a48fd3ec9a3723fdf7adbb6f148 (patch) | |
tree | 48472e3499925ef195176d14c2fb2732b4fef261 /android/module.go | |
parent | 39f5fb3db37a307081cd96d334feb6a7fcc7a7d7 (diff) |
Convert collectDirectDepsProviders, collectTransitiveSrcFiles and
r8Flags to use ModuleProxy.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: Ib3d45c317e1f2669808d0c785454fb8d8fb9cd3b
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/android/module.go b/android/module.go index 089f1271f..c88d04556 100644 --- a/android/module.go +++ b/android/module.go @@ -1850,7 +1850,7 @@ type SourceFilesInfo struct { Srcs Paths } -var SourceFilesInfoKey = blueprint.NewProvider[SourceFilesInfo]() +var SourceFilesInfoProvider = blueprint.NewProvider[SourceFilesInfo]() // FinalModuleBuildTargetsInfo is used by buildTargetSingleton to create checkbuild and // per-directory build targets. Only set on the final variant of each module @@ -2086,7 +2086,7 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext) } if sourceFileProducer, ok := m.module.(SourceFileProducer); ok { - SetProvider(ctx, SourceFilesInfoKey, SourceFilesInfo{Srcs: sourceFileProducer.Srcs()}) + SetProvider(ctx, SourceFilesInfoProvider, SourceFilesInfo{Srcs: sourceFileProducer.Srcs()}) } if ctx.IsFinalModule(m.module) { @@ -2798,7 +2798,7 @@ func outputFilesForModule(ctx PathContext, module Module, tag string) (Paths, er if sourceFileProducer, ok := module.(SourceFileProducer); ok { return sourceFileProducer.Srcs(), nil } - } else if sourceFiles, ok := OtherModuleProvider(octx, module, SourceFilesInfoKey); ok { + } else if sourceFiles, ok := OtherModuleProvider(octx, module, SourceFilesInfoProvider); ok { if tag != "" { return nil, fmt.Errorf("module %q is a SourceFileProducer, which does not support tag %q", pathContextName(ctx, module), tag) } |