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:
Nan Zhang
2017-12-01 20:00:31 +00:00
parent 0a32e5936b
commit d9ec5e7dea
6 changed files with 58 additions and 17 deletions

View File

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