diff options
author | Colin Cross <ccross@android.com> | 2017-06-23 15:06:31 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-06-30 21:08:36 +0000 |
commit | 36242850fdad11b4e6fbe061ef30f62e7e8c08d8 (patch) | |
tree | a3ca380533afd39e733c658560f87effb1ee0a46 /phony | |
parent | 48173891485a22c9cab0e48f90a3a23be212f44a (diff) | |
download | build_soong-36242850fdad11b4e6fbe061ef30f62e7e8c08d8.tar.gz build_soong-36242850fdad11b4e6fbe061ef30f62e7e8c08d8.tar.bz2 build_soong-36242850fdad11b4e6fbe061ef30f62e7e8c08d8.zip |
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
Diffstat (limited to 'phony')
-rw-r--r-- | phony/phony.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/phony/phony.go b/phony/phony.go index c405af8a..79f3a1ba 100644 --- a/phony/phony.go +++ b/phony/phony.go @@ -19,8 +19,6 @@ import ( "io" "strings" - "github.com/google/blueprint" - "android/soong/android" ) @@ -33,10 +31,11 @@ type phony struct { requiredModuleNames []string } -func phonyFactory() (blueprint.Module, []interface{}) { +func phonyFactory() android.Module { module := &phony{} - return android.InitAndroidModule(module) + android.InitAndroidModule(module) + return module } func (p *phony) DepsMutator(ctx android.BottomUpMutatorContext) { |