Merge "Run dep_fixer for java too"

This commit is contained in:
Treehugger Robot
2018-05-17 18:59:47 +00:00
committed by Gerrit Code Review

View File

@@ -24,6 +24,7 @@ import (
func init() { func init() {
pctx.HostBinToolVariable("protocCmd", "aprotoc") pctx.HostBinToolVariable("protocCmd", "aprotoc")
pctx.HostBinToolVariable("depFixCmd", "dep_fixer")
} }
var ( var (
@@ -31,9 +32,11 @@ var (
blueprint.RuleParams{ blueprint.RuleParams{
Command: `rm -rf $out.tmp && mkdir -p $out.tmp && ` + Command: `rm -rf $out.tmp && mkdir -p $out.tmp && ` +
`$protocCmd $protoOut=$protoOutParams:$out.tmp --dependency_out=$out.d -I $protoBase $protoFlags $in && ` + `$protocCmd $protoOut=$protoOutParams:$out.tmp --dependency_out=$out.d -I $protoBase $protoFlags $in && ` +
`$depFixCmd $out.d && ` +
`${config.SoongZipCmd} -jar -o $out -C $out.tmp -D $out.tmp && rm -rf $out.tmp`, `${config.SoongZipCmd} -jar -o $out -C $out.tmp -D $out.tmp && rm -rf $out.tmp`,
CommandDeps: []string{ CommandDeps: []string{
"$protocCmd", "$protocCmd",
"$depFixCmd",
"${config.SoongZipCmd}", "${config.SoongZipCmd}",
}, },
Depfile: "${out}.d", Depfile: "${out}.d",