Merge "Use turbine's native source jar support"
This commit is contained in:
commit
0343d020b3
1 changed files with 3 additions and 7 deletions
|
@ -104,10 +104,9 @@ var (
|
||||||
|
|
||||||
turbine = pctx.AndroidStaticRule("turbine",
|
turbine = pctx.AndroidStaticRule("turbine",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
Command: `rm -rf "$outDir" "$srcJarDir" && mkdir -p "$outDir" "$srcJarDir" && ` +
|
Command: `rm -rf "$outDir" && mkdir -p "$outDir" && ` +
|
||||||
`${config.ExtractSrcJarsCmd} $srcJarDir $srcJarDir/list $srcJars && ` +
|
|
||||||
`${config.JavaCmd} -jar ${config.TurbineJar} --output $out.tmp ` +
|
`${config.JavaCmd} -jar ${config.TurbineJar} --output $out.tmp ` +
|
||||||
`--temp_dir "$outDir" --sources @$out.rsp @$srcJarDir/list ` +
|
`--temp_dir "$outDir" --sources @$out.rsp --source_jars $srcJars ` +
|
||||||
`--javacopts ${config.CommonJdkFlags} ` +
|
`--javacopts ${config.CommonJdkFlags} ` +
|
||||||
`$javacFlags -source $javaVersion -target $javaVersion $bootClasspath $classpath && ` +
|
`$javacFlags -source $javaVersion -target $javaVersion $bootClasspath $classpath && ` +
|
||||||
`${config.Ziptime} $out.tmp && ` +
|
`${config.Ziptime} $out.tmp && ` +
|
||||||
|
@ -116,14 +115,12 @@ var (
|
||||||
"${config.TurbineJar}",
|
"${config.TurbineJar}",
|
||||||
"${config.JavaCmd}",
|
"${config.JavaCmd}",
|
||||||
"${config.Ziptime}",
|
"${config.Ziptime}",
|
||||||
"${config.ExtractSrcJarsCmd}",
|
|
||||||
},
|
},
|
||||||
Rspfile: "$out.rsp",
|
Rspfile: "$out.rsp",
|
||||||
RspfileContent: "$in",
|
RspfileContent: "$in",
|
||||||
Restat: true,
|
Restat: true,
|
||||||
},
|
},
|
||||||
"javacFlags", "bootClasspath", "classpath", "srcJars", "srcJarDir",
|
"javacFlags", "bootClasspath", "classpath", "srcJars", "outDir", "javaVersion")
|
||||||
"outDir", "javaVersion")
|
|
||||||
|
|
||||||
jar = pctx.AndroidStaticRule("jar",
|
jar = pctx.AndroidStaticRule("jar",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
|
@ -258,7 +255,6 @@ func TransformJavaToHeaderClasses(ctx android.ModuleContext, outputFile android.
|
||||||
"javacFlags": flags.javacFlags,
|
"javacFlags": flags.javacFlags,
|
||||||
"bootClasspath": bootClasspath,
|
"bootClasspath": bootClasspath,
|
||||||
"srcJars": strings.Join(srcJars.Strings(), " "),
|
"srcJars": strings.Join(srcJars.Strings(), " "),
|
||||||
"srcJarDir": android.PathForModuleOut(ctx, "turbine", "srcjars").String(),
|
|
||||||
"classpath": flags.classpath.FormJavaClassPath("--classpath"),
|
"classpath": flags.classpath.FormJavaClassPath("--classpath"),
|
||||||
"outDir": android.PathForModuleOut(ctx, "turbine", "classes").String(),
|
"outDir": android.PathForModuleOut(ctx, "turbine", "classes").String(),
|
||||||
"javaVersion": flags.javaVersion,
|
"javaVersion": flags.javaVersion,
|
||||||
|
|
Loading…
Reference in a new issue