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()...)
289 inputs := g.genInputs
295 if g.properties.Language == "java" {
299 if g.properties.Language == "lint" {
303 Output: g.genOutputs[0],
305 "output": g.genOutputs[0].String(),
306 "fqName": g.properties.FqName,
314 if g.properties.Language == "inheritance-hierarchy" {
319 Output: g.genOutputs[i],
321 "fqInterface": g.properties.FqName + "::" + intf,
333 Output: g.genOutputs[0],
334 ImplicitOutputs: g.genOutputs[1:],
336 "depfile": g.genOutputs[0].String() + ".d",
337 "genDir": g.genOutputDir.String(),
338 "fqName": g.properties.FqName,
339 "language": g.properties.Language,
345 func (g *hidlGenRule) GeneratedSourceFiles() android.Paths {
346 return g.genOutputs.Paths()
349 func (g *hidlGenRule) Srcs() android.Paths {
350 return g.genOutputs.Paths()
353 func (g *hidlGenRule) GeneratedDeps() android.Paths {
354 return g.genOutputs.Paths()
357 func (g *hidlGenRule) GeneratedHeaderDirs() android.Paths {
358 return android.Paths{g.genOutputDir}
361 func (g *hidlGenRule) DepsMutator(ctx android.BottomUpMutatorContext) {
362 ctx.AddDependency(ctx.Module(), nil, g.properties.FqName+hidlInterfaceSuffix)
363 ctx.AddDependency(ctx.Module(), nil, wrap("", g.properties.Interfaces, hidlInterfaceSuffix)...)
364 ctx.AddDependency(ctx.Module(), nil, g.properties.Root)
370 g := &hidlGenRule{}
371 g.AddProperties(&g.properties)
372 android.InitAndroidModule(g)
373 return g
398 func (g *vtscRule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
399 g.genOutputDir = android.PathForModuleGen(ctx)
403 g.genInputDir = specs.genOutputDir
404 g.genInputs = specs.genOutputs.Paths()
408 for _, output := range g.properties.Outputs {
409 g.genOutputs = append(g.genOutputs, android.PathForModuleGen(ctx, output))
414 Inputs: g.genInputs,
415 Outputs: g.genOutputs,
417 "mode": g.properties.Mode,
418 "type": g.properties.Type,
419 "inputDir": g.genInputDir.String(),
420 "genDir": g.genOutputDir.String(),
421 "packagePath": g.properties.PackagePath,
426 func (g *vtscRule) GeneratedSourceFiles() android.Paths {
427 return g.genOutputs.Paths()
430 func (g *vtscRule) Srcs() android.Paths {
431 return g.genOutputs.Paths()
434 func (g *vtscRule) GeneratedDeps() android.Paths {
435 return g.genOutputs.Paths()
438 func (g *vtscRule) GeneratedHeaderDirs() android.Paths {
439 return android.Paths{g.genOutputDir}
442 func (g *vtscRule) DepsMutator(ctx android.BottomUpMutatorContext) {
443 ctx.AddDependency(ctx.Module(), nil, g.properties.SpecName)
447 g := &vtscRule{}
448 g.AddProperties(&g.properties)
449 android.InitAndroidModule(g)
450 return g