Refactor factories
Change module factories from returning a blueprint.Module and a list of property structs to returning an android.Module, which holds the list of property structs. Test: build.ninja identical except for Factory: comment lines Change-Id: Ica1d823f009db812c518f271a386fbff39c9766f
This commit is contained in:
@@ -15,8 +15,6 @@
|
||||
package genrule
|
||||
|
||||
import (
|
||||
"github.com/google/blueprint"
|
||||
|
||||
"android/soong/android"
|
||||
)
|
||||
|
||||
@@ -48,10 +46,11 @@ var _ android.SourceFileProducer = (*fileGroup)(nil)
|
||||
// filegroup modules contain a list of files, and can be used to export files across package
|
||||
// boundaries. filegroups (and genrules) can be referenced from srcs properties of other modules
|
||||
// using the syntax ":module".
|
||||
func FileGroupFactory() (blueprint.Module, []interface{}) {
|
||||
func FileGroupFactory() android.Module {
|
||||
module := &fileGroup{}
|
||||
|
||||
return android.InitAndroidModule(module, &module.properties)
|
||||
module.AddProperties(&module.properties)
|
||||
android.InitAndroidModule(module)
|
||||
return module
|
||||
}
|
||||
|
||||
func (fg *fileGroup) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||
|
Reference in New Issue
Block a user