Rewrite snapshot dependencies for vndk-ext am: 27b9572433
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1779758 Change-Id: I00073cbd7a9a3345023825d149cef70d118529c8
This commit is contained in:
2
cc/cc.go
2
cc/cc.go
@@ -2312,7 +2312,7 @@ func (c *Module) DepsMutator(actx android.BottomUpMutatorContext) {
|
|||||||
actx.AddVariationDependencies([]blueprint.Variation{
|
actx.AddVariationDependencies([]blueprint.Variation{
|
||||||
c.ImageVariation(),
|
c.ImageVariation(),
|
||||||
{Mutator: "link", Variation: "shared"},
|
{Mutator: "link", Variation: "shared"},
|
||||||
}, vndkExtDepTag, vndkdep.getVndkExtendsModuleName())
|
}, vndkExtDepTag, RewriteSnapshotLib(vndkdep.getVndkExtendsModuleName(), GetSnapshot(c, &snapshotInfo, actx).SharedLibs))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -459,6 +459,19 @@ func TestVendorSnapshotUse(t *testing.T) {
|
|||||||
srcs: ["client.cpp"],
|
srcs: ["client.cpp"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cc_library_shared {
|
||||||
|
name: "libvndkext",
|
||||||
|
vendor: true,
|
||||||
|
nocrt: true,
|
||||||
|
no_libcrt: true,
|
||||||
|
stl: "none",
|
||||||
|
system_shared_libs: [],
|
||||||
|
vndk: {
|
||||||
|
extends: "libvndk",
|
||||||
|
enabled: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cc_binary {
|
cc_binary {
|
||||||
name: "bin_without_snapshot",
|
name: "bin_without_snapshot",
|
||||||
vendor: true,
|
vendor: true,
|
||||||
|
Reference in New Issue
Block a user