Lines Matching refs:c
336 func (c *makeVarsContext) DeviceConfig() DeviceConfig {
337 return DeviceConfig{c.Config().deviceConfig}
342 func (c *makeVarsContext) Eval(ninjaStr string) (string, error) {
343 s, err := c.SingletonContext.Eval(c.pctx, ninjaStr)
352 func (c *makeVarsContext) addVariableRaw(name, value string, strict, sort bool) {
353 c.vars = append(c.vars, makeVarsVariable{
361 func (c *makeVarsContext) addVariable(name, ninjaStr string, strict, sort bool) {
362 value, err := c.Eval(ninjaStr)
364 c.SingletonContext.Errorf(err.Error())
366 c.addVariableRaw(name, value, strict, sort)
369 func (c *makeVarsContext) addPhony(name string, deps []string) {
370 c.phonies = append(c.phonies, phony{name, deps})
373 func (c *makeVarsContext) addDist(goals []string, paths []string) {
374 c.dists = append(c.dists, dist{
380 func (c *makeVarsContext) Strict(name, ninjaStr string) {
381 c.addVariable(name, ninjaStr, true, false)
383 func (c *makeVarsContext) StrictSorted(name, ninjaStr string) {
384 c.addVariable(name, ninjaStr, true, true)
386 func (c *makeVarsContext) StrictRaw(name, value string) {
387 c.addVariableRaw(name, value, true, false)
390 func (c *makeVarsContext) Check(name, ninjaStr string) {
391 c.addVariable(name, ninjaStr, false, false)
393 func (c *makeVarsContext) CheckSorted(name, ninjaStr string) {
394 c.addVariable(name, ninjaStr, false, true)
396 func (c *makeVarsContext) CheckRaw(name, value string) {
397 c.addVariableRaw(name, value, false, false)
400 func (c *makeVarsContext) Phony(name string, deps ...Path) {
401 c.addPhony(name, Paths(deps).Strings())
404 func (c *makeVarsContext) DistForGoal(goal string, paths ...Path) {
405 c.DistForGoals([]string{goal}, paths...)
408 func (c *makeVarsContext) DistForGoalWithFilename(goal string, path Path, filename string) {
409 c.DistForGoalsWithFilename([]string{goal}, path, filename)
412 func (c *makeVarsContext) DistForGoals(goals []string, paths ...Path) {
413 c.addDist(goals, Paths(paths).Strings())
416 func (c *makeVarsContext) DistForGoalsWithFilename(goals []string, path Path, filename string) {
417 c.addDist(goals, []string{path.String() + ":" + filename})