summaryrefslogtreecommitdiff
path: root/android/writedocs.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/writedocs.go')
-rw-r--r--android/writedocs.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/android/writedocs.go b/android/writedocs.go
index 4eb15e61d..91c2318f1 100644
--- a/android/writedocs.go
+++ b/android/writedocs.go
@@ -48,6 +48,13 @@ func (c *docsSingleton) GenerateBuildActions(ctx SingletonContext) {
deps = append(deps, pathForBuildToolDep(ctx, ctx.Config().moduleListFile))
deps = append(deps, pathForBuildToolDep(ctx, ctx.Config().ProductVariablesFileName))
+ // The dexpreopt configuration may not exist, but if it does, it's a dependency
+ // of soong_build.
+ dexpreoptConfigPath := ctx.Config().DexpreoptGlobalConfigPath(ctx)
+ if dexpreoptConfigPath.Valid() {
+ deps = append(deps, dexpreoptConfigPath.Path())
+ }
+
// 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