Remove ModuleSrcPath am: 07e51619a2
am: 734ad216fe
am: 055d480456
Change-Id: I386ab7a179da59477acc38571f63e652ac47d8a2
This commit is contained in:
@@ -935,15 +935,15 @@ func (d *Droiddoc) collectDoclavaDocsFlags(ctx android.ModuleContext, implicits
|
||||
})
|
||||
|
||||
if len(d.properties.Html_dirs) > 0 {
|
||||
htmlDir := android.PathForModuleSrc(ctx, d.properties.Html_dirs[0])
|
||||
*implicits = append(*implicits, ctx.Glob(htmlDir.Join(ctx, "**/*").String(), nil)...)
|
||||
args = args + " -htmldir " + htmlDir.String()
|
||||
htmlDir := d.properties.Html_dirs[0]
|
||||
*implicits = append(*implicits, ctx.ExpandSources([]string{filepath.Join(d.properties.Html_dirs[0], "**/*")}, nil)...)
|
||||
args = args + " -htmldir " + htmlDir
|
||||
}
|
||||
|
||||
if len(d.properties.Html_dirs) > 1 {
|
||||
htmlDir2 := android.PathForModuleSrc(ctx, d.properties.Html_dirs[1])
|
||||
*implicits = append(*implicits, ctx.Glob(htmlDir2.Join(ctx, "**/*").String(), nil)...)
|
||||
args = args + " -htmldir2 " + htmlDir2.String()
|
||||
htmlDir2 := d.properties.Html_dirs[1]
|
||||
*implicits = append(*implicits, ctx.ExpandSources([]string{filepath.Join(htmlDir2, "**/*")}, nil)...)
|
||||
args = args + " -htmldir2 " + htmlDir2
|
||||
}
|
||||
|
||||
if len(d.properties.Html_dirs) > 2 {
|
||||
@@ -1791,9 +1791,9 @@ func ExportedDroiddocDirFactory() android.Module {
|
||||
func (d *ExportedDroiddocDir) DepsMutator(android.BottomUpMutatorContext) {}
|
||||
|
||||
func (d *ExportedDroiddocDir) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
path := android.PathForModuleSrc(ctx, String(d.properties.Path))
|
||||
d.dir = path
|
||||
d.deps = ctx.Glob(path.Join(ctx, "**/*").String(), nil)
|
||||
path := String(d.properties.Path)
|
||||
d.dir = android.PathForModuleSrc(ctx, path)
|
||||
d.deps = ctx.ExpandSources([]string{filepath.Join(path, "**/*")}, nil)
|
||||
}
|
||||
|
||||
//
|
||||
|
@@ -39,10 +39,10 @@ func ResourceDirsToJarArgs(ctx android.ModuleContext,
|
||||
var excludeFiles []string
|
||||
|
||||
for _, exclude := range excludeResourceDirs {
|
||||
dirs := ctx.Glob(android.PathForModuleSrc(ctx).Join(ctx, exclude).String(), nil)
|
||||
dirs := ctx.Glob(android.PathForSource(ctx, ctx.ModuleDir()).Join(ctx, exclude).String(), nil)
|
||||
for _, dir := range dirs {
|
||||
excludeDirs = append(excludeDirs, dir.String())
|
||||
excludeFiles = append(excludeFiles, dir.(android.ModuleSrcPath).Join(ctx, "**/*").String())
|
||||
excludeFiles = append(excludeFiles, dir.(android.SourcePath).Join(ctx, "**/*").String())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ func ResourceDirsToJarArgs(ctx android.ModuleContext,
|
||||
|
||||
for _, resourceDir := range resourceDirs {
|
||||
// resourceDir may be a glob, resolve it first
|
||||
dirs := ctx.Glob(android.PathForModuleSrc(ctx).Join(ctx, resourceDir).String(), excludeDirs)
|
||||
dirs := ctx.Glob(android.PathForSource(ctx, ctx.ModuleDir()).Join(ctx, resourceDir).String(), excludeDirs)
|
||||
for _, dir := range dirs {
|
||||
files := ctx.GlobFiles(filepath.Join(dir.String(), "**/*"), excludeFiles)
|
||||
|
||||
|
Reference in New Issue
Block a user