From f9964d5a8d16a092c52b45674be6009d9018aa4b Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Mon, 11 May 2015 13:38:59 -0700 Subject: Use far dependency for genrule tool A far dependency will not inherit any of the variations from the current module, allowing a device genrule to depend on a host tool to generate the sources. Change-Id: I7f622ddd31a81d605f55d5946a109ea53e864084 --- genrule/genrule.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'genrule') diff --git a/genrule/genrule.go b/genrule/genrule.go index 0f276d06..42ab047a 100644 --- a/genrule/genrule.go +++ b/genrule/genrule.go @@ -77,7 +77,8 @@ func (g *generator) GeneratedSourceFiles() []string { func (g *generator) AndroidDynamicDependencies(ctx common.AndroidDynamicDependerModuleContext) []string { if g.properties.Tool != "" { - return []string{g.properties.Tool} + ctx.AddFarVariationDependencies([]blueprint.Variation{{"hostordevice", common.Host.String()}}, + g.properties.Tool) } return nil } -- cgit v1.2.3