aboutsummaryrefslogtreecommitdiffstats
path: root/python/library.go
diff options
context:
space:
mode:
authorNan Zhang <nanzhang@google.com>2017-12-01 20:00:31 +0000
committerNan Zhang <nanzhang@google.com>2017-12-01 20:00:31 +0000
commitd9ec5e7dea386f00594c43685eb25cdb6c0b6cba (patch)
tree8ebc182125ea5934c824a583c07b123ffa1010f7 /python/library.go
parent0a32e5936b4c87bc705d06fa2d4f6fed1f58d602 (diff)
downloadbuild_soong-d9ec5e7dea386f00594c43685eb25cdb6c0b6cba.tar.gz
build_soong-d9ec5e7dea386f00594c43685eb25cdb6c0b6cba.tar.bz2
build_soong-d9ec5e7dea386f00594c43685eb25cdb6c0b6cba.zip
Revert "Revert "Change Python in Soong to support device side build.""
This reverts commit 0a32e5936b4c87bc705d06fa2d4f6fed1f58d602. Reason for revert: <libsqlite was missing for darwin_x86_64 before> Change-Id: I2e13e849a503a705ffad425df292380f2f73954e
Diffstat (limited to 'python/library.go')
-rw-r--r--python/library.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/library.go b/python/library.go
index 58ee55fb..65c1352e 100644
--- a/python/library.go
+++ b/python/library.go
@@ -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()
+}