Lines Matching refs:g

321 func (g *aidlGenRule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
322 srcs, imports := getPaths(ctx, g.properties.Srcs)
329 g.implicitInputs = append(g.implicitInputs, genDirTimestamp)
340 g.implicitInputs = append(g.implicitInputs, path)
343 g.implicitInputs = append(g.implicitInputs, path)
347 g.importFlags = strings.Join(wrap("-I", importPaths, ""), " ")
349 g.genOutDir = android.PathForModuleGen(ctx)
350 g.genHeaderDir = android.PathForModuleGen(ctx, "include")
352 outFile, headers := g.generateBuildActionsForSingleAidl(ctx, src)
353 g.genOutputs = append(g.genOutputs, outFile)
354 g.genHeaderDeps = append(g.genHeaderDeps, headers...)
363 "outDir": g.genOutDir.String(),
384 func (g *aidlGenRule) generateBuildActionsForSingleAidl(ctx android.ModuleContext, src android.Path…
385 baseDir := getBaseDir(ctx, src, android.PathForModuleSrc(ctx, g.properties.AidlRoot))
388 if g.properties.Lang == langJava {
395 implicits := g.implicitInputs
398 if g.properties.Version != "" {
399 optionalFlags = append(optionalFlags, "--version "+g.properties.Version)
408 g.hashFile = hashFile.Path()
413 if g.properties.GenTrace {
416 if g.properties.Stability != nil {
417 optionalFlags = append(optionalFlags, "--stability", *g.properties.Stability)
421 if g.properties.Lang == langJava {
428 "imports": g.importFlags,
429 "outDir": g.genOutDir.String(),
446 if g.properties.Lang == langNdk || g.properties.Lang == langNdkPlatform {
450 headers = append(headers, g.genHeaderDir.Join(ctx, prefix, packagePath,
452 headers = append(headers, g.genHeaderDir.Join(ctx, prefix, packagePath,
454 headers = append(headers, g.genHeaderDir.Join(ctx, prefix, packagePath,
457 if g.properties.GenLog {
461 aidlLang := g.properties.Lang
473 "imports": g.importFlags,
475 "headerDir": g.genHeaderDir.String(),
476 "outDir": g.genOutDir.String(),
485 func (g *aidlGenRule) GeneratedSourceFiles() android.Paths {
486 return g.genOutputs.Paths()
489 func (g *aidlGenRule) Srcs() android.Paths {
490 return g.genOutputs.Paths()
493 func (g *aidlGenRule) GeneratedDeps() android.Paths {
494 return g.genHeaderDeps
497 func (g *aidlGenRule) GeneratedHeaderDirs() android.Paths {
498 return android.Paths{g.genHeaderDir}
501 func (g *aidlGenRule) DepsMutator(ctx android.BottomUpMutatorContext) {
502 ctx.AddDependency(ctx.Module(), nil, wrap("", g.properties.Imports, aidlInterfaceSuffix)...)
503 if !proptools.Bool(g.properties.Unstable) {
504 ctx.AddDependency(ctx.Module(), nil, g.properties.BaseName+aidlApiSuffix)
511 g := &aidlGenRule{}
512 g.AddProperties(&g.properties)
513 android.InitAndroidModule(g)
514 return g