summaryrefslogtreecommitdiff
path: root/java/rro.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2025-03-12 10:04:30 -0700
committer Cole Faust <colefaust@google.com> 2025-03-12 11:42:05 -0700
commita6baf12c8096cc6f7f535681db04dc05e6155826 (patch)
tree3def93e289577a34e47291ba69d5dd9ad22a0794 /java/rro.go
parent18548fd4d847dea2090e8763d00f4d0ee22f21d0 (diff)
Define an output file of runtime_resource_overlay
So that rros can be data of test modules. Test: go test Change-Id: I460a97fd9f430ec8e52ef6756d74b02693469d06
Diffstat (limited to 'java/rro.go')
-rw-r--r--java/rro.go17
1 files changed, 3 insertions, 14 deletions
diff --git a/java/rro.go b/java/rro.go
index 42d42b86a..4ae8d7fc7 100644
--- a/java/rro.go
+++ b/java/rro.go
@@ -99,15 +99,6 @@ type RuntimeResourceOverlayProperties struct {
Overrides []string
}
-// RuntimeResourceOverlayModule interface is used by the apex package to gather information from
-// a RuntimeResourceOverlay module.
-type RuntimeResourceOverlayModule interface {
- android.Module
- OutputFile() android.Path
- Certificate() Certificate
- Theme() string
-}
-
// RRO's partition logic is different from the partition logic of other modules defined in soong/android/paths.go
// The default partition for RRO is "/product" and not "/system"
func rroPartition(ctx android.ModuleContext) string {
@@ -217,11 +208,13 @@ func (r *RuntimeResourceOverlay) GenerateAndroidBuildActions(ctx android.ModuleC
})
android.SetProvider(ctx, RuntimeResourceOverlayInfoProvider, RuntimeResourceOverlayInfo{
- OutputFile: r.OutputFile(),
+ OutputFile: r.outputFile,
Certificate: r.Certificate(),
Theme: r.Theme(),
})
+ ctx.SetOutputFiles([]android.Path{r.outputFile}, "")
+
buildComplianceMetadata(ctx)
}
@@ -252,10 +245,6 @@ func (r *RuntimeResourceOverlay) Certificate() Certificate {
return r.certificate
}
-func (r *RuntimeResourceOverlay) OutputFile() android.Path {
- return r.outputFile
-}
-
func (r *RuntimeResourceOverlay) Theme() string {
return String(r.properties.Theme)
}