Replace ctx.ExpandSources with android.PathsForModuleSrc
Move the logic from ctx.ExpandSources into android.PathsForModuleSrc and ctx.ExpandSource into android.PathForModuleSrc, and deprecate them. When combined with the pathDepsMutator this will let all properties that take source paths also take filegroups or genrule outputs, as long as they are tagged with `android:"path"`. Test: All soong tests Change-Id: I01625e76b5da19240e9649bf26a014eeeafcab8f
This commit is contained in:
@@ -46,7 +46,7 @@ func ResourceDirsToJarArgs(ctx android.ModuleContext,
|
||||
}
|
||||
}
|
||||
|
||||
excludeFiles = append(excludeFiles, ctx.ExpandSources(excludeResourceFiles, nil).Strings()...)
|
||||
excludeFiles = append(excludeFiles, android.PathsForModuleSrc(ctx, excludeResourceFiles).Strings()...)
|
||||
|
||||
excludeFiles = append(excludeFiles, resourceExcludes...)
|
||||
|
||||
@@ -96,7 +96,7 @@ func SourceFilesToJarArgs(ctx android.ModuleContext,
|
||||
func resourceFilesToJarArgs(ctx android.ModuleContext,
|
||||
res, exclude []string) (args []string, deps android.Paths) {
|
||||
|
||||
files := ctx.ExpandSources(res, exclude)
|
||||
files := android.PathsForModuleSrcExcludes(ctx, res, exclude)
|
||||
|
||||
lastDir := ""
|
||||
for i, f := range files {
|
||||
|
Reference in New Issue
Block a user