Merge "Experimental code to support build action caching." into main
This commit is contained in:
@@ -32,6 +32,7 @@ type AconfigReleaseConfigValue struct {
|
||||
type DeclarationsModule struct {
|
||||
android.ModuleBase
|
||||
android.DefaultableModuleBase
|
||||
blueprint.IncrementalModule
|
||||
|
||||
// Properties for "aconfig_declarations"
|
||||
properties struct {
|
||||
@@ -217,3 +218,17 @@ func (module *DeclarationsModule) GenerateAndroidBuildActions(ctx android.Module
|
||||
android.SetProvider(ctx, android.AconfigDeclarationsProviderKey, providerData[""])
|
||||
android.SetProvider(ctx, android.AconfigReleaseDeclarationsProviderKey, providerData)
|
||||
}
|
||||
|
||||
func (module *DeclarationsModule) BuildActionProviderKeys() []blueprint.AnyProviderKey {
|
||||
return []blueprint.AnyProviderKey{android.AconfigDeclarationsProviderKey}
|
||||
}
|
||||
|
||||
func (module *DeclarationsModule) PackageContextPath() string {
|
||||
return pkgPath
|
||||
}
|
||||
|
||||
func (module *DeclarationsModule) CachedRules() []blueprint.Rule {
|
||||
return []blueprint.Rule{aconfigRule, aconfigTextRule}
|
||||
}
|
||||
|
||||
var _ blueprint.Incremental = &DeclarationsModule{}
|
||||
|
Reference in New Issue
Block a user