diff options
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. // |