summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--phony/phony.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/phony/phony.go b/phony/phony.go
index b8dbd00d0..68fbf48d0 100644
--- a/phony/phony.go
+++ b/phony/phony.go
@@ -23,10 +23,16 @@ import (
)
func init() {
- android.RegisterModuleType("phony", PhonyFactory)
- android.RegisterModuleType("phony_rule", PhonyRuleFactory)
+ registerPhonyModuleTypes(android.InitRegistrationContext)
}
+func registerPhonyModuleTypes(ctx android.RegistrationContext) {
+ ctx.RegisterModuleType("phony", PhonyFactory)
+ ctx.RegisterModuleType("phony_rule", PhonyRuleFactory)
+}
+
+var PrepareForTestWithPhony = android.FixtureRegisterWithContext(registerPhonyModuleTypes)
+
type phony struct {
android.ModuleBase
requiredModuleNames []string