(
self,
name: str,
command: str,
description: Optional[str] = None,
depfile: Optional[NinjaPath] = None,
generator: bool = False,
pool: Optional[str] = None,
restat: bool = False,
rspfile: Optional[NinjaPath] = None,
rspfile_content: Optional[NinjaPath] = None,
deps: Optional[NinjaPathOrPaths] = None,
)
| 63 | self.variable("depth", str(depth), indent=1) |
| 64 | |
| 65 | def rule( |
| 66 | self, |
| 67 | name: str, |
| 68 | command: str, |
| 69 | description: Optional[str] = None, |
| 70 | depfile: Optional[NinjaPath] = None, |
| 71 | generator: bool = False, |
| 72 | pool: Optional[str] = None, |
| 73 | restat: bool = False, |
| 74 | rspfile: Optional[NinjaPath] = None, |
| 75 | rspfile_content: Optional[NinjaPath] = None, |
| 76 | deps: Optional[NinjaPathOrPaths] = None, |
| 77 | ) -> None: |
| 78 | self._line("rule %s" % name) |
| 79 | self.variable("command", command, indent=1) |
| 80 | if description: |
| 81 | self.variable("description", description, indent=1) |
| 82 | if depfile: |
| 83 | self.variable("depfile", depfile, indent=1) |
| 84 | if generator: |
| 85 | self.variable("generator", "1", indent=1) |
| 86 | if pool: |
| 87 | self.variable("pool", pool, indent=1) |
| 88 | if restat: |
| 89 | self.variable("restat", "1", indent=1) |
| 90 | if rspfile: |
| 91 | self.variable("rspfile", rspfile, indent=1) |
| 92 | if rspfile_content: |
| 93 | self.variable("rspfile_content", rspfile_content, indent=1) |
| 94 | if deps: |
| 95 | self.variable("deps", deps, indent=1) |
| 96 | |
| 97 | def build( |
| 98 | self, |
no test coverage detected