Lines Matching refs:g

232 func (g *hidlGenRule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
233 g.genOutputDir = android.PathForModuleGen(ctx)
235 for _, input := range g.properties.Inputs {
236 g.genInputs = append(g.genInputs, android.PathForModuleSrc(ctx, input))
240 for _, src := range g.properties.Inputs {
246 switch g.properties.Language {
248 g.genOutputs = append(g.genOutputs, android.PathForModuleGen(ctx, "lint.json"))
251g.genOutputs = append(g.genOutputs, android.PathForModuleGen(ctx, intf+"_inheritance_hierarchy.jso…
254 for _, output := range g.properties.Outputs {
255 g.genOutputs = append(g.genOutputs, android.PathForModuleGen(ctx, output))
259 if g.properties.Language == "vts" && isVtsSpecPackage(ctx.ModuleName()) {
262 *vtsList = append(*vtsList, g.genOutputs.Paths()...)
287 inputs := g.genInputs
293 if g.properties.Language == "java" {
297 if g.properties.Language == "lint" {
301 Output: g.genOutputs[0],
303 "output": g.genOutputs[0].String(),
304 "fqName": g.properties.FqName,
312 if g.properties.Language == "inheritance-hierarchy" {
317 Output: g.genOutputs[i],
319 "fqInterface": g.properties.FqName + "::" + intf,
331 Output: g.genOutputs[0],
332 ImplicitOutputs: g.genOutputs[1:],
334 "depfile": g.genOutputs[0].String() + ".d",
335 "genDir": g.genOutputDir.String(),
336 "fqName": g.properties.FqName,
337 "language": g.properties.Language,
343 func (g *hidlGenRule) GeneratedSourceFiles() android.Paths {
344 return g.genOutputs.Paths()
347 func (g *hidlGenRule) Srcs() android.Paths {
348 return g.genOutputs.Paths()
351 func (g *hidlGenRule) GeneratedDeps() android.Paths {
352 return g.genOutputs.Paths()
355 func (g *hidlGenRule) GeneratedHeaderDirs() android.Paths {
356 return android.Paths{g.genOutputDir}
359 func (g *hidlGenRule) DepsMutator(ctx android.BottomUpMutatorContext) {
360 ctx.AddDependency(ctx.Module(), nil, g.properties.FqName+hidlInterfaceSuffix)
361 ctx.AddDependency(ctx.Module(), nil, wrap("", g.properties.Interfaces, hidlInterfaceSuffix)...)
362 ctx.AddDependency(ctx.Module(), nil, g.properties.Root)
368 g := &hidlGenRule{}
369 g.AddProperties(&g.properties)
370 android.InitAndroidModule(g)
371 return g
396 func (g *vtscRule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
397 g.genOutputDir = android.PathForModuleGen(ctx)
401 g.genInputDir = specs.genOutputDir
402 g.genInputs = specs.genOutputs.Paths()
406 for _, output := range g.properties.Outputs {
407 g.genOutputs = append(g.genOutputs, android.PathForModuleGen(ctx, output))
412 Inputs: g.genInputs,
413 Outputs: g.genOutputs,
415 "mode": g.properties.Mode,
416 "type": g.properties.Type,
417 "inputDir": g.genInputDir.String(),
418 "genDir": g.genOutputDir.String(),
419 "packagePath": g.properties.PackagePath,
424 func (g *vtscRule) GeneratedSourceFiles() android.Paths {
425 return g.genOutputs.Paths()
428 func (g *vtscRule) Srcs() android.Paths {
429 return g.genOutputs.Paths()
432 func (g *vtscRule) GeneratedDeps() android.Paths {
433 return g.genOutputs.Paths()
436 func (g *vtscRule) GeneratedHeaderDirs() android.Paths {
437 return android.Paths{g.genOutputDir}
440 func (g *vtscRule) DepsMutator(ctx android.BottomUpMutatorContext) {
441 ctx.AddDependency(ctx.Module(), nil, g.properties.SpecName)
445 g := &vtscRule{}
446 g.AddProperties(&g.properties)
447 android.InitAndroidModule(g)
448 return g