Mark queryview as experimental in the Ninja description.

Test: m queryview
Signed-off-by: Jingwen Chen <jingwen@google.com>
Change-Id: I08cd5175416013c13ad150885bb918342e79fcff
This commit is contained in:
Jingwen Chen 2020-11-09 08:22:25 -05:00
parent 8024c95ecc
commit b05d62f584
1 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,7 @@ import (
// The Bazel QueryView singleton is responsible for generating the Ninja actions
// for calling the soong_build primary builder in the main build.ninja file.
func init() {
RegisterSingletonType("bazel_queryView", BazelQueryViewSingleton)
RegisterSingletonType("bazel_queryview", BazelQueryViewSingleton)
}
func BazelQueryViewSingleton() Singleton {
@ -48,14 +48,16 @@ func (c *bazelQueryViewSingleton) GenerateBuildActions(ctx SingletonContext) {
bazelQueryView := ctx.Rule(pctx, "bazelQueryView",
blueprint.RuleParams{
Command: fmt.Sprintf(
"rm -rf ${outDir}/* && %s --bazel_queryview_dir ${outDir} %s && echo WORKSPACE: `cat %s` > ${outDir}/.queryview-depfile.d",
"rm -rf ${outDir}/* && "+
"%s --bazel_queryview_dir ${outDir} %s && "+
"echo WORKSPACE: `cat %s` > ${outDir}/.queryview-depfile.d",
primaryBuilder.String(),
strings.Join(os.Args[1:], " "),
moduleListFilePath.String(), // Use the contents of Android.bp.list as the depfile.
),
CommandDeps: []string{primaryBuilder.String()},
Description: fmt.Sprintf(
"Creating the Bazel QueryView workspace with %s at $outDir",
"[EXPERIMENTAL] Creating the Bazel QueryView workspace with %s at $outDir",
primaryBuilder.Base()),
Deps: blueprint.DepsGCC,
Depfile: "${outDir}/.queryview-depfile.d",