diff options
| author | 2023-04-27 17:15:02 +0000 | |
|---|---|---|
| committer | 2023-04-27 17:15:02 +0000 | |
| commit | 3e0836e86544191ef8252d5d4ad8e03c84ef931c (patch) | |
| tree | 41ad4167a93b3f4cc0cd2e667d778043b4eb0305 /cmd/soong_build/queryview.go | |
| parent | eb52c2e7695935bbb46a3212a70c7911c24e9777 (diff) | |
| parent | c9508aac4ccc605d90be2c92c4e4c46db45377fc (diff) | |
Merge "Load starlark files from soong"
Diffstat (limited to 'cmd/soong_build/queryview.go')
| -rw-r--r-- | cmd/soong_build/queryview.go | 9 |
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 } |