summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-10-22 20:40:25 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-22 20:40:25 +0000
commita9e9f539e8f07e92e737fd9516a8e8e2da4aa8a4 (patch)
tree280cf3f5f7e3c1fa0e984a2d4565eeeb39dce7c4 /python/python.go
parent25ebc502672abbbe2df0b6efbbc42b5d3983cc69 (diff)
parent65cb40a975fb53187cfc5d9edea905b1f7630ab2 (diff)
Merge "Add new properties to aid in removing the 1-variant fallback" into main
Diffstat (limited to 'python/python.go')
-rw-r--r--python/python.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/python.go b/python/python.go
index 01ac86c71..d3e5743b5 100644
--- a/python/python.go
+++ b/python/python.go
@@ -90,6 +90,11 @@ type BaseProperties struct {
// the test. the file extension can be arbitrary except for (.py).
Data []string `android:"path,arch_variant"`
+ // Same as data, but will add dependencies on modules using the device's os variation and
+ // the common arch variation. Useful for a host test that wants to embed a module built for
+ // device.
+ Device_common_data []string `android:"path_device_common"`
+
// list of java modules that provide data that should be installed alongside the test.
Java_data []string
@@ -451,6 +456,7 @@ func (p *PythonLibraryModule) GenerateAndroidBuildActions(ctx android.ModuleCont
// expand data files from "data" property.
expandedData := android.PathsForModuleSrc(ctx, p.properties.Data)
+ expandedData = append(expandedData, android.PathsForModuleSrc(ctx, p.properties.Device_common_data)...)
// Emulate the data property for java_data dependencies.
for _, javaData := range ctx.GetDirectDepsWithTag(javaDataTag) {