diff options
author | 2021-06-21 07:17:28 +0000 | |
---|---|---|
committer | 2021-06-21 07:17:28 +0000 | |
commit | 348f20be0e57756043d453fbb673f91e43e8a645 (patch) | |
tree | 2e88d736bbf4a3b0fd8da9904dd8978c851e0768 /apex/apex.go | |
parent | 9e2dcbd08000ffc5d28a9f7d3681eeae66072818 (diff) | |
parent | b0c1f0c45a2d105fdcd6cda3f3f841c2a7addf2c (diff) |
Merge "AIDEGen: Collect dependencies info from APEX module."
Diffstat (limited to 'apex/apex.go')
-rw-r--r-- | apex/apex.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go index 494e167b5..7ffa6cc81 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -414,6 +414,9 @@ type apexBundle struct { // Path of API coverage generate file apisUsedByModuleFile android.ModuleOutPath apisBackedByModuleFile android.ModuleOutPath + + // Collect the module directory for IDE info in java/jdeps.go. + modulePaths []string } // apexFileClass represents a type of file that can be included in APEX. @@ -1689,6 +1692,9 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) { handleSpecialLibs := !android.Bool(a.properties.Ignore_system_library_special_case) + // Collect the module directory for IDE info in java/jdeps.go. + a.modulePaths = append(a.modulePaths, ctx.ModuleDir()) + // TODO(jiyong): do this using WalkPayloadDeps // TODO(jiyong): make this clean!!! ctx.WalkDepsBlueprint(func(child, parent blueprint.Module) bool { @@ -2456,6 +2462,14 @@ func (a *apexBundle) checkApexAvailability(ctx android.ModuleContext) { }) } +// Collect information for opening IDE project files in java/jdeps.go. +func (a *apexBundle) IDEInfo(dpInfo *android.IdeInfo) { + dpInfo.Deps = append(dpInfo.Deps, a.properties.Java_libs...) + dpInfo.Deps = append(dpInfo.Deps, a.properties.Bootclasspath_fragments...) + dpInfo.Deps = append(dpInfo.Deps, a.properties.Systemserverclasspath_fragments...) + dpInfo.Paths = append(dpInfo.Paths, a.modulePaths...) +} + var ( apexAvailBaseline = makeApexAvailableBaseline() inverseApexAvailBaseline = invertApexBaseline(apexAvailBaseline) |