diff options
author | 2025-01-07 19:03:34 +0000 | |
---|---|---|
committer | 2025-01-08 23:28:12 +0000 | |
commit | 97880e1afa6b8749cb3bb67b85cd5c86a95d3519 (patch) | |
tree | f4c47893e483217c84fd4bae24854ac3ee95b8fb /android/module.go | |
parent | 8a8d5b4b1c714707faf2b9456099ac95fad74b7a (diff) |
Convert install and checkContainerViolations to use ModuleProxy.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: I19ec2142415e88d7486ee58613065f8cdb6aca73
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go index 8faaa9f3a..9ccc055c8 100644 --- a/android/module.go +++ b/android/module.go @@ -1883,6 +1883,7 @@ type CommonModuleInfo struct { UninstallableApexPlatformVariant bool HideFromMake bool SkipInstall bool + IsStubsModule bool } var CommonModuleInfoKey = blueprint.NewProvider[CommonModuleInfo]() @@ -2191,6 +2192,9 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext) commonData.NotAvailableForPlatform = am.NotAvailableForPlatform() commonData.NotInPlatform = am.NotInPlatform() } + if st, ok := m.module.(StubsAvailableModule); ok { + commonData.IsStubsModule = st.IsStubsModule() + } SetProvider(ctx, CommonModuleInfoKey, commonData) if p, ok := m.module.(PrebuiltInterface); ok && p.Prebuilt() != nil { SetProvider(ctx, PrebuiltModuleInfoProvider, PrebuiltModuleInfo{ |