Merge "Call shouldEmbedJnis only when needed."
This commit is contained in:
commit
c6f22282ff
1 changed files with 1 additions and 2 deletions
|
@ -165,7 +165,6 @@ func (a *AndroidApp) DepsMutator(ctx android.BottomUpMutatorContext) {
|
|||
a.aapt.deps(ctx, sdkDep)
|
||||
}
|
||||
|
||||
embedJni := a.shouldEmbedJnis(ctx)
|
||||
for _, jniTarget := range ctx.MultiTargets() {
|
||||
variation := append(jniTarget.Variations(),
|
||||
blueprint.Variation{Mutator: "link", Variation: "shared"})
|
||||
|
@ -174,7 +173,7 @@ func (a *AndroidApp) DepsMutator(ctx android.BottomUpMutatorContext) {
|
|||
}
|
||||
ctx.AddFarVariationDependencies(variation, tag, a.appProperties.Jni_libs...)
|
||||
if String(a.appProperties.Stl) == "c++_shared" {
|
||||
if embedJni {
|
||||
if a.shouldEmbedJnis(ctx) {
|
||||
ctx.AddFarVariationDependencies(variation, tag, "ndk_libc++_shared")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue