platform_build_soong/sdk
Liz Kammer 96320dfff8 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
2022-05-23 10:51:22 -04:00
..
Android.bp Support handling build releases in sdk snapshot 2021-10-01 17:17:34 +01:00
bootclasspath_fragment_sdk_test.go Add ART boot image profile to the ART APEX. 2021-12-03 20:02:10 +00:00
bp.go Add support for name-less modules and property comments 2021-05-11 01:00:12 +01:00
bp_test.go Replace AssertPanic with AssertPanicMessageContains 2021-03-20 12:08:51 +00:00
build_release.go Use Tiramisu instead of T in supported_build_releases 2022-02-10 13:06:54 +00:00
build_release_test.go Use Tiramisu instead of T in supported_build_releases 2022-02-10 13:06:54 +00:00
cc_sdk_test.go Handle multiple linkages in sdk snapshots 2022-05-23 10:51:22 -04:00
compat_config_sdk_test.go Filter duplicate modules in platform_compat_config_singleton 2021-03-25 12:53:25 +00:00
exports.go Extract sdk registration code into function for reuse 2021-03-09 23:03:45 +00:00
exports_test.go Migrate sdk tests away from checkAndroidBpContents 2021-04-16 18:48:20 +01:00
java_sdk_test.go For each sdk built generate a JSON file describing its contents 2022-05-06 10:17:29 +00:00
license_sdk_test.go Add package module to sdk snapshot that contains licenses 2021-05-11 08:38:30 +01:00
member_trait.go Removes usages of SdkMemberTrait/TypeRegistry outside android/sdk.go 2021-09-23 11:37:57 +01:00
member_trait_test.go Add support to sdk/module_exports to specify required traits 2021-09-23 11:37:51 +01:00
member_type.go Removes usages of SdkMemberTrait/TypeRegistry outside android/sdk.go 2021-09-23 11:37:57 +01:00
sdk.go For each sdk built generate a JSON file describing its contents 2022-05-06 10:17:29 +00:00
sdk_test.go For each sdk built generate a JSON file describing its contents 2022-05-06 10:17:29 +00:00
systemserverclasspath_fragment_sdk_test.go Generate prebuilt_systemserverclasspath_fragment. 2021-09-30 10:06:24 +00:00
testing.go For each sdk built generate a JSON file describing its contents 2022-05-06 10:17:29 +00:00
update.go Handle multiple linkages in sdk snapshots 2022-05-23 10:51:22 -04:00