diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-07 00:00:47 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-12-07 00:00:47 +0000 |
commit | 8aab06517ce01e47bc2c46e6a0db0c4533411b26 (patch) | |
tree | a938d5d212b0e290453c65e04b6a0e5ddcd2f3a5 | |
parent | 0762d21e7975b26eb24fe748ed9995202a955150 (diff) | |
parent | 69d51d17b76c43fe5a4f7d26c281605bbdb5579d (diff) | |
download | blueprint-android14-qpr2-s3-release.tar.gz |
Snap for 11186783 from 69d51d17b76c43fe5a4f7d26c281605bbdb5579d to 24Q1-releaseandroid-14.0.0_r37android-14.0.0_r36android-14.0.0_r35android-14.0.0_r34android-14.0.0_r33android-14.0.0_r32android-14.0.0_r31android-14.0.0_r30android-14.0.0_r29android14-qpr2-s5-releaseandroid14-qpr2-s4-releaseandroid14-qpr2-s3-releaseandroid14-qpr2-s2-releaseandroid14-qpr2-s1-releaseandroid14-qpr2-release
Change-Id: I0e12f379cdaf98aacc4deb19649261816afb8935
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | bootstrap/bootstrap.go | 2 | ||||
-rw-r--r-- | source_file_provider.go | 7 |
3 files changed, 10 insertions, 0 deletions
@@ -52,6 +52,7 @@ bootstrap_go_package { "provider.go", "scope.go", "singleton_ctx.go", + "source_file_provider.go" ], testSrcs: [ "context_test.go", diff --git a/bootstrap/bootstrap.go b/bootstrap/bootstrap.go index 0326c4a..97ed2bd 100644 --- a/bootstrap/bootstrap.go +++ b/bootstrap/bootstrap.go @@ -337,6 +337,7 @@ func (g *GoPackage) GenerateBuildActions(ctx blueprint.ModuleContext) { buildGoPackage(ctx, g.pkgRoot, g.properties.PkgPath, g.archiveFile, srcs, genSrcs) + ctx.SetProvider(blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: srcs}) } func (g *GoPackage) Srcs() []string { @@ -533,6 +534,7 @@ func (g *GoBinary) GenerateBuildActions(ctx blueprint.ModuleContext) { Validations: validations, Optional: !g.properties.Default, }) + ctx.SetProvider(blueprint.SrcsFileProviderKey, blueprint.SrcsFileProviderData{SrcPaths: srcs}) } func buildGoPluginLoader(ctx blueprint.ModuleContext, pkgPath, pluginSrc string) bool { diff --git a/source_file_provider.go b/source_file_provider.go new file mode 100644 index 0000000..6ee4d09 --- /dev/null +++ b/source_file_provider.go @@ -0,0 +1,7 @@ +package blueprint + +type SrcsFileProviderData struct { + SrcPaths []string +} + +var SrcsFileProviderKey = NewProvider(SrcsFileProviderData{}) |