Add support for remote-execution / caching of jar/zip actions
Test: Ran a build with `RBE_JAR="true" RBE_JAR_EXEC_STRATEGY="remote" RBE_ZIP="true" RBE_ZIP_EXEC_STRATEGY="remote" ... use_rbe m` and that succeeded. Bug: b/156765207 Change-Id: Ia17b532fbb282be414adf879914870082dd0841b
This commit is contained in:
@@ -232,14 +232,20 @@ func TransformJniLibsToJar(ctx android.ModuleContext, outputFile android.Writabl
|
||||
"-f", j.path.String())
|
||||
}
|
||||
|
||||
rule := zip
|
||||
args := map[string]string{
|
||||
"jarArgs": strings.Join(proptools.NinjaAndShellEscapeList(jarArgs), " "),
|
||||
}
|
||||
if ctx.Config().IsEnvTrue("RBE_ZIP") {
|
||||
rule = zipRE
|
||||
args["implicits"] = strings.Join(deps.Strings(), ",")
|
||||
}
|
||||
ctx.Build(pctx, android.BuildParams{
|
||||
Rule: zip,
|
||||
Rule: rule,
|
||||
Description: "zip jni libs",
|
||||
Output: outputFile,
|
||||
Implicits: deps,
|
||||
Args: map[string]string{
|
||||
"jarArgs": strings.Join(proptools.NinjaAndShellEscapeList(jarArgs), " "),
|
||||
},
|
||||
Args: args,
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user