Pass pctx and ctx to NewRuleBuilder
Enable the RuleBuilder and RuleBuilderCommand methods to access the BuilderContext by passing it to NewRuleBuilder instead of RuleBuilder.Build. Test: genrule_test.go Test: rule_builder_test.go Test: m checkbuild Change-Id: I63e6597e19167393876dc2259d6f521363b7dabc
This commit is contained in:
@@ -135,12 +135,12 @@ func (h *hiddenAPI) hiddenAPIGenerateCSV(ctx android.ModuleContext, flagsCSV, me
|
||||
})
|
||||
h.metadataCSVPath = metadataCSV
|
||||
|
||||
rule := android.NewRuleBuilder()
|
||||
rule := android.NewRuleBuilder(pctx, ctx)
|
||||
rule.Command().
|
||||
BuiltTool(ctx, "merge_csv").
|
||||
BuiltTool("merge_csv").
|
||||
FlagWithInput("--zip_input=", classesJar).
|
||||
FlagWithOutput("--output=", indexCSV)
|
||||
rule.Build(pctx, ctx, "merged-hiddenapi-index", "Merged Hidden API index")
|
||||
rule.Build("merged-hiddenapi-index", "Merged Hidden API index")
|
||||
h.indexCSVPath = indexCSV
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user