Lines Matching refs:path
145 func (r *RuleBuilder) Temporary(path WritablePath) {
146 r.temporariesSet[path] = true
385 for _, path := range depFiles[1:] {
386 Rel(ctx, r.sboxOutDir.String(), path.String())
497 func (c *RuleBuilderCommand) addInput(path Path) string {
499 if rel, isRel, _ := maybeRelErr(c.sboxOutDir.String(), path.String()); isRel {
503 c.inputs = append(c.inputs, path)
504 return path.String()
507 func (c *RuleBuilderCommand) addImplicit(path Path) string {
509 if rel, isRel, _ := maybeRelErr(c.sboxOutDir.String(), path.String()); isRel {
513 c.implicits = append(c.implicits, path)
514 return path.String()
517 func (c *RuleBuilderCommand) addOrderOnly(path Path) {
518 c.orderOnlys = append(c.orderOnlys, path)
521 func (c *RuleBuilderCommand) outputStr(path Path) string {
524 rel, _, _ := maybeRelErr(c.sboxOutDir.String(), path.String())
527 return path.String()
596 func (c *RuleBuilderCommand) Tool(path Path) *RuleBuilderCommand {
597 c.tools = append(c.tools, path)
598 return c.Text(path.String())
621 func (c *RuleBuilderCommand) Input(path Path) *RuleBuilderCommand {
622 return c.Text(c.addInput(path))
628 for _, path := range paths {
629 c.Input(path)
636 func (c *RuleBuilderCommand) Implicit(path Path) *RuleBuilderCommand {
637 c.addImplicit(path)
644 for _, path := range paths {
645 c.addImplicit(path)
657 func (c *RuleBuilderCommand) OrderOnly(path Path) *RuleBuilderCommand {
658 c.addOrderOnly(path)
665 for _, path := range paths {
666 c.addOrderOnly(path)
673 func (c *RuleBuilderCommand) Output(path WritablePath) *RuleBuilderCommand {
674 c.outputs = append(c.outputs, path)
675 return c.Text(c.outputStr(path))
681 for _, path := range paths {
682 c.Output(path)
699 func (c *RuleBuilderCommand) DepFile(path WritablePath) *RuleBuilderCommand {
700 c.depFiles = append(c.depFiles, path)
701 return c.Text(c.outputStr(path))
706 func (c *RuleBuilderCommand) ImplicitOutput(path WritablePath) *RuleBuilderCommand {
707 c.outputs = append(c.outputs, path)
722 func (c *RuleBuilderCommand) ImplicitDepFile(path WritablePath) *RuleBuilderCommand {
723 c.depFiles = append(c.depFiles, path)
729 func (c *RuleBuilderCommand) FlagWithInput(flag string, path Path) *RuleBuilderCommand {
730 return c.Text(flag + c.addInput(path))
738 for i, path := range paths {
739 strs[i] = c.addInput(path)
748 for _, path := range paths {
749 c.FlagWithInput(flag, path)
756 func (c *RuleBuilderCommand) FlagWithOutput(flag string, path WritablePath) *RuleBuilderCommand {
757 c.outputs = append(c.outputs, path)
758 return c.Text(flag + c.outputStr(path))
763 func (c *RuleBuilderCommand) FlagWithDepFile(flag string, path WritablePath) *RuleBuilderCommand {
764 c.depFiles = append(c.depFiles, path)
765 return c.Text(flag + c.outputStr(path))