Don't create version variations of sdk modules
They are never used, skip creating them. Test: m checkbuild Change-Id: I4c8cd544327ae79b781f704be5a9064efdbdf2af
This commit is contained in:
@@ -1545,14 +1545,16 @@ func CanBeOrLinkAgainstVersionVariants(module interface {
|
|||||||
Host() bool
|
Host() bool
|
||||||
InRamdisk() bool
|
InRamdisk() bool
|
||||||
InRecovery() bool
|
InRecovery() bool
|
||||||
|
UseSdk() bool
|
||||||
}) bool {
|
}) bool {
|
||||||
return !module.Host() && !module.InRamdisk() && !module.InRecovery()
|
return !module.Host() && !module.InRamdisk() && !module.InRecovery() && !module.UseSdk()
|
||||||
}
|
}
|
||||||
|
|
||||||
func CanBeVersionVariant(module interface {
|
func CanBeVersionVariant(module interface {
|
||||||
Host() bool
|
Host() bool
|
||||||
InRamdisk() bool
|
InRamdisk() bool
|
||||||
InRecovery() bool
|
InRecovery() bool
|
||||||
|
UseSdk() bool
|
||||||
CcLibraryInterface() bool
|
CcLibraryInterface() bool
|
||||||
Shared() bool
|
Shared() bool
|
||||||
Static() bool
|
Static() bool
|
||||||
|
@@ -1053,7 +1053,7 @@ func (mod *Module) DepsMutator(actx android.BottomUpMutatorContext) {
|
|||||||
blueprint.Variation{Mutator: "link", Variation: "static"}),
|
blueprint.Variation{Mutator: "link", Variation: "static"}),
|
||||||
cc.StaticDepTag(), deps.StaticLibs...)
|
cc.StaticDepTag(), deps.StaticLibs...)
|
||||||
|
|
||||||
crtVariations := append(cc.GetCrtVariations(ctx, mod), commonDepVariations...)
|
crtVariations := cc.GetCrtVariations(ctx, mod)
|
||||||
if deps.CrtBegin != "" {
|
if deps.CrtBegin != "" {
|
||||||
actx.AddVariationDependencies(crtVariations, cc.CrtBeginDepTag, deps.CrtBegin)
|
actx.AddVariationDependencies(crtVariations, cc.CrtBeginDepTag, deps.CrtBegin)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user