diff options
| author | 2021-04-08 23:01:37 +0100 | |
|---|---|---|
| committer | 2021-04-16 00:29:53 +0100 | |
| commit | 9b381ef2b898156bea070edd045d7e86d79b4fb3 (patch) | |
| tree | bb6f1f1886b8e0ddeb026d4e6cd9a43698ee6645 /java/hiddenapi_modular.go | |
| parent | 192131e36b528e90e35960f60abc9475cbe8f0ff (diff) | |
platform_bootclasspath: aggregate hidden API flag files from fragments
Aggregates hidden API flag files from the bootclasspath_fragments which
will allow the hidden API flag files in frameworks/base/boot/hiddenapi
to be modularized and moved to the appropriate repo.
Bug: 177892522
Test: verified that the out/soong/hiddenapi/... files are unchanged
by this change
also verified that changes to the fragment provided files do
affect the monolithic files.
Change-Id: Ifce14c9ef24c58c7ab1085475d85b61cfbfefecd
Diffstat (limited to 'java/hiddenapi_modular.go')
| -rw-r--r-- | java/hiddenapi_modular.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/java/hiddenapi_modular.go b/java/hiddenapi_modular.go index 7cf082b6a..e5dba33e8 100644 --- a/java/hiddenapi_modular.go +++ b/java/hiddenapi_modular.go @@ -16,6 +16,7 @@ package java import ( "android/soong/android" + "github.com/google/blueprint" ) // Contains support for processing hiddenAPI in a modular fashion. @@ -172,6 +173,14 @@ type hiddenAPIFlagFileInfo struct { categoryToPaths map[*hiddenAPIFlagFileCategory]android.Paths } +func (i *hiddenAPIFlagFileInfo) append(other hiddenAPIFlagFileInfo) { + for _, category := range hiddenAPIFlagFileCategories { + i.categoryToPaths[category] = append(i.categoryToPaths[category], other.categoryToPaths[category]...) + } +} + +var hiddenAPIFlagFileInfoProvider = blueprint.NewProvider(hiddenAPIFlagFileInfo{}) + // ruleToGenerateHiddenApiFlags creates a rule to create the monolithic hidden API flags from the // flags from all the modules, the stub flags, augmented with some additional configuration files. // |