Merge "Make platform_bootclasspath a singleton module" am: 86477cfeb2
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1690547 Change-Id: I5fe5f37dfc470674f7a7fe7907584ccaf0ea1d7a
This commit is contained in:
@@ -26,7 +26,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func registerPlatformBootclasspathBuildComponents(ctx android.RegistrationContext) {
|
func registerPlatformBootclasspathBuildComponents(ctx android.RegistrationContext) {
|
||||||
ctx.RegisterModuleType("platform_bootclasspath", platformBootclasspathFactory)
|
ctx.RegisterSingletonModuleType("platform_bootclasspath", platformBootclasspathFactory)
|
||||||
}
|
}
|
||||||
|
|
||||||
// The tags used for the dependencies between the platform bootclasspath and any configured boot
|
// The tags used for the dependencies between the platform bootclasspath and any configured boot
|
||||||
@@ -38,7 +38,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type platformBootclasspathModule struct {
|
type platformBootclasspathModule struct {
|
||||||
android.ModuleBase
|
android.SingletonModuleBase
|
||||||
ClasspathFragmentBase
|
ClasspathFragmentBase
|
||||||
|
|
||||||
properties platformBootclasspathProperties
|
properties platformBootclasspathProperties
|
||||||
@@ -69,7 +69,7 @@ type platformBootclasspathProperties struct {
|
|||||||
Hidden_api HiddenAPIFlagFileProperties
|
Hidden_api HiddenAPIFlagFileProperties
|
||||||
}
|
}
|
||||||
|
|
||||||
func platformBootclasspathFactory() android.Module {
|
func platformBootclasspathFactory() android.SingletonModule {
|
||||||
m := &platformBootclasspathModule{}
|
m := &platformBootclasspathModule{}
|
||||||
m.AddProperties(&m.properties)
|
m.AddProperties(&m.properties)
|
||||||
// TODO(satayev): split systemserver and apex jars into separate configs.
|
// TODO(satayev): split systemserver and apex jars into separate configs.
|
||||||
@@ -154,6 +154,18 @@ 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) {
|
||||||
|
// Placeholder for now.
|
||||||
|
}
|
||||||
|
|
||||||
func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
func (b *platformBootclasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||||
b.classpathFragmentBase().generateAndroidBuildActions(ctx)
|
b.classpathFragmentBase().generateAndroidBuildActions(ctx)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user