MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / write_cargo_rule

Function write_cargo_rule

tools/project.py:455–467  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

453 cargo_rule_written = False
454
455 def write_cargo_rule():
456 nonlocal cargo_rule_written
457 if not cargo_rule_written:
458 n.pool("cargo", 1)
459 n.rule(
460 name="cargo",
461 command="cargo build --release --manifest-path $in --bin $bin --target-dir $target",
462 description="CARGO $bin",
463 pool="cargo",
464 depfile=Path("$target") / "release" / "$bin.d",
465 deps="gcc",
466 )
467 cargo_rule_written = True
468
469 if config.dtk_path is not None and config.dtk_path.is_file():
470 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