Lines Matching refs:android
34 registerGenruleBuildComponents(android.InitRegistrationContext)
37 func registerGenruleBuildComponents(ctx android.RegistrationContext) {
43 ctx.FinalDepsMutators(func(ctx android.RegisterMutatorsContext) {
49 pctx = android.NewPackageContext("android/soong/genrule")
68 GeneratedSourceFiles() android.Paths
69 GeneratedHeaderDirs() android.Paths
70 GeneratedDeps() android.Paths
76 android.HostToolProvider
106 Tool_files []string `android:"path"`
112 Srcs []string `android:"path,arch_variant"`
115 Exclude_srcs []string `android:"path,arch_variant"`
119 android.ModuleBase
120 android.DefaultableModuleBase
121 android.ApexModuleBase
126 android.ImageInterface
132 deps android.Paths
136 exportedIncludeDirs android.Paths
138 outputFiles android.Paths
139 outputDeps android.Paths
148 type taskFunc func(ctx android.ModuleContext, rawCommand string, srcFiles android.Paths) []generate…
151 in android.Paths
152 out android.WritablePaths
153 copyTo android.WritablePaths
154 genDir android.WritablePath
161 func (g *Module) GeneratedSourceFiles() android.Paths {
165 func (g *Module) Srcs() android.Paths {
166 return append(android.Paths{}, g.outputFiles...)
169 func (g *Module) GeneratedHeaderDirs() android.Paths {
173 func (g *Module) GeneratedDeps() android.Paths {
177 func toolDepsMutator(ctx android.BottomUpMutatorContext) {
181 if m := android.SrcIsModule(tool); m != "" {
189 func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) {
198 android.PathForModuleGen(ctx, g.subDir, ctx.ModuleDir(), dir))
201 g.exportedIncludeDirs = append(g.exportedIncludeDirs, android.PathForModuleGen(ctx, g.subDir))
226 var path android.OptionalPath
228 if t, ok := module.(android.HostToolProvider); ok {
229 if !t.(android.Module).Enabled() {
239 if s, err := filepath.Rel(android.PathForOutput(ctx).String(), t.InstallPath()); err == nil {
240 path = android.OptionalPathForPath(android.PathForOutput(ctx, s))
279 paths := android.PathsForModuleSrc(ctx, []string{toolFile})
284 var srcFiles android.Paths
286 …paths, missingDeps := android.PathsAndMissingDepsForModuleSrcExcludes(ctx, []string{in}, g.propert…
306 var copyFrom android.Paths
307 var outputFiles android.WritablePaths
318 rawCommand, err := android.ExpandNinjaEscaped(task.cmd, func(name string) (string, bool, error) {
393 buildDir := android.PathForOutput(ctx).String()
438 zipArgs.WriteString(android.JoinWithPrefix(task.out.Strings(), " -f "))
445 ctx.Build(pctx, android.BuildParams{
451 "tmpZip": android.PathForModuleGen(ctx, g.subDir+".zip").String(),
452 "genDir": android.PathForModuleGen(ctx, g.subDir).String(),
466 phonyFile := android.PathForModuleGen(ctx, "genrule-phony")
468 ctx.Build(pctx, android.BuildParams{
474 g.outputDeps = android.Paths{phonyFile}
479 func hashSrcFiles(srcFiles android.Paths) string {
487 func (g *Module) generateSourceFile(ctx android.ModuleContext, task generateTask, rule blueprint.Ru…
497 var depFile android.ModuleGenPath
499 depFile = android.PathForModuleGen(ctx, task.out[0].Rel()+".d")
506 params := android.BuildParams{
518 params.Depfile = android.PathForModuleGen(ctx, task.out[0].Rel()+".d")
526 func (g *Module) IDEInfo(dpInfo *android.IdeInfo) {
537 func (g *Module) AndroidMk() android.AndroidMkData {
538 return android.AndroidMkData{
541 OutputFile: android.OptionalPathForPath(g.outputFiles[0]),
543 Extra: []android.AndroidMkExtraFunc{
544 func(w io.Writer, outputFile android.Path) {
548 Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) {
549 android.WriteAndroidMkData(w, data)
558 func (g *Module) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVersion int) error {
579 func (x noopImageInterface) ImageMutatorBegin(android.BaseModuleContext) {}
580 func (x noopImageInterface) CoreVariantNeeded(android.BaseModuleContext) bool { return f…
581 func (x noopImageInterface) RamdiskVariantNeeded(android.BaseModuleContext) bool { return f…
582 func (x noopImageInterface) RecoveryVariantNeeded(android.BaseModuleContext) bool { return f…
583 func (x noopImageInterface) ExtraImageVariations(ctx android.BaseModuleContext) []string { return n…
584 …c (x noopImageInterface) SetImageVariation(ctx android.BaseModuleContext, variation string, module…
588 func pathToSandboxOut(path android.Path, genDir android.Path) string {
600 …taskGenerator := func(ctx android.ModuleContext, rawCommand string, srcFiles android.Paths) []gene…
601 genDir := android.PathForModuleGen(ctx, "gensrcs")
607 shards := android.ShardPaths(srcFiles, shardSize)
612 var outFiles android.WritablePaths
613 var copyTo android.WritablePaths
614 var shardDir android.WritablePath
618 shardDir = android.PathForModuleGen(ctx, strconv.Itoa(i))
624 outFile := android.GenPathWithExt(ctx, "gensrcs", in, String(properties.Output_extension))
628 … shardFile := android.GenPathWithExt(ctx, strconv.Itoa(i), in, String(properties.Output_extension))
636 command, err := android.Expand(rawCommand, func(name string) (string, error) {
676 func GenSrcsFactory() android.Module {
678 android.InitAndroidModule(m)
695 …taskGenerator := func(ctx android.ModuleContext, rawCommand string, srcFiles android.Paths) []gene…
696 outs := make(android.WritablePaths, len(properties.Out))
698 genDir := android.PathForModuleGen(ctx)
700 outs[i] = android.PathForModuleGen(ctx, out)
706 genDir: android.PathForModuleGen(ctx),
715 func GenRuleFactory() android.Module {
717 android.InitAndroidModule(m)
718 android.InitDefaultableModule(m)
724 Out []string `android:"arch_variant"`
734 android.ModuleBase
735 android.DefaultsModuleBase
738 func defaultsFactory() android.Module {
742 func DefaultsFactory(props ...interface{}) android.Module {
751 android.InitDefaultsModule(module)