Merge "Add a rust_bindgen_host module type."
This commit is contained in:
@@ -49,6 +49,7 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
android.RegisterModuleType("rust_bindgen", RustBindgenFactory)
|
android.RegisterModuleType("rust_bindgen", RustBindgenFactory)
|
||||||
|
android.RegisterModuleType("rust_bindgen_host", RustBindgenHostFactory)
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ SourceProvider = (*bindgenDecorator)(nil)
|
var _ SourceProvider = (*bindgenDecorator)(nil)
|
||||||
@@ -156,6 +157,11 @@ func RustBindgenFactory() android.Module {
|
|||||||
return module.Init()
|
return module.Init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func RustBindgenHostFactory() android.Module {
|
||||||
|
module, _ := NewRustBindgen(android.HostSupported)
|
||||||
|
return module.Init()
|
||||||
|
}
|
||||||
|
|
||||||
func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorator) {
|
func NewRustBindgen(hod android.HostOrDeviceSupported) (*Module, *bindgenDecorator) {
|
||||||
module := newModule(hod, android.MultilibBoth)
|
module := newModule(hod, android.MultilibBoth)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user