Lines Matching refs:singleton
161 func (singleton *projectGeneratorSingleton) mergeDependencies(ctx android.SingletonContext,
176 cInfo, known := singleton.knownCrates[rChild.Name()]
178 childId, ok = singleton.addCrate(ctx, rChild, compChild)
221 func (singleton *projectGeneratorSingleton) addCrate(ctx android.SingletonContext, rModule *Module,…
246 singleton.mergeDependencies(ctx, rModule, &crate, deps)
248 idx := len(singleton.project.Crates)
249 singleton.knownCrates[rModule.Name()] = crateInfo{Idx: idx, Deps: deps}
250 singleton.project.Crates = append(singleton.project.Crates, crate)
253 singleton.project.Roots = append(singleton.project.Roots, path.Dir(crate.RootModule))
260 func (singleton *projectGeneratorSingleton) appendCrateAndDependencies(ctx android.SingletonContext…
266 if cInfo, ok := singleton.knownCrates[module.Name()]; ok {
267 crate := singleton.project.Crates[cInfo.Idx]
268 singleton.mergeDependencies(ctx, rModule, &crate, cInfo.Deps)
269 singleton.project.Crates[cInfo.Idx] = crate
272 singleton.addCrate(ctx, rModule, comp)
275 func (singleton *projectGeneratorSingleton) GenerateBuildActions(ctx android.SingletonContext) {
280 singleton.knownCrates = make(map[string]crateInfo)
282 singleton.appendCrateAndDependencies(ctx, module)
286 err := createJsonFile(singleton.project, path)