Merge "pom2mk to include extra-deps as top-level deps too"

am: 346d43b62e

Change-Id: I6dbcf7b98e25a96148ac2b6fa5a302b61ff5ad0c
This commit is contained in:
Jeff Gaston 2018-04-23 15:15:30 -07:00 committed by android-build-merger
commit 0922ff6891

View file

@ -160,6 +160,10 @@ func (p Pom) MkAarDeps() []string {
// method are formatted as Make targets, e.g. run through MavenToMk rules.
func (p Pom) MkDeps(typeExt string, scopes []string) []string {
var ret []string
if typeExt == "jar" {
// all top-level extra deps are assumed to be of type "jar" until we add syntax to specify other types
ret = append(ret, extraDeps[p.MkName()]...)
}
for _, d := range p.Dependencies {
if d.Type != typeExt || !InList(d.Scope, scopes) {
continue