APEX respects relative_install_path
am: b7c24df220
Change-Id: I78a018e6116ddb88025b98d66f442ce36776a4c0
This commit is contained in:
8
cc/cc.go
8
cc/cc.go
@@ -315,6 +315,7 @@ type installer interface {
|
||||
inData() bool
|
||||
inSanitizerDir() bool
|
||||
hostToolPath() android.OptionalPath
|
||||
relativeInstallPath() string
|
||||
}
|
||||
|
||||
type dependencyTag struct {
|
||||
@@ -413,6 +414,13 @@ func (c *Module) UnstrippedOutputFile() android.Path {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Module) RelativeInstallPath() string {
|
||||
if c.installer != nil {
|
||||
return c.installer.relativeInstallPath()
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (c *Module) Init() android.Module {
|
||||
c.AddProperties(&c.Properties, &c.VendorProperties)
|
||||
if c.compiler != nil {
|
||||
|
@@ -73,7 +73,7 @@ func (installer *baseInstaller) installDir(ctx ModuleContext) android.OutputPath
|
||||
dir = filepath.Join(dir, "vendor")
|
||||
}
|
||||
return android.PathForModuleInstall(ctx, dir, installer.subDir,
|
||||
String(installer.Properties.Relative_install_path), installer.relative)
|
||||
installer.relativeInstallPath(), installer.relative)
|
||||
}
|
||||
|
||||
func (installer *baseInstaller) install(ctx ModuleContext, file android.Path) {
|
||||
@@ -91,3 +91,7 @@ func (installer *baseInstaller) inSanitizerDir() bool {
|
||||
func (installer *baseInstaller) hostToolPath() android.OptionalPath {
|
||||
return android.OptionalPath{}
|
||||
}
|
||||
|
||||
func (installer *baseInstaller) relativeInstallPath() string {
|
||||
return String(installer.Properties.Relative_install_path)
|
||||
}
|
||||
|
Reference in New Issue
Block a user