Lines Matching refs:s

93 func (s *singletonAdaptor) GenerateBuildActions(ctx blueprint.SingletonContext) {
99 s.Singleton.GenerateBuildActions(sctx)
101 s.buildParams = sctx.buildParams
102 s.ruleParams = sctx.ruleParams
105 func (s *singletonAdaptor) BuildParamsForTests() []BuildParams {
106 return s.buildParams
109 func (s *singletonAdaptor) RuleParamsForTests() map[blueprint.Rule]blueprint.RuleParams {
110 return s.ruleParams
124 func (s *singletonContextAdaptor) Config() Config {
125 return s.SingletonContext.Config().(Config)
128 func (s *singletonContextAdaptor) DeviceConfig() DeviceConfig {
129 return DeviceConfig{s.Config().deviceConfig}
132 func (s *singletonContextAdaptor) Variable(pctx PackageContext, name, value string) {
133 s.SingletonContext.Variable(pctx.PackageContext, name, value)
136 func (s *singletonContextAdaptor) Rule(pctx PackageContext, name string, params blueprint.RuleParam…
137 if s.Config().UseRemoteBuild() {
149 rule := s.SingletonContext.Rule(pctx.PackageContext, name, params, argNames...)
150 if s.Config().captureBuild {
151 s.ruleParams[rule] = params
156 func (s *singletonContextAdaptor) Build(pctx PackageContext, params BuildParams) {
157 if s.Config().captureBuild {
158 s.buildParams = append(s.buildParams, params)
161 s.SingletonContext.Build(pctx.PackageContext, bparams)
165 func (s *singletonContextAdaptor) Phony(name string, deps ...Path) {
166 addPhony(s.Config(), name, deps...)
169 func (s *singletonContextAdaptor) SetNinjaBuildDir(pctx PackageContext, value string) {
170 s.SingletonContext.SetNinjaBuildDir(pctx.PackageContext, value)
173 func (s *singletonContextAdaptor) Eval(pctx PackageContext, ninjaStr string) (string, error) {
174 return s.SingletonContext.Eval(pctx.PackageContext, ninjaStr)
201 func (s *singletonContextAdaptor) VisitAllModulesBlueprint(visit func(blueprint.Module)) {
202 s.SingletonContext.VisitAllModules(visit)
205 func (s *singletonContextAdaptor) VisitAllModules(visit func(Module)) {
206 s.SingletonContext.VisitAllModules(visitAdaptor(visit))
209 func (s *singletonContextAdaptor) VisitAllModulesIf(pred func(Module) bool, visit func(Module)) {
210 s.SingletonContext.VisitAllModulesIf(predAdaptor(pred), visitAdaptor(visit))
213 func (s *singletonContextAdaptor) VisitDirectDeps(module Module, visit func(Module)) {
214 s.SingletonContext.VisitDirectDeps(module, visitAdaptor(visit))
217 func (s *singletonContextAdaptor) VisitDirectDepsIf(module Module, pred func(Module) bool, visit fu…
218 s.SingletonContext.VisitDirectDepsIf(module, predAdaptor(pred), visitAdaptor(visit))
221 func (s *singletonContextAdaptor) VisitDepsDepthFirst(module Module, visit func(Module)) {
222 s.SingletonContext.VisitDepsDepthFirst(module, visitAdaptor(visit))
225 func (s *singletonContextAdaptor) VisitDepsDepthFirstIf(module Module, pred func(Module) bool, visi…
226 s.SingletonContext.VisitDepsDepthFirstIf(module, predAdaptor(pred), visitAdaptor(visit))
229 func (s *singletonContextAdaptor) VisitAllModuleVariants(module Module, visit func(Module)) {
230 s.SingletonContext.VisitAllModuleVariants(module, visitAdaptor(visit))
233 func (s *singletonContextAdaptor) PrimaryModule(module Module) Module {
234 return s.SingletonContext.PrimaryModule(module).(Module)
237 func (s *singletonContextAdaptor) FinalModule(module Module) Module {
238 return s.SingletonContext.FinalModule(module).(Module)