diff options
| author | 2019-10-17 13:17:17 -0700 | |
|---|---|---|
| committer | 2019-10-17 13:17:17 -0700 | |
| commit | ee8633937fda279ef267c5418f4139229dce89fe (patch) | |
| tree | 810fd8f01e72ac2be0716130c2346ca72125057d /python/python.go | |
| parent | 5d57bc60c8d1d42c7d1f55a99e7ba3c38a327e54 (diff) | |
| parent | ad4a597c79a70e84a045c5d2ed15c4a1e3d6641a (diff) | |
Merge "Add method to determine variations from a Target"
am: ad4a597c79
Change-Id: I98e8e5e0b8dd7f21d4f9bdf713c21daf396159f3
Diffstat (limited to 'python/python.go')
| -rw-r--r-- | python/python.go | 13 |
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") } } |