Lines Matching refs:g

198 func (g *Module) GeneratedSourceFiles() android.Paths {
199 return g.outputFiles
202 func (g *Module) Srcs() android.Paths {
203 return append(android.Paths{}, g.outputFiles...)
206 func (g *Module) GeneratedHeaderDirs() android.Paths {
207 return g.exportedIncludeDirs
210 func (g *Module) GeneratedDeps() android.Paths {
211 return g.outputDeps
215 if g, ok := ctx.Module().(*Module); ok {
216 for _, tool := range g.properties.Tools {
246 func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) {
247 g.subName = ctx.ModuleSubDir()
250 g.modulePaths = append(g.modulePaths, ctx.ModuleDir())
252 if len(g.properties.Export_include_dirs) > 0 {
253 for _, dir := range g.properties.Export_include_dirs {
254 g.exportedIncludeDirs = append(g.exportedIncludeDirs,
255 android.PathForModuleGen(ctx, g.subDir, ctx.ModuleDir(), dir))
258 g.exportedIncludeDirs = append(g.exportedIncludeDirs, android.PathForModuleGen(ctx, g.subDir))
278 if len(g.properties.Tools) > 0 {
340 for _, tool := range g.properties.Tools {
352 for _, toolFile := range g.properties.Tool_files {
359 for _, in := range g.properties.Srcs {
360 …paths, missingDeps := android.PathsAndMissingDepsForModuleSrcExcludes(ctx, []string{in}, g.propert…
385 for _, task := range g.taskGenerator(ctx, String(g.properties.Cmd), srcFiles) {
426 if len(g.properties.Tools) == 0 && len(g.properties.Tool_files) == 0 {
448 if !Bool(g.properties.Depfile) {
491 if Bool(g.properties.Depfile) && !referencedDepfile {
495 g.rawCommands = append(g.rawCommands, rawCommand)
503 if Bool(g.properties.Depfile) {
536 "tmpZip": android.PathForModuleGen(ctx, g.subDir+".zip").String(),
537 "genDir": android.PathForModuleGen(ctx, g.subDir).String(),
542 g.outputFiles = outputFiles.Paths()
544 bazelModuleLabel := g.GetBazelLabel(ctx, g)
546 if g.MixedBuildsEnabled(ctx) {
547 bazelActionsUsed = g.generateBazelBuildActions(ctx, bazelModuleLabel)
554 if len(g.outputFiles) <= 6 {
555 g.outputDeps = g.outputFiles
561 Inputs: g.outputFiles,
563 g.outputDeps = android.Paths{phonyFile}
569 func (g *Module) IDEInfo(dpInfo *android.IdeInfo) {
570 dpInfo.Srcs = append(dpInfo.Srcs, g.Srcs().Strings()...)
571 for _, src := range g.properties.Srcs {
577 dpInfo.Paths = append(dpInfo.Paths, g.modulePaths...)
580 func (g *Module) AndroidMk() android.AndroidMkData {
583 OutputFile: android.OptionalPathForPath(g.outputFiles[0]),
584 SubName: g.subName,
594 fmt.Fprintln(w, name, ":", name+g.subName)
603 func (g *Module) ShouldSupportSdkVersion(ctx android.BaseModuleContext,
747 g := generatorFactory(taskGenerator, properties)
748 g.subDir = finalSubDir
749 return g