diff options
author | 2017-06-27 10:38:55 -0700 | |
---|---|---|
committer | 2017-06-27 10:38:55 -0700 | |
commit | ca06ea33e980059f17dde3180b85864871feb161 (patch) | |
tree | b4feae1394aef6f620dd5e65824f71318301bc44 /build/codegen.go | |
parent | 2db58b6e0f0cb09740fd0e583b3cd6c91c73f917 (diff) |
Refactor module registration
Refactor module registration so that it doesn't need to separately
track properties.
Test: builds, no change to out/soong/build.ninja
Change-Id: I152f019d227d8fa9872742c03cf2381c674d675b
Diffstat (limited to 'build/codegen.go')
-rw-r--r-- | build/codegen.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/build/codegen.go b/build/codegen.go index ba6f2142c9..8526bf192b 100644 --- a/build/codegen.go +++ b/build/codegen.go @@ -22,8 +22,6 @@ import ( "android/soong/android" "sort" "strings" - - "github.com/google/blueprint" ) func codegen(ctx android.LoadHookContext, c *codegenProperties, library bool) { @@ -159,10 +157,8 @@ func defaultDeviceCodegenArches(ctx android.LoadHookContext) []string { return ret } -func installCodegenCustomizer(module blueprint.Module, props []interface{}, library bool) []interface{} { +func installCodegenCustomizer(module android.Module, library bool) { c := &codegenProperties{} android.AddLoadHook(module, func(ctx android.LoadHookContext) { codegen(ctx, c, library) }) - props = append(props, c) - - return props + module.AddProperties(c) } |