Loading java/base.go +6 −0 Original line number Diff line number Diff line Loading @@ -1778,3 +1778,9 @@ type ProvidesUsesLib interface { func (j *Module) ProvidesUsesLib() *string { return j.usesLibraryProperties.Provides_uses_lib } type ModuleWithStem interface { Stem() string } var _ ModuleWithStem = (*Module)(nil) java/bootclasspath_fragment.go +12 −1 Original line number Diff line number Diff line Loading @@ -496,10 +496,21 @@ func (b *BootclasspathFragmentModule) ClasspathFragmentToConfiguredJarList(ctx a global := dexpreopt.GetGlobalConfig(ctx) // Convert content names to their appropriate stems, in case a test library is overriding an actual boot jar var stems []string for _, name := range b.properties.Contents { dep := ctx.GetDirectDepWithTag(name, bootclasspathFragmentContentDepTag) if m, ok := dep.(ModuleWithStem); ok { stems = append(stems, m.Stem()) } else { ctx.PropertyErrorf("contents", "%v is not a ModuleWithStem", name) } } // Only create configs for updatable boot jars. Non-updatable boot jars must be part of the // platform_bootclasspath's classpath proto config to guarantee that they come before any // updatable jars at runtime. return global.UpdatableBootJars.Filter(b.properties.Contents) return global.UpdatableBootJars.Filter(stems) } func (b *BootclasspathFragmentModule) getImageConfig(ctx android.EarlyModuleContext) *bootImageConfig { Loading java/systemserver_classpath_fragment.go +12 −1 Original line number Diff line number Diff line Loading @@ -97,10 +97,21 @@ func (s *SystemServerClasspathModule) GenerateAndroidBuildActions(ctx android.Mo func (s *SystemServerClasspathModule) ClasspathFragmentToConfiguredJarList(ctx android.ModuleContext) android.ConfiguredJarList { global := dexpreopt.GetGlobalConfig(ctx) // Convert content names to their appropriate stems, in case a test library is overriding an actual boot jar var stems []string for _, name := range s.properties.Contents { dep := ctx.GetDirectDepWithTag(name, systemServerClasspathFragmentContentDepTag) if m, ok := dep.(ModuleWithStem); ok { stems = append(stems, m.Stem()) } else { ctx.PropertyErrorf("contents", "%v is not a ModuleWithStem", name) } } // Only create configs for updatable boot jars. Non-updatable system server jars must be part of the // platform_systemserverclasspath's classpath proto config to guarantee that they come before any // updatable jars at runtime. return global.UpdatableSystemServerJars.Filter(s.properties.Contents) return global.UpdatableSystemServerJars.Filter(stems) } type systemServerClasspathFragmentContentDependencyTag struct { Loading Loading
java/base.go +6 −0 Original line number Diff line number Diff line Loading @@ -1778,3 +1778,9 @@ type ProvidesUsesLib interface { func (j *Module) ProvidesUsesLib() *string { return j.usesLibraryProperties.Provides_uses_lib } type ModuleWithStem interface { Stem() string } var _ ModuleWithStem = (*Module)(nil)
java/bootclasspath_fragment.go +12 −1 Original line number Diff line number Diff line Loading @@ -496,10 +496,21 @@ func (b *BootclasspathFragmentModule) ClasspathFragmentToConfiguredJarList(ctx a global := dexpreopt.GetGlobalConfig(ctx) // Convert content names to their appropriate stems, in case a test library is overriding an actual boot jar var stems []string for _, name := range b.properties.Contents { dep := ctx.GetDirectDepWithTag(name, bootclasspathFragmentContentDepTag) if m, ok := dep.(ModuleWithStem); ok { stems = append(stems, m.Stem()) } else { ctx.PropertyErrorf("contents", "%v is not a ModuleWithStem", name) } } // Only create configs for updatable boot jars. Non-updatable boot jars must be part of the // platform_bootclasspath's classpath proto config to guarantee that they come before any // updatable jars at runtime. return global.UpdatableBootJars.Filter(b.properties.Contents) return global.UpdatableBootJars.Filter(stems) } func (b *BootclasspathFragmentModule) getImageConfig(ctx android.EarlyModuleContext) *bootImageConfig { Loading
java/systemserver_classpath_fragment.go +12 −1 Original line number Diff line number Diff line Loading @@ -97,10 +97,21 @@ func (s *SystemServerClasspathModule) GenerateAndroidBuildActions(ctx android.Mo func (s *SystemServerClasspathModule) ClasspathFragmentToConfiguredJarList(ctx android.ModuleContext) android.ConfiguredJarList { global := dexpreopt.GetGlobalConfig(ctx) // Convert content names to their appropriate stems, in case a test library is overriding an actual boot jar var stems []string for _, name := range s.properties.Contents { dep := ctx.GetDirectDepWithTag(name, systemServerClasspathFragmentContentDepTag) if m, ok := dep.(ModuleWithStem); ok { stems = append(stems, m.Stem()) } else { ctx.PropertyErrorf("contents", "%v is not a ModuleWithStem", name) } } // Only create configs for updatable boot jars. Non-updatable system server jars must be part of the // platform_systemserverclasspath's classpath proto config to guarantee that they come before any // updatable jars at runtime. return global.UpdatableSystemServerJars.Filter(s.properties.Contents) return global.UpdatableSystemServerJars.Filter(stems) } type systemServerClasspathFragmentContentDependencyTag struct { Loading