diff options
author | 2020-10-01 21:25:05 -0700 | |
---|---|---|
committer | 2020-10-09 13:38:37 -0700 | |
commit | c49649c059ffa80433f7789250363728ce1f1608 (patch) | |
tree | 341708b4379e07d8ee09396127a3e18ccee05f44 /rust/bindgen.go | |
parent | 6682ef42a497e5fdf48d0ade03efd23dbf8379dd (diff) |
Use protobuf-codegen default and add mod_stem.rs
* Upgrade to new protobuf-codegen; use its standard
default output without local change.
* Allow a sourceProvider to have multiple output files.
For a stem.proto file, output stem.rs and mod_stem.rs.
* New protobuf-codegen option gen_mod_rs always generates
output file named "mod.rs". To generate multiple .proto
files into the same output directory, we need to rename
mod.rs to mod_<stem>.rs.
* Instead of using the gen_mod_rs option and renaming mod.rs
to mod_<stem>.rs, we generate the same mod_<stem>.rs
directly with a simple printf command.
Bug: 170256643
Test: atest -c --host --include-subdirs external/crosvm
Change-Id: Ia09e41029099a6de4d35c96dbabd9ba5514c9019
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r-- | rust/bindgen.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go index ac33ff7ef..68f219e45 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -202,7 +202,7 @@ func (b *bindgenDecorator) GenerateSource(ctx ModuleContext, deps PathDeps) andr }, }) - b.BaseSourceProvider.OutputFile = outputFile + b.BaseSourceProvider.OutputFiles = android.Paths{outputFile} return outputFile } |