diff options
author | 2022-05-12 20:40:00 -0400 | |
---|---|---|
committer | 2022-05-23 10:51:22 -0400 | |
commit | 96320dfff8fd5859a5e5f2a5c74bf8d79dd6499d (patch) | |
tree | 2daf8bf3214a0fe1d79d0a668c8f56149126e7fd /java/java.go | |
parent | 4dd76eb26c6f673a85d1c33c504e3beb1324bcdb (diff) |
Handle multiple linkages in sdk snapshots
Currently, if the same library is specified for multiple of native_libs,
native_shared_libs, and native_static_libs for different arch/oses,
there can be a few errors:
1. specifying a .so file as `srcs` within a cc_prebuilt_library rather
than being specified only for shared
2. the final type of prebuilt library is dependent on the arch/os
This change introduces:
* an ability for a member type to override the type for specified
properties
* checks for a library being used with incompatible member types
* basing linkage nesting on the member type in addition to variants
This will ensure that the correct library type is used, regardless of
the order of iteration over oses/arches, and support nesting linkages
where necessary but only one linkage variant exists.
Test: soong tests
Test: CI
Change-Id: I81dee013b09b99c34ca6c18f9cfcc12ee56d33d1
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions