diff options
author | 2024-12-05 18:57:51 +0000 | |
---|---|---|
committer | 2024-12-05 23:30:18 +0000 | |
commit | b1bfa9d6bd1a37f6102c44240f6a2b56fa2d0c02 (patch) | |
tree | e427b3497709d00baf26e8c46614cb6d2795ce74 /android/module.go | |
parent | dfc9a97e9063b502b70c9c6b72f6cbc176573884 (diff) |
Convert checkStaticLinkingToStubLibraries to use module proxy.
Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: Id776727a431f2ce8fd4c7b352dc0bd282ac57f90
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go index d703c1927..a9f6b9402 100644 --- a/android/module.go +++ b/android/module.go @@ -1870,6 +1870,7 @@ type CommonModuleInfo struct { CompileTarget Target SkipAndroidMkProcessing bool BaseModuleName string + CanHaveApexVariants bool } var CommonModuleInfoKey = blueprint.NewProvider[CommonModuleInfo]() @@ -2145,6 +2146,8 @@ func (m *ModuleBase) GenerateBuildActions(blueprintCtx blueprint.ModuleContext) } else { commonData.Enabled = m.commonProperties.Enabled.GetOrDefault(m.ConfigurableEvaluator(ctx), !m.Os().DefaultDisabled) } + am, ok := m.module.(ApexModule) + commonData.CanHaveApexVariants = ok && am.CanHaveApexVariants() SetProvider(ctx, CommonModuleInfoKey, commonData) if p, ok := m.module.(PrebuiltInterface); ok && p.Prebuilt() != nil { SetProvider(ctx, PrebuiltModuleProviderKey, PrebuiltModuleProviderData{}) |