summaryrefslogtreecommitdiff
path: root/sdk/sdk.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2023-12-14 21:58:10 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-12-14 21:58:10 +0000
commit0d6bb348014348775ab316fec4cff44139326c5c (patch)
tree04cbf46506250453ceebe92ca140f0d7cd17b19b /sdk/sdk.go
parentc01104234ef69d13c2360c0434b14ea13f2fecf5 (diff)
parent8fc38f3761521cb489b7c25ac730ad4279ddb5c0 (diff)
Merge "Add sdk_genrule" into main
Diffstat (limited to 'sdk/sdk.go')
-rw-r--r--sdk/sdk.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/sdk/sdk.go b/sdk/sdk.go
index 4d4a2a2c4..fd16ab63f 100644
--- a/sdk/sdk.go
+++ b/sdk/sdk.go
@@ -222,6 +222,18 @@ func (s *sdk) AndroidMkEntries() []android.AndroidMkEntries {
}}
}
+func (s *sdk) OutputFiles(tag string) (android.Paths, error) {
+ switch tag {
+ case "":
+ if s.snapshotFile.Valid() {
+ return []android.Path{s.snapshotFile.Path()}, nil
+ }
+ return nil, fmt.Errorf("snapshot file not defined. This is most likely because this isn't the common_os variant of this module")
+ default:
+ return nil, fmt.Errorf("unknown tag %q", tag)
+ }
+}
+
// gatherTraits gathers the traits from the dynamically generated trait specific properties.
//
// Returns a map from member name to the set of required traits.