diff options
author | 2020-07-24 18:53:13 +0000 | |
---|---|---|
committer | 2020-07-24 18:53:13 +0000 | |
commit | 41b4d79dab95b97352dfbc894e65eec7832211ed (patch) | |
tree | 679c4ad9ca65419fcc6e613b37a8b08997c3964f /rust/bindgen.go | |
parent | 264771ce53ff5b5f8c14a549f7eee250a3d28feb (diff) | |
parent | f6fe9956bf734601fb9f295334e9e909b6bf76a1 (diff) |
Merge "Add a rust_bindgen_host module type."
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 132b1fdb3..83ad56013 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -49,6 +49,7 @@ var ( func init() { android.RegisterModuleType("rust_bindgen", RustBindgenFactory) + android.RegisterModuleType("rust_bindgen_host", RustBindgenHostFactory) } var _ SourceProvider = (*bindgenDecorator)(nil) @@ -156,6 +157,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) |