diff options
author | 2024-10-24 15:59:01 -0700 | |
---|---|---|
committer | 2024-10-24 16:02:48 -0700 | |
commit | a8bf946a22d5e7022c5fd2c748da226f0ee0a16e (patch) | |
tree | 03e721f8e60976b1e1508764e701b123d9b61e72 /java/java.go | |
parent | 17d5d891249cb15ac4dc87a4ee088cae2864789e (diff) |
Add device_first_vendor(_shared)_data
There are some host tests in internal that rely on the vendor variation
of other modules, that they include in their `data` property.
Add explicit properties for these dependencies so that they don't rely
on the 1-variant fallback.
Bug: 372091092
Test: m nothing
Change-Id: I51a50db2a06fdd3f885ac21f3ad3ce15386feb53
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go index f8b781df3..4460053f8 100644 --- a/java/java.go +++ b/java/java.go @@ -1301,6 +1301,16 @@ type testProperties struct { // host test. Device_first_data []string `android:"path_device_first"` + // same as data, but adds dependencies using the device's os variation, the device's first + // architecture's variation, and the vendor image variation. Can be used to add a module built + // for device to the data of a host test. + Device_first_vendor_data []string `android:"path_device_first_vendor"` + + // same as data, but adds dependencies using the device's os variation, the device's first + // architecture's variation, the vendor image variation, and the shared linkage variation. Can + // be used to add a module built for device to the data of a host test. + Device_first_vendor_shared_data []string `android:"path_device_first_vendor_shared"` + // same as data, but adds dependencies using the device's os variation and the device's first // 32-bit architecture's variation. If a 32-bit arch doesn't exist for this device, it will use // a 64 bit arch instead. Can be used to add a module built for device to the data of a @@ -1598,6 +1608,8 @@ func (j *Test) generateAndroidBuildActionsWithConfig(ctx android.ModuleContext, j.data = append(j.data, android.PathsForModuleSrc(ctx, j.testProperties.Device_common_data)...) j.data = append(j.data, android.PathsForModuleSrc(ctx, j.testProperties.Device_first_data)...) j.data = append(j.data, android.PathsForModuleSrc(ctx, j.testProperties.Device_first_prefer32_data)...) + j.data = append(j.data, android.PathsForModuleSrc(ctx, j.testProperties.Device_first_vendor_data)...) + j.data = append(j.data, android.PathsForModuleSrc(ctx, j.testProperties.Device_first_vendor_shared_data)...) j.extraTestConfigs = android.PathsForModuleSrc(ctx, j.testProperties.Test_options.Extra_test_configs) |