3576e769a4
Every module belonging to a single mainline module family will be hidden from make, except the one which has been flagged using apex_contributions Details - Introduce a new `source_apex_name` property to prebuilt_apex and override_apex. This property will be used to identify the source equivalent of a prebuilt soong apex module. - Create an N-ary tree from source to prebuilt(s). The tree wil be rooted at the source module. - In a subsequent mutator, visit every node in the tree(s). Query apex_contributions and store the handle of the node which is "active" (if any) - In the same mutator, do another pass over the tree. Invoke `HideFromMake` on every node which is not "active". The two-pass approach is needed PrebuiltSelectionInfoProvider does not know about the inter source-prebuilt dependency, this dependency can only be known by doing a graph walk of the N-ary tree. Some tangential implementation details - Each prebuilt apex has an internal deapxer module that is responsible for generating the deapex ninja rules. The name of this internal module uses the BaseModuleName (without the prebuilt_ prefix). Since we can have multiple prebuilt soong modules in trunk stable, change this to follow the name of the prebuilt module in order to avoid name collisions. Update existing unit tests accordingly Bug: 316179314 Test: go test ./apex -run TestInstallationRulesForMultipleApexPrebuilts Test: m nothing --no-skip-soong-tests Test: presubmits Change-Id: I58aa99d5e6a9859954614e6db9a8e9e2e581642d |
||
---|---|---|
.. | ||
Android.bp | ||
bootclasspath_fragment_sdk_test.go | ||
bp.go | ||
bp_test.go | ||
build_release.go | ||
build_release_test.go | ||
cc_sdk_test.go | ||
compat_config_sdk_test.go | ||
exports.go | ||
exports_test.go | ||
genrule.go | ||
genrule_test.go | ||
java_sdk_test.go | ||
license_sdk_test.go | ||
member_trait.go | ||
member_trait_test.go | ||
member_type.go | ||
sdk.go | ||
sdk_test.go | ||
systemserverclasspath_fragment_sdk_test.go | ||
testing.go | ||
update.go |