Allow module types to force creation of a default APEX variant
Bug: 187910671 Test: m droid Change-Id: I797d4ab60d15b526744fe6e4df1b55c8b75b0310
This commit is contained in:
6
cc/cc.go
6
cc/cc.go
@@ -3279,6 +3279,12 @@ func (c *Module) ShouldSupportSdkVersion(ctx android.BaseModuleContext,
|
||||
return nil
|
||||
}
|
||||
|
||||
// Implements android.ApexModule
|
||||
func (c *Module) AlwaysRequiresPlatformApexVariant() bool {
|
||||
// stub libraries and native bridge libraries are always available to platform
|
||||
return c.IsStubs() || c.Target().NativeBridge == android.NativeBridgeEnabled
|
||||
}
|
||||
|
||||
//
|
||||
// Defaults
|
||||
//
|
||||
|
Reference in New Issue
Block a user