Merge "Specify jnilib partition in Android-<target>.mk"
This commit is contained in:
9
cc/cc.go
9
cc/cc.go
@@ -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
|
||||
|
@@ -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
|
||||
}
|
||||
|
@@ -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 (
|
||||
|
Reference in New Issue
Block a user