Lines Matching refs:g
161 func (g *Module) GeneratedSourceFiles() android.Paths {
162 return g.outputFiles
165 func (g *Module) Srcs() android.Paths {
166 return append(android.Paths{}, g.outputFiles...)
169 func (g *Module) GeneratedHeaderDirs() android.Paths {
170 return g.exportedIncludeDirs
173 func (g *Module) GeneratedDeps() android.Paths {
174 return g.outputDeps
178 if g, ok := ctx.Module().(*Module); ok {
179 for _, tool := range g.properties.Tools {
189 func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) {
190 g.subName = ctx.ModuleSubDir()
193 g.modulePaths = append(g.modulePaths, ctx.ModuleDir())
195 if len(g.properties.Export_include_dirs) > 0 {
196 for _, dir := range g.properties.Export_include_dirs {
197 g.exportedIncludeDirs = append(g.exportedIncludeDirs,
198 android.PathForModuleGen(ctx, g.subDir, ctx.ModuleDir(), dir))
201 g.exportedIncludeDirs = append(g.exportedIncludeDirs, android.PathForModuleGen(ctx, g.subDir))
219 if len(g.properties.Tools) > 0 {
251 g.deps = append(g.deps, path.Path())
266 for _, tool := range g.properties.Tools {
278 for _, toolFile := range g.properties.Tool_files {
280 g.deps = append(g.deps, paths...)
285 for _, in := range g.properties.Srcs {
286 …paths, missingDeps := android.PathsAndMissingDepsForModuleSrcExcludes(ctx, []string{in}, g.propert…
310 for _, task := range g.taskGenerator(ctx, String(g.properties.Cmd), srcFiles) {
328 if len(g.properties.Tools) == 0 && len(g.properties.Tool_files) == 0 {
346 if !Bool(g.properties.Depfile) {
387 if Bool(g.properties.Depfile) && !referencedDepfile {
399 if Bool(g.properties.Depfile) {
405 g.rawCommands = append(g.rawCommands, rawCommand)
422 if Bool(g.properties.Depfile) {
432 g.generateSourceFile(ctx, task, rule)
451 "tmpZip": android.PathForModuleGen(ctx, g.subDir+".zip").String(),
452 "genDir": android.PathForModuleGen(ctx, g.subDir).String(),
457 g.outputFiles = outputFiles.Paths()
463 if len(g.outputFiles) <= 6 {
464 g.outputDeps = g.outputFiles
471 Inputs: g.outputFiles,
474 g.outputDeps = android.Paths{phonyFile}
487 func (g *Module) generateSourceFile(ctx android.ModuleContext, task generateTask, rule blueprint.Ru…
498 if Bool(g.properties.Depfile) {
512 Implicits: g.deps,
517 if Bool(g.properties.Depfile) {
526 func (g *Module) IDEInfo(dpInfo *android.IdeInfo) {
527 dpInfo.Srcs = append(dpInfo.Srcs, g.Srcs().Strings()...)
528 for _, src := range g.properties.Srcs {
534 dpInfo.Paths = append(dpInfo.Paths, g.modulePaths...)
537 func (g *Module) AndroidMk() android.AndroidMkData {
541 OutputFile: android.OptionalPathForPath(g.outputFiles[0]),
542 SubName: g.subName,
545 fmt.Fprintln(w, "LOCAL_ADDITIONAL_DEPENDENCIES :=", strings.Join(g.outputDeps.Strings(), " "))
552 fmt.Fprintln(w, name, ":", name+g.subName)
558 func (g *Module) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVersion int) error {
671 g := generatorFactory(taskGenerator, properties)
672 g.subDir = "gensrcs"
673 return g