MCPcopy
hub / github.com/raspberrypi/documentation / rule

Method rule

scripts/ninja_syntax.py:59–79  ·  view source on GitHub ↗
(self, name, command, description=None, depfile=None,
             generator=False, pool=None, restat=False, rspfile=None,
             rspfile_content=None, deps=None)

Source from the content-addressed store, hash-verified

57 self.variable('depth', depth, indent=1)
58
59 def rule(self, name, command, description=None, depfile=None,
60 generator=False, pool=None, restat=False, rspfile=None,
61 rspfile_content=None, deps=None):
62 self._line('rule %s' % name)
63 self.variable('command', command, indent=1)
64 if description:
65 self.variable('description', description, indent=1)
66 if depfile:
67 self.variable('depfile', depfile, indent=1)
68 if generator:
69 self.variable('generator', '1', indent=1)
70 if pool:
71 self.variable('pool', pool, indent=1)
72 if restat:
73 self.variable('restat', '1', indent=1)
74 if rspfile:
75 self.variable('rspfile', rspfile, indent=1)
76 if rspfile_content:
77 self.variable('rspfile_content', rspfile_content, indent=1)
78 if deps:
79 self.variable('deps', deps, indent=1)
80
81 def build(self, outputs, rule, inputs=None, implicit=None, order_only=None,
82 variables=None, implicit_outputs=None, pool=None, dyndep=None):

Callers

nothing calls this directly

Calls 2

_lineMethod · 0.95
variableMethod · 0.95

Tested by

no test coverage detected