• Home
  • Raw
  • Download

Lines Matching refs:g

93 func (g *hidlGenRule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
94 g.genOutputDir = android.PathForModuleGen(ctx)
96 for _, input := range g.properties.Inputs {
97 g.genInputs = append(g.genInputs, android.PathForModuleSrc(ctx, input))
100 for _, output := range g.properties.Outputs {
101 g.genOutputs = append(g.genOutputs, android.PathForModuleGen(ctx, output))
104 if g.properties.Language == "vts" && isVtsSpecPackage(ctx.ModuleName()) {
107 *vtsList = append(*vtsList, g.genOutputs.Paths()...)
130 inputs := g.genInputs
136 if g.properties.Language == "java" {
143 Output: g.genOutputs[0],
144 ImplicitOutputs: g.genOutputs[1:],
146 "depfile": g.genOutputs[0].String() + ".d",
147 "genDir": g.genOutputDir.String(),
148 "fqName": g.properties.FqName,
149 "language": g.properties.Language,
155 func (g *hidlGenRule) GeneratedSourceFiles() android.Paths {
156 return g.genOutputs.Paths()
159 func (g *hidlGenRule) Srcs() android.Paths {
160 return g.genOutputs.Paths()
163 func (g *hidlGenRule) GeneratedDeps() android.Paths {
164 return g.genOutputs.Paths()
167 func (g *hidlGenRule) GeneratedHeaderDirs() android.Paths {
168 return android.Paths{g.genOutputDir}
171 func (g *hidlGenRule) DepsMutator(ctx android.BottomUpMutatorContext) {
172 ctx.AddDependency(ctx.Module(), nil, g.properties.FqName+hidlInterfaceSuffix)
173 ctx.AddDependency(ctx.Module(), nil, wrap("", g.properties.Interfaces, hidlInterfaceSuffix)...)
174 ctx.AddDependency(ctx.Module(), nil, g.properties.Root)
178 g := &hidlGenRule{}
179 g.AddProperties(&g.properties)
180 android.InitAndroidModule(g)
181 return g
206 func (g *vtscRule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
207 g.genOutputDir = android.PathForModuleGen(ctx)
211 g.genInputDir = specs.genOutputDir
212 g.genInputs = specs.genOutputs.Paths()
216 for _, output := range g.properties.Outputs {
217 g.genOutputs = append(g.genOutputs, android.PathForModuleGen(ctx, output))
222 Inputs: g.genInputs,
223 Outputs: g.genOutputs,
225 "mode": g.properties.Mode,
226 "type": g.properties.Type,
227 "inputDir": g.genInputDir.String(),
228 "genDir": g.genOutputDir.String(),
229 "packagePath": g.properties.PackagePath,
234 func (g *vtscRule) GeneratedSourceFiles() android.Paths {
235 return g.genOutputs.Paths()
238 func (g *vtscRule) Srcs() android.Paths {
239 return g.genOutputs.Paths()
242 func (g *vtscRule) GeneratedDeps() android.Paths {
243 return g.genOutputs.Paths()
246 func (g *vtscRule) GeneratedHeaderDirs() android.Paths {
247 return android.Paths{g.genOutputDir}
250 func (g *vtscRule) DepsMutator(ctx android.BottomUpMutatorContext) {
251 ctx.AddDependency(ctx.Module(), nil, g.properties.SpecName)
255 g := &vtscRule{}
256 g.AddProperties(&g.properties)
257 android.InitAndroidModule(g)
258 return g