summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2019-10-17 18:52:20 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-10-17 18:52:20 +0000
commitad4a597c79a70e84a045c5d2ed15c4a1e3d6641a (patch)
tree55dc905b0b20930173a890f7b372774d22d1cbf6 /python/python.go
parenta8f91ec00d12bb47890bc2c5d29467e5a52f8144 (diff)
parent0f7d2ef3ac3b1875fab0fe721224ee22893ed194 (diff)
Merge "Add method to determine variations from a Target"
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go13
1 files changed, 4 insertions, 9 deletions
diff --git a/python/python.go b/python/python.go
index ad089090b..1b606cbb9 100644
--- a/python/python.go
+++ b/python/python.go
@@ -306,22 +306,17 @@ func (p *Module) DepsMutator(ctx android.BottomUpMutatorContext) {
if p.bootstrapper.autorun() {
launcherModule = "py2-launcher-autorun"
}
- ctx.AddFarVariationDependencies([]blueprint.Variation{
- {Mutator: "arch", Variation: ctx.Target().String()},
- }, launcherTag, launcherModule)
+ ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherTag, launcherModule)
// Add py2-launcher shared lib dependencies. Ideally, these should be
// derived from the `shared_libs` property of "py2-launcher". However, we
// cannot read the property at this stage and it will be too late to add
// dependencies later.
- ctx.AddFarVariationDependencies([]blueprint.Variation{
- {Mutator: "arch", Variation: ctx.Target().String()},
- }, launcherSharedLibTag, "libsqlite")
+ ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag, "libsqlite")
if ctx.Target().Os.Bionic() {
- ctx.AddFarVariationDependencies([]blueprint.Variation{
- {Mutator: "arch", Variation: ctx.Target().String()},
- }, launcherSharedLibTag, "libc", "libdl", "libm")
+ ctx.AddFarVariationDependencies(ctx.Target().Variations(), launcherSharedLibTag,
+ "libc", "libdl", "libm")
}
}