Merge "Use a presingleton to create hiddenapi singleton paths early"
am: 17c85f098a
Change-Id: Ib94cff44bb21cd1dead01683b194bc6d8d7e20d6
This commit is contained in:
commit
a0e1404cf9
1 changed files with 13 additions and 0 deletions
|
@ -19,6 +19,7 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
android.RegisterPreSingletonType("pre-hiddenapi", hiddenAPIPreSingletonFactory)
|
||||
android.RegisterSingletonType("hiddenapi", hiddenAPISingletonFactory)
|
||||
}
|
||||
|
||||
|
@ -43,6 +44,18 @@ func hiddenAPISingletonPaths(ctx android.PathContext) hiddenAPISingletonPathsStr
|
|||
}).(hiddenAPISingletonPathsStruct)
|
||||
}
|
||||
|
||||
func hiddenAPIPreSingletonFactory() android.Singleton {
|
||||
return hiddenAPIPreSingleton{}
|
||||
}
|
||||
|
||||
type hiddenAPIPreSingleton struct{}
|
||||
|
||||
// hiddenAPI pre-singleton rules to ensure paths are always generated before
|
||||
// makevars
|
||||
func (hiddenAPIPreSingleton) GenerateBuildActions(ctx android.SingletonContext) {
|
||||
hiddenAPISingletonPaths(ctx)
|
||||
}
|
||||
|
||||
func hiddenAPISingletonFactory() android.Singleton {
|
||||
return hiddenAPISingleton{}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue