Add RuleBuilder.Installs().String()
Add a RuleBuilderInstalls type for a slice of RuleBuilderInstalls, and give it a String() method that returns the list of installs in the format that is convenient for passing to Make. Test: rule_builder_test.go Change-Id: I2e9cd9abf4dfb0ad312d0a6662f1567baf9cd222
This commit is contained in:
@@ -28,7 +28,7 @@ type dexpreopter struct {
|
||||
isTest bool
|
||||
isInstallable bool
|
||||
|
||||
builtInstalled []string
|
||||
builtInstalled string
|
||||
}
|
||||
|
||||
type DexpreoptProperties struct {
|
||||
@@ -196,9 +196,7 @@ func (d *dexpreopter) dexpreopt(ctx android.ModuleContext, dexJarFile android.Mo
|
||||
|
||||
dexpreoptRule.Build(pctx, ctx, "dexpreopt", "dexpreopt")
|
||||
|
||||
for _, install := range dexpreoptRule.Installs() {
|
||||
d.builtInstalled = append(d.builtInstalled, install.From+":"+install.To)
|
||||
}
|
||||
d.builtInstalled = dexpreoptRule.Installs().String()
|
||||
|
||||
stripRule, err := dexpreopt.GenerateStripRule(globalConfig, dexpreoptConfig)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user