aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiakai Zhang <jiakaiz@google.com>2021-11-20 04:38:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-20 04:38:17 +0000
commit22b810849b13e2c871429d803b76abc1f73e4f42 (patch)
tree7a6f60028cc2ab0c81599ecd8b90784ac63b2914
parentc759b8236cdd849a4abc2d4fdce5ae00ff896d25 (diff)
parent5c3e714b327d8745285090fb5ee7491439bb9e36 (diff)
downloadxsdc-22b810849b13e2c871429d803b76abc1f73e4f42.tar.gz
Original change: https://android-review.googlesource.com/c/platform/system/tools/xsdc/+/1895323 Change-Id: I548824bb08591fd39aaed0c71bc45c760c754e8c
-rw-r--r--build/xsdc.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/xsdc.go b/build/xsdc.go
index 698008c..f92ba28 100644
--- a/build/xsdc.go
+++ b/build/xsdc.go
@@ -101,7 +101,7 @@ type xsdConfig struct {
docsPath android.Path
xsdConfigPath android.OptionalPath
- genOutputs android.Paths
+ genOutputs android.WritablePaths
}
var _ android.SourceFileProducer = (*xsdConfig)(nil)
@@ -132,7 +132,10 @@ func (module *xsdConfig) GeneratedSourceFiles() android.Paths {
}
func (module *xsdConfig) Srcs() android.Paths {
- return append(module.genOutputs, module.genOutputs_j)
+ var srcs android.WritablePaths
+ srcs = append(srcs, module.genOutputs...)
+ srcs = append(srcs, module.genOutputs_j)
+ return srcs.Paths()
}
func (module *xsdConfig) GeneratedDeps() android.Paths {
@@ -314,6 +317,7 @@ func (module *xsdConfig) OutputFiles(tag string) (android.Paths, error) {
outputs = append(outputs, module.genOutputs_j)
outputs = append(outputs, module.genOutputs_c...)
outputs = append(outputs, module.genOutputs_h...)
+ outputs = append(outputs, module.genOutputs...)
return outputs.Paths(), nil
case "java":
return android.Paths{module.genOutputs_j}, nil