Merge "m <module_name> builds <module_name>.<apex_name>"

This commit is contained in:
Treehugger Robot 2020-02-12 00:35:55 +00:00 committed by Gerrit Code Review
commit 45f3c9b6a6

View file

@ -217,6 +217,12 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, mo
}
fmt.Fprintln(w, "include $(BUILD_PREBUILT)")
}
// m <module_name> will build <module_name>.<apex_name> as well.
if fi.moduleName != moduleName && a.primaryApexType {
fmt.Fprintln(w, ".PHONY: "+fi.moduleName)
fmt.Fprintln(w, fi.moduleName+": "+moduleName)
}
}
return moduleNames
}