diff options
author | Jiakai Zhang <jiakaiz@google.com> | 2021-11-20 05:20:16 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-20 05:20:16 +0000 |
commit | ec667508fa0e0f959d5a1f8794827c8507685729 (patch) | |
tree | 7a6f60028cc2ab0c81599ecd8b90784ac63b2914 | |
parent | b8892e5377d8852e0f667982e8b51fb5c08a86a8 (diff) | |
parent | ae8e8a1a6294255ec4e4d2f81d0f93b180ffd698 (diff) | |
download | xsdc-ec667508fa0e0f959d5a1f8794827c8507685729.tar.gz |
Add the `.xsd` file to the output files of the `xsd_config` module. am: 5c3e714b32 am: 22b810849b am: 64ab3d0a10 am: ae8e8a1a62
Original change: https://android-review.googlesource.com/c/platform/system/tools/xsdc/+/1895323
Change-Id: I7f77685cddfe9e171081be60d45e99bde7d1fb32
-rw-r--r-- | build/xsdc.go | 8 |
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 |