MCPcopy Create free account
hub / github.com/doldecomp/mkdd / write_cargo_rule

Function write_cargo_rule

tools/project.py:511–523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

509 cargo_rule_written = False
510
511 def write_cargo_rule():
512 nonlocal cargo_rule_written
513 if not cargo_rule_written:
514 n.pool("cargo", 1)
515 n.rule(
516 name="cargo",
517 command="cargo build --release --manifest-path $in --bin $bin --target-dir $target",
518 description="CARGO $bin",
519 pool="cargo",
520 depfile=Path("$target") / "release" / "$bin.d",
521 deps="gcc",
522 )
523 cargo_rule_written = True
524
525 if config.dtk_path is not None and config.dtk_path.is_file():
526 dtk = config.dtk_path

Callers 1

generate_build_ninjaFunction · 0.85

Calls 2

poolMethod · 0.80
ruleMethod · 0.80

Tested by

no test coverage detected