diff options
author | Colin Cross <ccross@android.com> | 2019-03-05 22:25:09 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2019-03-20 19:36:13 +0000 |
commit | 8a49795df1ed87a4889f267dbd8d28c5832bb897 (patch) | |
tree | e769fe1ab955ab4420d1edf68355c2ff9a4b470e /genrule | |
parent | 07e51619a2752d6a36bd149c8938b5d7cae5baa7 (diff) | |
download | build_soong-8a49795df1ed87a4889f267dbd8d28c5832bb897.tar.gz build_soong-8a49795df1ed87a4889f267dbd8d28c5832bb897.tar.bz2 build_soong-8a49795df1ed87a4889f267dbd8d28c5832bb897.zip |
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
Diffstat (limited to 'genrule')
-rw-r--r-- | genrule/genrule.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/genrule/genrule.go b/genrule/genrule.go index f265eb60..c8be61ac 100644 --- a/genrule/genrule.go +++ b/genrule/genrule.go @@ -225,14 +225,14 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { } for _, toolFile := range g.properties.Tool_files { - paths := ctx.ExpandSources([]string{toolFile}, nil) + paths := android.PathsForModuleSrc(ctx, []string{toolFile}) g.deps = append(g.deps, paths...) addLocationLabel(toolFile, paths.Strings()) } var srcFiles android.Paths for _, in := range g.properties.Srcs { - paths := ctx.ExpandSources([]string{in}, g.properties.Exclude_srcs) + paths := android.PathsForModuleSrcExcludes(ctx, []string{in}, g.properties.Exclude_srcs) srcFiles = append(srcFiles, paths...) addLocationLabel(in, paths.Strings()) } |