Merge "Use a timestamp file for preprocessed_ndk_headers."
This commit is contained in:
@@ -27,11 +27,13 @@ import (
|
|||||||
var (
|
var (
|
||||||
preprocessBionicHeaders = pctx.AndroidStaticRule("preprocessBionicHeaders",
|
preprocessBionicHeaders = pctx.AndroidStaticRule("preprocessBionicHeaders",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
Command: "$versionerCmd -o $out $srcDir $depsPath",
|
// The `&& touch $out` isn't really necessary, but Blueprint won't
|
||||||
|
// let us have only implicit outputs.
|
||||||
|
Command: "$versionerCmd -o $outDir $srcDir $depsPath && touch $out",
|
||||||
CommandDeps: []string{"$versionerCmd"},
|
CommandDeps: []string{"$versionerCmd"},
|
||||||
Description: "versioner preprocess $in",
|
Description: "versioner preprocess $in",
|
||||||
},
|
},
|
||||||
"depsPath", "srcDir")
|
"depsPath", "srcDir", "outDir")
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -229,14 +231,16 @@ func (m *preprocessedHeaderModule) GenerateAndroidBuildActions(ctx android.Modul
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timestampFile := android.PathForModuleOut(ctx, "versioner.timestamp")
|
||||||
ctx.ModuleBuild(pctx, android.ModuleBuildParams{
|
ctx.ModuleBuild(pctx, android.ModuleBuildParams{
|
||||||
Rule: preprocessBionicHeaders,
|
Rule: preprocessBionicHeaders,
|
||||||
Output: toOutputPath,
|
Output: timestampFile,
|
||||||
Implicits: append(srcFiles, depsGlob...),
|
Implicits: append(srcFiles, depsGlob...),
|
||||||
ImplicitOutputs: installPaths,
|
ImplicitOutputs: installPaths,
|
||||||
Args: map[string]string{
|
Args: map[string]string{
|
||||||
"depsPath": depsPath.String(),
|
"depsPath": depsPath.String(),
|
||||||
"srcDir": fromSrcPath.String(),
|
"srcDir": fromSrcPath.String(),
|
||||||
|
"outDir": toOutputPath.String(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user