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 /python | |
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 'python')
-rw-r--r-- | python/python.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/python.go b/python/python.go index 6d160201..6eb9b6ef 100644 --- a/python/python.go +++ b/python/python.go @@ -414,7 +414,7 @@ func (p *Module) GeneratePythonBuildActions(ctx android.ModuleContext) { panic(fmt.Errorf("unknown Python Actual_version: %q for module: %q.", p.properties.Actual_version, ctx.ModuleName())) } - expandedSrcs := ctx.ExpandSources(srcs, exclude_srcs) + expandedSrcs := android.PathsForModuleSrcExcludes(ctx, srcs, exclude_srcs) requiresSrcs := true if p.bootstrapper != nil && !p.bootstrapper.autorun() { requiresSrcs = false @@ -424,7 +424,7 @@ func (p *Module) GeneratePythonBuildActions(ctx android.ModuleContext) { } // expand data files from "data" property. - expandedData := ctx.ExpandSources(p.properties.Data, nil) + expandedData := android.PathsForModuleSrc(ctx, p.properties.Data) // sanitize pkg_path. pkgPath := String(p.properties.Pkg_path) |