Merge "Specify jnilib partition in Android-<target>.mk"

This commit is contained in:
Jihoon Kang
2022-10-05 16:19:51 +00:00
committed by Gerrit Code Review
9 changed files with 189 additions and 0 deletions

View File

@@ -3821,6 +3821,15 @@ func (ks *kytheExtractAllSingleton) GenerateBuildActions(ctx android.SingletonCo
}
}
func (c *Module) Partition() string {
if p, ok := c.installer.(interface {
getPartition() string
}); ok {
return p.getPartition()
}
return ""
}
var Bool = proptools.Bool
var BoolDefault = proptools.BoolDefault
var BoolPtr = proptools.BoolPtr

View File

@@ -2233,6 +2233,10 @@ func (library *libraryDecorator) makeUninstallable(mod *Module) {
mod.ModuleBase.MakeUninstallable()
}
func (library *libraryDecorator) getPartition() string {
return library.path.Partition()
}
func (library *libraryDecorator) getAPIListCoverageXMLPath() android.ModuleOutPath {
return library.apiListCoverageXmlPath
}

View File

@@ -253,6 +253,9 @@ type LinkableInterface interface {
// VndkVersion returns the VNDK version string for this module.
VndkVersion() string
// Partition returns the partition string for this module.
Partition() string
}
var (