platform_build_soong/sdk
Paul Duffin 17ab883cb0 Make new module creation API more flexible
Previously passing additional information to the implementations of
AddPrebuiltModule() or the SdkMemberProperties interface would have
required making changes to the API. This change added an
SdkMemberContext object into which additional information can easily
be added without requiring changes to existing implementations.

The BuildSnapshot() method was not modified because it is deprecated
and will be removed in a follow up change.

It also switches the API from passing variants as android.SdkAware to
android.Module. That is for a couple of reasons:
1) SdkAware is designed for managing the relationship between the
   module and the SDK, not for generating the output snapshot. As such
   there is nothing in SdkAware that is needed for generating the
   output snapshot.
2) Accepting android.Module instead makes it easier to use the
   underlying code for generating the snapshot module as well as the
   individual member modules.

This is in preparation for a number of improvements and bug fixes in
both the snapshot creation code and implementations to address found
while trying to built the platform against ART prebuilts.

Bug: 151937654
Bug: 153306490
Test: m nothing
Merged-In: Iac10f1200c0f283aa35402167eec8f9aeb65a38e
Change-Id: Iac10f1200c0f283aa35402167eec8f9aeb65a38e
2020-04-22 12:51:44 +01:00
..
bp.go Fix bug in error reporting when adding duplicate properties 2020-04-22 12:51:28 +01:00
bp_test.go Add support for transforming a property set after its contents 2020-04-22 12:51:25 +01:00
cc_sdk_test.go Add support for using cc_library in sdk/module_exports 2020-04-22 12:51:43 +01:00
exports.go Restrict SdkMemberTypes that can be used with sdk/sdk_snapshot 2019-12-31 15:08:59 +00:00
exports_test.go Add CommonOS variant for sdk 2020-04-22 12:51:28 +01:00
java_sdk_test.go Output properties before sets in snapshot module 2020-04-22 12:51:40 +01:00
sdk.go Copy shared_libs and system_shared_libs to module snapshot 2020-04-22 12:51:38 +01:00
sdk_test.go Support extracting common values from embedded structures 2020-04-22 12:51:38 +01:00
testing.go Support extracting common values from embedded structures 2020-04-22 12:51:38 +01:00
update.go Make new module creation API more flexible 2020-04-22 12:51:44 +01:00