aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-10-23 17:59:01 -0700
committerColin Cross <ccross@android.com>2017-10-24 13:01:03 -0700
commitd11fcda940055074f9ceb932883ea31dfe0c11d9 (patch)
treec9226e0580eaecd68b531532119f72ddc31da565 /python
parentb6715449737261c64d3408418754185da8624204 (diff)
downloadbuild_soong-d11fcda940055074f9ceb932883ea31dfe0c11d9.tar.gz
build_soong-d11fcda940055074f9ceb932883ea31dfe0c11d9.tar.bz2
build_soong-d11fcda940055074f9ceb932883ea31dfe0c11d9.zip
Convert Visit*Deps from blueprint.Module to android.Module
Also adds checks that the dependencies are android.Modules and are not disabled. Test: m checkbuild Change-Id: I05e945f38915d49cd3c0ab72a86576949bc7eff2
Diffstat (limited to 'python')
-rw-r--r--python/binary.go4
-rw-r--r--python/python.go2
2 files changed, 2 insertions, 4 deletions
diff --git a/python/binary.go b/python/binary.go
index b7b50561..c2e38bf3 100644
--- a/python/binary.go
+++ b/python/binary.go
@@ -21,8 +21,6 @@ import (
"path/filepath"
"strings"
- "github.com/google/blueprint"
-
"android/soong/android"
)
@@ -135,7 +133,7 @@ func (binary *binaryDecorator) bootstrap(ctx android.ModuleContext, actual_versi
var launcher_path android.Path
if embedded_launcher {
- ctx.VisitDirectDeps(func(m blueprint.Module) {
+ ctx.VisitDirectDeps(func(m android.Module) {
if ctx.OtherModuleDependencyTag(m) != launcherTag {
return
}
diff --git a/python/python.go b/python/python.go
index e63c26c4..1b146a8e 100644
--- a/python/python.go
+++ b/python/python.go
@@ -508,7 +508,7 @@ func (p *Module) uniqWholeRunfilesTree(ctx android.ModuleContext) {
}
// visit all its dependencies in depth first.
- ctx.VisitDepsDepthFirst(func(module blueprint.Module) {
+ ctx.VisitDepsDepthFirst(func(module android.Module) {
if ctx.OtherModuleDependencyTag(module) != pythonLibTag {
return
}