diff options
author | 2020-07-22 16:30:20 -0400 | |
---|---|---|
committer | 2020-07-22 20:34:52 +0000 | |
commit | f6fe9956bf734601fb9f295334e9e909b6bf76a1 (patch) | |
tree | d7924efd6e738d1dc3093cb98143aed6b21c3a38 /rust/bindgen.go | |
parent | 07cbaf4d893ef00505d6d38d93a286dec11fb08e (diff) |
Add a rust_bindgen_host module type.
Bug: 161826371
Test: Local rust_bindgen_host only provides host variants.
Change-Id: I8cc7819a193a6eefe40402e4b6a82f436c5de78a
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r-- | rust/bindgen.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go index 859223abf..d377dadf2 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -48,6 +48,7 @@ var ( func init() { android.RegisterModuleType("rust_bindgen", RustBindgenFactory) + android.RegisterModuleType("rust_bindgen_host", RustBindgenHostFactory) } var _ SourceProvider = (*bindgenDecorator)(nil) @@ -152,6 +153,11 @@ func RustBindgenFactory() android.Module { return module.Init() } +func RustBindgenHostFactory() android.Module { + module, _ := NewRustBindgen(android.HostSupported) + return module.Init() +} + func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorator) { module := newModule(hod, android.MultilibBoth) |