Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1e844b8 authored by Ivan Lozano's avatar Ivan Lozano
Browse files

Generate deps file for rust_bindgen modules.

Bug: 162007475
Test: deps file generated containing the dependent header files.
Change-Id: I4abaf8e76875f7657c1b8386749217adcba1ffa2
parent 71c96d1e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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")
)