diff options
author | Jiyong Park <jiyong@google.com> | 2024-03-26 23:24:19 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-03-26 23:24:19 +0000 |
commit | 8399758b977b8b54cc3600278bac0cc292321cc0 (patch) | |
tree | 083c4be785fef228bd5c1f48a538dc51b68ce4c2 | |
parent | 58d9063b66f5c1d2e2163026e71b966d097b48ed (diff) | |
parent | 92b8e8f1bbf0d3425d1aa9bb010a3e40bbb5854b (diff) | |
download | soong-8399758b977b8b54cc3600278bac0cc292321cc0.tar.gz |
Merge "Add test preparer for phony module types" into main
-rw-r--r-- | phony/phony.go | 10 |
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 |