summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
author Aditya Choudhary <caditya@google.com> 2023-11-29 16:42:42 +0000
committer Aditya Choudhary <caditya@google.com> 2023-12-05 19:56:26 +0000
commit26df39fe44dd5bfddc0463d7a186e7f4b0af140b (patch)
tree1505711ef147d1d88207a2705cbfe757db88ab8b /python
parent8094b6bf9dc368f080c6455261ebe1d999772de0 (diff)
Add source file provider for genrule/srcs, python libraries and rust libraries.
Change-Id: I2d7d4684a10c15aeecc27b8db800ab27a807d2e2
Diffstat (limited to 'python')
-rw-r--r--python/python.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/python.go b/python/python.go
index 7d77ca772..b4617c831 100644
--- a/python/python.go
+++ b/python/python.go
@@ -430,6 +430,7 @@ func (p *PythonLibraryModule) AddDepsOnPythonLauncherAndStdlib(ctx android.Botto
// GenerateAndroidBuildActions performs build actions common to all Python modules
func (p *PythonLibraryModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
expandedSrcs := android.PathsForModuleSrcExcludes(ctx, p.properties.Srcs, p.properties.Exclude_srcs)
+ ctx.SetProvider(blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: expandedSrcs.Strings()})
// expand data files from "data" property.
expandedData := android.PathsForModuleSrc(ctx, p.properties.Data)