summaryrefslogtreecommitdiff
path: root/cmd/soong_build/queryview.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2023-04-27 17:15:02 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-04-27 17:15:02 +0000
commit3e0836e86544191ef8252d5d4ad8e03c84ef931c (patch)
tree41ad4167a93b3f4cc0cd2e667d778043b4eb0305 /cmd/soong_build/queryview.go
parenteb52c2e7695935bbb46a3212a70c7911c24e9777 (diff)
parentc9508aac4ccc605d90be2c92c4e4c46db45377fc (diff)
Merge "Load starlark files from soong"
Diffstat (limited to 'cmd/soong_build/queryview.go')
-rw-r--r--cmd/soong_build/queryview.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/soong_build/queryview.go b/cmd/soong_build/queryview.go
index ce3218498..67cb6cfc8 100644
--- a/cmd/soong_build/queryview.go
+++ b/cmd/soong_build/queryview.go
@@ -15,6 +15,7 @@
package main
import (
+ "android/soong/starlark_import"
"io/fs"
"io/ioutil"
"os"
@@ -47,6 +48,14 @@ func createBazelWorkspace(ctx *bp2build.CodegenContext, outDir string, generateF
}
}
+ // Add starlark deps here, so that they apply to both queryview and apibp2build which
+ // both run this function.
+ starlarkDeps, err2 := starlark_import.GetNinjaDeps()
+ if err2 != nil {
+ return err2
+ }
+ ctx.AddNinjaFileDeps(starlarkDeps...)
+
return nil
}