aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiakai Zhang <jiakaiz@google.com>2021-11-20 04:51:45 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-20 04:51:45 +0000
commit64ab3d0a10be38329ca243836ff5f462b589a303 (patch)
tree7a6f60028cc2ab0c81599ecd8b90784ac63b2914
parentd402088bf5183d433aaf271b20f1187e1c64fe98 (diff)
parent22b810849b13e2c871429d803b76abc1f73e4f42 (diff)
downloadxsdc-64ab3d0a10be38329ca243836ff5f462b589a303.tar.gz
Add the `.xsd` file to the output files of the `xsd_config` module. am: 5c3e714b32 am: 22b810849b
Original change: https://android-review.googlesource.com/c/platform/system/tools/xsdc/+/1895323 Change-Id: If452f78a0ecf692c5e47806e202b33fa36e57289
-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