Lines Matching refs:tool
261 tool := ctx.OtherModuleName(module)
267 ctx.AddMissingDependencies([]string{tool})
269 ctx.ModuleErrorf("depends on disabled module %q", tool)
275 ctx.ModuleErrorf("%q is not a host tool provider", tool)
281 if _, exists := tools[tool]; !exists {
282 tools[tool] = path.Path()
284 ctx.ModuleErrorf("multiple tools for %q, %q and %q", tool, tools[tool], path.Path().String())
287 ctx.ModuleErrorf("host tool %q missing output file", tool)
294 for _, tool := range g.properties.Tool_files {
295 toolPath := android.PathForModuleSrc(ctx, tool)
297 if _, exists := tools[tool]; !exists {
298 tools[tool] = toolPath
300 ctx.ModuleErrorf("multiple tools for %q, %q and %q", tool, tools[tool], toolPath.String())
327 if tool, ok := tools[label]; ok {
328 return tool.String(), nil