Revert "Revert "Change Python in Soong to support device side build.""
This reverts commit 0a32e5936b
.
Reason for revert: <libsqlite was missing for darwin_x86_64 before>
Change-Id: I2e13e849a503a705ffad425df292380f2f73954e
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
|
||||
func init() {
|
||||
android.RegisterModuleType("python_library_host", PythonLibraryHostFactory)
|
||||
android.RegisterModuleType("python_library", PythonLibraryFactory)
|
||||
}
|
||||
|
||||
func PythonLibraryHostFactory() android.Module {
|
||||
@@ -29,3 +30,9 @@ func PythonLibraryHostFactory() android.Module {
|
||||
|
||||
return module.Init()
|
||||
}
|
||||
|
||||
func PythonLibraryFactory() android.Module {
|
||||
module := newModule(android.HostAndDeviceSupported, android.MultilibBoth)
|
||||
|
||||
return module.Init()
|
||||
}
|
||||
|
Reference in New Issue
Block a user