platform_build_soong/apex
Paul Duffin c04fb9e6a2 Remove deapexer and prebuilt apex select mutators
Originally, when the prebuilt_apex was first created, it selected the
source to use in its DepsMutator. It did that because that was a
convenient place for it to perform that work which had to be:
* After the arch mutator had run so MultiTargets() was available.
* Before the prebuilt_select mutator runs as that relied on the Source
  property to have been set.

Change 064b70c9 then duplicated the call from the DepsMutator of the
deapexer module type that was added as part of the work to make dex
files available for hiddenapi processing.

Change 356f7d45 moved it out of the the DepsMutator methods into its
their own mutators, presumably because it interfered with the
Soong -> Bazel conversion work.

This change improves the existing PrebuiltSrcsSupplier mechanism to
support reporting errors so that the logic for selecting the source can
be done on demand rather than in separate mutators.

The main complication was that PrebuiltSrcsSupplier is called with a
BaseModuleContext for both source and prebuilt modules so it cannot use
any methods on it that are related to the current module. That
necessitated adding MultiTargets() to android.Module.

Bug: 181267622
Test: m droid
Change-Id: I106c78fd21016f051a315b82b470d8f12b1f820b
2021-03-01 17:11:25 +00:00
..
allowed_deps.txt Merge "Add the new NetworkStack shim libraries to APEX allowed deps." 2021-02-24 16:01:08 +00:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
androidmk.go Merge "Revert "Revert "Automated NDK API coverage used by Mainline modules build integration.""" 2021-01-26 00:13:46 +00:00
apex.go Remove deapexer and prebuilt apex select mutators 2021-03-01 17:11:25 +00:00
apex_singleton.go Add PHONY for apex-allowed-deps check. 2020-11-04 20:50:03 +00:00
apex_test.go Verify the prebuilt_apex selects the correct input apex file 2021-03-01 17:10:31 +00:00
boot_image_test.go Fix some minor issues with boot_image 2021-01-30 12:57:26 +00:00
builder.go Pass list of module libraries to gen_ndk_backed_by_apex.sh 2021-02-08 16:52:07 -08:00
deapexer.go Remove deapexer and prebuilt apex select mutators 2021-03-01 17:11:25 +00:00
key.go Remove unnecessary snake case variables. 2020-12-22 12:38:35 -08:00
OWNERS Track allowed transitive deps in any updatable module. 2020-09-30 21:17:42 +00:00
prebuilt.go Remove deapexer and prebuilt apex select mutators 2021-03-01 17:11:25 +00:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
vndk.go Rename ART release APEX to com.android.art. 2020-10-21 15:41:02 +01:00
vndk_test.go Create vndkproduct.libraries.txt 2021-01-05 20:05:39 +09:00