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