Merge "Add a rust_bindgen_host module type."

This commit is contained in:
Ivan Lozano 2020-07-24 18:53:13 +00:00 committed by Gerrit Code Review
commit 41b4d79dab
1 changed files with 6 additions and 0 deletions

View File

@ -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)