summaryrefslogtreecommitdiff
path: root/build/codegen.go
diff options
context:
space:
mode:
Diffstat (limited to 'build/codegen.go')
-rw-r--r--build/codegen.go8
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)
}