Move rust module installation into Soong am: 7743557a23
am: b68b4f9ece
am: ab64bbf763
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1885088 Change-Id: I4f9d22c2468a2e6f90cb777cfc4932afbff92103
This commit is contained in:
@@ -186,11 +186,7 @@ func (compiler *baseCompiler) AndroidMk(ctx AndroidMkContext, ret *android.Andro
|
||||
}
|
||||
|
||||
var unstrippedOutputFile android.OptionalPath
|
||||
// Soong installation is only supported for host modules. Have Make
|
||||
// installation trigger Soong installation.
|
||||
if ctx.Target().Os.Class == android.Host {
|
||||
ret.OutputFile = android.OptionalPathForPath(compiler.path)
|
||||
} else if compiler.strippedOutputFile.Valid() {
|
||||
if compiler.strippedOutputFile.Valid() {
|
||||
unstrippedOutputFile = ret.OutputFile
|
||||
ret.OutputFile = compiler.strippedOutputFile
|
||||
}
|
||||
|
@@ -1273,6 +1273,10 @@ func (mod *Module) InstallInRecovery() bool {
|
||||
return mod.InRecovery()
|
||||
}
|
||||
|
||||
func (mod *Module) InstallBypassMake() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func linkPathFromFilePath(filepath android.Path) string {
|
||||
return strings.Split(filepath.String(), filepath.Base())[0]
|
||||
}
|
||||
|
Reference in New Issue
Block a user