diff options
author | 2018-09-28 10:19:18 -0700 | |
---|---|---|
committer | 2018-09-28 10:25:45 -0700 | |
commit | 2465c3d99833988c726a145896bf180f304de18b (patch) | |
tree | ae73e795f34c6d31207b98a79acf78cbbd7daee5 /android/singleton.go | |
parent | f25112a70f385261b62bc6c5821518c2659ac1b6 (diff) |
Add phony targets for go binary modules
Add custom handling to androidmk.go for the bootstrap.GoBinaryTool
interface in order to create .PHONY targets for each tool written
in go.
Bug: 64539926
Test: m checkbuild
Test: m androidmk
Test: m multiproduct_kati
Change-Id: Ic65faa27a6ee4dfbd54ed6d208091db7c1d657a2
Diffstat (limited to 'android/singleton.go')
-rw-r--r-- | android/singleton.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android/singleton.go b/android/singleton.go index fa1efdc0f..f926435b1 100644 --- a/android/singleton.go +++ b/android/singleton.go @@ -48,6 +48,7 @@ type SingletonContext interface { // are expanded in the scope of the PackageContext. Eval(pctx PackageContext, ninjaStr string) (string, error) + VisitAllModulesBlueprint(visit func(blueprint.Module)) VisitAllModules(visit func(Module)) VisitAllModulesIf(pred func(Module) bool, visit func(Module)) // Deprecated: use WalkDeps instead to support multiple dependency tags on the same module @@ -138,6 +139,10 @@ func predAdaptor(pred func(Module) bool) func(blueprint.Module) bool { } } +func (s singletonContextAdaptor) VisitAllModulesBlueprint(visit func(blueprint.Module)) { + s.SingletonContext.VisitAllModules(visit) +} + func (s singletonContextAdaptor) VisitAllModules(visit func(Module)) { s.SingletonContext.VisitAllModules(visitAdaptor(visit)) } |