summaryrefslogtreecommitdiff
path: root/rust/bindgen.go
diff options
context:
space:
mode:
author Ivan Lozano <ivanlozano@google.com> 2020-07-24 18:53:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-07-24 18:53:13 +0000
commit41b4d79dab95b97352dfbc894e65eec7832211ed (patch)
tree679c4ad9ca65419fcc6e613b37a8b08997c3964f /rust/bindgen.go
parent264771ce53ff5b5f8c14a549f7eee250a3d28feb (diff)
parentf6fe9956bf734601fb9f295334e9e909b6bf76a1 (diff)
Merge "Add a rust_bindgen_host module type."
Diffstat (limited to 'rust/bindgen.go')
-rw-r--r--rust/bindgen.go6
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)