summaryrefslogtreecommitdiff
path: root/android/writedocs.go
diff options
context:
space:
mode:
author Chris Parsons <cparsons@google.com> 2020-05-20 15:54:06 -0400
committer Chris Parsons <cparsons@google.com> 2020-06-18 12:06:37 -0400
commit67eee7cae4dc1085d016f47515e9e4b15ab3aba4 (patch)
tree179938dabc8616c85ba76182f359e955b513c4e8 /android/writedocs.go
parent1a1e1f882f648fe2a872a6ad6766555fdae90c3b (diff)
Add Android.bp.list and soong.variables to inputs for soong_docs action
While this is not a comprehensive list of all inputs of this action (as the action depends on all blueprint files in the source tree), this closer to the truth. Test: Manually verified ninja output, checkbuild approved validation for aosp-crosshatch Change-Id: I77a0f612afb025232bee7d3ac31257b808991829
Diffstat (limited to 'android/writedocs.go')
-rw-r--r--android/writedocs.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/writedocs.go b/android/writedocs.go
index 9e43e80a6..4eb15e61d 100644
--- a/android/writedocs.go
+++ b/android/writedocs.go
@@ -44,6 +44,10 @@ func primaryBuilderPath(ctx SingletonContext) Path {
}
func (c *docsSingleton) GenerateBuildActions(ctx SingletonContext) {
+ var deps Paths
+ deps = append(deps, pathForBuildToolDep(ctx, ctx.Config().moduleListFile))
+ deps = append(deps, pathForBuildToolDep(ctx, ctx.Config().ProductVariablesFileName))
+
// Generate build system docs for the primary builder. Generating docs reads the source
// files used to build the primary builder, but that dependency will be picked up through
// the dependency on the primary builder itself. There are no dependencies on the
@@ -63,6 +67,7 @@ func (c *docsSingleton) GenerateBuildActions(ctx SingletonContext) {
ctx.Build(pctx, BuildParams{
Rule: soongDocs,
Output: docsFile,
+ Inputs: deps,
Args: map[string]string{
"outDir": PathForOutput(ctx, "docs").String(),
},