Merge "NDK ABI diffs requires implementation"
This commit is contained in:
17
cc/cc.go
17
cc/cc.go
@@ -2506,20 +2506,11 @@ func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
|
|||||||
if c.isNDKStubLibrary() {
|
if c.isNDKStubLibrary() {
|
||||||
// NDK stubs depend on their implementation because the ABI dumps are
|
// NDK stubs depend on their implementation because the ABI dumps are
|
||||||
// generated from the implementation library.
|
// generated from the implementation library.
|
||||||
apiImportName := c.BaseModuleName() + multitree.GetApiImportSuffix()
|
|
||||||
|
|
||||||
// If original library exists as imported API, set dependency on the imported library
|
actx.AddFarVariationDependencies(append(ctx.Target().Variations(),
|
||||||
if actx.OtherModuleExists(apiImportName) {
|
c.ImageVariation(),
|
||||||
actx.AddFarVariationDependencies(append(ctx.Target().Variations(),
|
blueprint.Variation{Mutator: "link", Variation: "shared"},
|
||||||
c.ImageVariation(),
|
), stubImplementation, c.BaseModuleName())
|
||||||
blueprint.Variation{Mutator: "link", Variation: "shared"},
|
|
||||||
), stubImplementation, apiImportName)
|
|
||||||
} else {
|
|
||||||
actx.AddFarVariationDependencies(append(ctx.Target().Variations(),
|
|
||||||
c.ImageVariation(),
|
|
||||||
blueprint.Variation{Mutator: "link", Variation: "shared"},
|
|
||||||
), stubImplementation, c.BaseModuleName())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, lib := range deps.WholeStaticLibs {
|
for _, lib := range deps.WholeStaticLibs {
|
||||||
|
Reference in New Issue
Block a user