Loading java/platform_bootclasspath.go +3 −25 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ func init() { } func registerPlatformBootclasspathBuildComponents(ctx android.RegistrationContext) { ctx.RegisterParallelSingletonModuleType("platform_bootclasspath", platformBootclasspathFactory) ctx.RegisterModuleType("platform_bootclasspath", platformBootclasspathFactory) } // The tags used for the dependencies between the platform bootclasspath and any configured boot Loading @@ -37,7 +37,7 @@ var ( ) type platformBootclasspathModule struct { android.SingletonModuleBase android.ModuleBase ClasspathFragmentBase properties platformBootclasspathProperties Loading @@ -64,7 +64,7 @@ type platformBootclasspathProperties struct { HiddenAPIFlagFileProperties } func platformBootclasspathFactory() android.SingletonModule { func platformBootclasspathFactory() android.Module { m := &platformBootclasspathModule{} m.AddProperties(&m.properties) initClasspathFragment(m, BOOTCLASSPATH) Loading Loading @@ -156,18 +156,6 @@ func addDependenciesOntoBootImageModules(ctx android.BottomUpMutatorContext, mod } } // GenerateSingletonBuildActions does nothing and must never do anything. // // This module only implements android.SingletonModule so that it can implement // android.SingletonMakeVarsProvider. func (b *platformBootclasspathModule) GenerateSingletonBuildActions(android.SingletonContext) { // Keep empty } func (d *platformBootclasspathModule) MakeVars(ctx android.MakeVarsContext) { d.generateHiddenApiMakeVars(ctx) } func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) { // Gather all the dependencies from the art, platform, and apex boot jars. artModules := gatherApexModulePairDepsWithTag(ctx, platformBootclasspathArtBootJarDepTag) Loading Loading @@ -428,13 +416,3 @@ func (b *platformBootclasspathModule) buildRuleMergeCSV(ctx android.ModuleContex rule.Build(desc, desc) } // generateHiddenApiMakeVars generates make variables needed by hidden API related make rules, e.g. // veridex and run-appcompat. func (b *platformBootclasspathModule) generateHiddenApiMakeVars(ctx android.MakeVarsContext) { if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") { return } // INTERNAL_PLATFORM_HIDDENAPI_FLAGS is used by Make rules in art/ and cts/. ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_FLAGS", b.hiddenAPIFlagsCSV.String()) } Loading
java/platform_bootclasspath.go +3 −25 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ func init() { } func registerPlatformBootclasspathBuildComponents(ctx android.RegistrationContext) { ctx.RegisterParallelSingletonModuleType("platform_bootclasspath", platformBootclasspathFactory) ctx.RegisterModuleType("platform_bootclasspath", platformBootclasspathFactory) } // The tags used for the dependencies between the platform bootclasspath and any configured boot Loading @@ -37,7 +37,7 @@ var ( ) type platformBootclasspathModule struct { android.SingletonModuleBase android.ModuleBase ClasspathFragmentBase properties platformBootclasspathProperties Loading @@ -64,7 +64,7 @@ type platformBootclasspathProperties struct { HiddenAPIFlagFileProperties } func platformBootclasspathFactory() android.SingletonModule { func platformBootclasspathFactory() android.Module { m := &platformBootclasspathModule{} m.AddProperties(&m.properties) initClasspathFragment(m, BOOTCLASSPATH) Loading Loading @@ -156,18 +156,6 @@ func addDependenciesOntoBootImageModules(ctx android.BottomUpMutatorContext, mod } } // GenerateSingletonBuildActions does nothing and must never do anything. // // This module only implements android.SingletonModule so that it can implement // android.SingletonMakeVarsProvider. func (b *platformBootclasspathModule) GenerateSingletonBuildActions(android.SingletonContext) { // Keep empty } func (d *platformBootclasspathModule) MakeVars(ctx android.MakeVarsContext) { d.generateHiddenApiMakeVars(ctx) } func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) { // Gather all the dependencies from the art, platform, and apex boot jars. artModules := gatherApexModulePairDepsWithTag(ctx, platformBootclasspathArtBootJarDepTag) Loading Loading @@ -428,13 +416,3 @@ func (b *platformBootclasspathModule) buildRuleMergeCSV(ctx android.ModuleContex rule.Build(desc, desc) } // generateHiddenApiMakeVars generates make variables needed by hidden API related make rules, e.g. // veridex and run-appcompat. func (b *platformBootclasspathModule) generateHiddenApiMakeVars(ctx android.MakeVarsContext) { if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") { return } // INTERNAL_PLATFORM_HIDDENAPI_FLAGS is used by Make rules in art/ and cts/. ctx.Strict("INTERNAL_PLATFORM_HIDDENAPI_FLAGS", b.hiddenAPIFlagsCSV.String()) }