Trigger binary installation in Soong from Make

am: 03ce63eaa6

Change-Id: I8276ab905b807a7f264a5978609c94add27bec1a
This commit is contained in:
Dan Willemsen 2016-09-29 22:44:36 +00:00 committed by android-build-merger
commit f9a8e25486

View file

@ -192,6 +192,12 @@ func (packer *relocationPacker) AndroidMk(ctx AndroidMkContext, ret *android.And
}
func (installer *baseInstaller) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkData) {
// 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(installer.path)
}
ret.Extra = append(ret.Extra, func(w io.Writer, outputFile android.Path) error {
path := installer.path.RelPathString()
dir, file := filepath.Split(path)