Validate aconfig libs are built with the correct modes.
Bug: 323071835 Test: Unit tests and manual tests. Change-Id: I32de90826c7c8bb4d8495608e959d554820ab9a2
This commit is contained in:
@@ -85,6 +85,15 @@ func (a *aconfigDecorator) GenerateSource(ctx rust.ModuleContext, deps rust.Path
|
||||
},
|
||||
})
|
||||
a.BaseSourceProvider.OutputFiles = android.Paths{generatedSource}
|
||||
|
||||
android.SetProvider(ctx, android.CodegenInfoProvider, android.CodegenInfo{
|
||||
ModeInfos: map[string]android.ModeInfo{
|
||||
ctx.ModuleName(): {
|
||||
Container: declarations.Container,
|
||||
Mode: mode,
|
||||
}},
|
||||
})
|
||||
|
||||
return generatedSource
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user