summaryrefslogtreecommitdiff
path: root/java/java_resources.go
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2024-10-22 18:31:25 +0000
committer Spandan Das <spandandas@google.com> 2024-10-22 18:41:28 +0000
commit405f2d449957364873dd9abaa3e5461b2524dc83 (patch)
tree37c52818185dae386aac321df83258730c426a0b /java/java_resources.go
parent47c0826a9f2edd2292e9c45eceb403f7dc636ee1 (diff)
Use shared variant of dep for packaging
For native modules that have both static and shared variants (e.g. cc_library), the deps mutator of android_filesystem would always create a dep to the static variant. This is likely due to the fact that `AddFarVariationDependencies` creates a dependency on the first variant of the dep which matches the requested variations. `static` appears before `shared` in linkMutator, and therefore android_filesystem would always create a dep to the static variant. This CL uses `OtherModuleFarDependencyVariantExists` to create a dep to the shared variant. If a cc_library is listed in `PRODUCT_PACKAGES`, it always means the shared variant. Test: go test./filesystem Test: diff in kati install files of vendor/ before and after this CL https://diff.googleplex.com/#key=qrY73chVkwff Change-Id: Iea9d6fde199ef95d43da2c041e2f84e5a7951285
Diffstat (limited to 'java/java_resources.go')
0 files changed, 0 insertions, 0 deletions