Install current VNDK libs to the versioned directories. am: 8fe1212261
am: df323367e7
Change-Id: I0468662d7fd5777b0788b2ed058a21f4ad1714e7
This commit is contained in:
commit
0de3759433
3 changed files with 13 additions and 7 deletions
|
@ -648,6 +648,10 @@ func (c *deviceConfig) VndkVersion() string {
|
|||
return String(c.config.ProductVariables.DeviceVndkVersion)
|
||||
}
|
||||
|
||||
func (c *deviceConfig) PlatformVndkVersion() string {
|
||||
return String(c.config.ProductVariables.Platform_vndk_version)
|
||||
}
|
||||
|
||||
func (c *deviceConfig) ExtraVndkVersions() []string {
|
||||
return c.config.ProductVariables.ExtraVndkVersions
|
||||
}
|
||||
|
|
|
@ -111,6 +111,7 @@ type productVariables struct {
|
|||
Platform_sdk_final *bool `json:",omitempty"`
|
||||
Platform_version_active_codenames []string `json:",omitempty"`
|
||||
Platform_version_future_codenames []string `json:",omitempty"`
|
||||
Platform_vndk_version *string `json:",omitempty"`
|
||||
|
||||
DeviceName *string `json:",omitempty"`
|
||||
DeviceArch *string `json:",omitempty"`
|
||||
|
|
|
@ -720,13 +720,14 @@ func (library *libraryDecorator) toc() android.OptionalPath {
|
|||
|
||||
func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) {
|
||||
if library.shared() {
|
||||
if ctx.Device() {
|
||||
if ctx.useVndk() {
|
||||
if ctx.isVndkSp() {
|
||||
library.baseInstaller.subDir = "vndk-sp"
|
||||
} else if ctx.isVndk() {
|
||||
library.baseInstaller.subDir = "vndk"
|
||||
}
|
||||
if ctx.Device() && ctx.useVndk() {
|
||||
if ctx.isVndkSp() {
|
||||
library.baseInstaller.subDir = "vndk-sp"
|
||||
} else if ctx.isVndk() {
|
||||
library.baseInstaller.subDir = "vndk"
|
||||
}
|
||||
if ctx.isVndk() && ctx.DeviceConfig().PlatformVndkVersion() != "current" {
|
||||
library.baseInstaller.subDir += "-" + ctx.DeviceConfig().PlatformVndkVersion()
|
||||
}
|
||||
}
|
||||
library.baseInstaller.install(ctx, file)
|
||||
|
|
Loading…
Reference in a new issue