summaryrefslogtreecommitdiff
path: root/snapshot/snapshot_base.go
diff options
context:
space:
mode:
Diffstat (limited to 'snapshot/snapshot_base.go')
-rw-r--r--snapshot/snapshot_base.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/snapshot/snapshot_base.go b/snapshot/snapshot_base.go
index de93f3eb0..79d3cf6f3 100644
--- a/snapshot/snapshot_base.go
+++ b/snapshot/snapshot_base.go
@@ -102,3 +102,19 @@ func isDirectoryExcluded(dir string, excludedMap directoryMap, includedMap direc
return isDirectoryExcluded(filepath.Dir(dir), excludedMap, includedMap)
}
}
+
+// This is to be saved as .json files, which is for development/vendor_snapshot/update.py.
+// These flags become Android.bp snapshot module properties.
+//
+// Attributes are optional and will be populated based on each module's need.
+// Common attributes are defined here, languages may extend this struct to add
+// additional attributes.
+type SnapshotJsonFlags struct {
+ ModuleName string `json:",omitempty"`
+ RelativeInstallPath string `json:",omitempty"`
+ Filename string `json:",omitempty"`
+ ModuleStemName string `json:",omitempty"`
+
+ // dependencies
+ Required []string `json:",omitempty"`
+}