diff options
| author | 2025-01-07 19:27:00 -0800 | |
|---|---|---|
| committer | 2025-01-07 19:27:00 -0800 | |
| commit | 5ad8279fb4ea8f27968b4ce38dbacd51cb8a8b76 (patch) | |
| tree | e841a175a27b48fe51c9ac8622b14cccc02646c9 /python/python.go | |
| parent | f8ac19663f24e83d9d4a037f9bbccc93d3ed99bf (diff) | |
| parent | 25f5ae4c88e937cf25931eae3fac2468d341f741 (diff) | |
Merge "Add device_first_data to python modules" into main
Diffstat (limited to 'python/python.go')
| -rw-r--r-- | python/python.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/python.go b/python/python.go index be9411bbf..914b77e2f 100644 --- a/python/python.go +++ b/python/python.go @@ -95,6 +95,11 @@ type BaseProperties struct { // device. Device_common_data []string `android:"path_device_common"` + // Same as data, but will add dependencies on modules via a device os variation and the + // device's first supported arch's variation. Useful for a host test that wants to embed a + // module built for device. + Device_first_data []string `android:"path_device_first"` + // list of java modules that provide data that should be installed alongside the test. Java_data []string @@ -456,6 +461,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)...) + expandedData = append(expandedData, android.PathsForModuleSrc(ctx, p.properties.Device_first_data)...) // Emulate the data property for java_data dependencies. for _, javaData := range ctx.GetDirectDepsWithTag(javaDataTag) { |