Generate deps file for rust_bindgen modules.

Bug: 162007475
Test: deps file generated containing the dependent header files.
Change-Id: I4abaf8e76875f7657c1b8386749217adcba1ffa2
This commit is contained in:
Ivan Lozano
2020-07-24 15:16:30 -04:00
parent 71c96d1e1d
commit e1e844b83c

View File

@@ -41,8 +41,10 @@ var (
bindgen = pctx.AndroidStaticRule("bindgen",
blueprint.RuleParams{
Command: "CLANG_PATH=$bindgenClang LIBCLANG_PATH=$bindgenLibClang RUSTFMT=${config.RustBin}/rustfmt " +
"$bindgenCmd $flags $in -o $out -- $cflags",
"$bindgenCmd $flags $in -o $out -- -MD -MF $out.d $cflags",
CommandDeps: []string{"$bindgenCmd"},
Deps: blueprint.DepsGCC,
Depfile: "$out.d",
},
"flags", "cflags")
)