Runs all necessary build tasks in the correct order.
()
| 243 | def build_java_linker(): |
| 244 | """Builds the java-linker subproject.""" |
| 245 | if not is_stale(Config.JAVA_LINKER_EXE, Config.LINKER_RUST_SOURCES): |
| 246 | print(f"{Colors.GREEN}✅ Java linker is up to date.{Colors.RESET}") |
| 247 | return |
| 248 | |
| 249 | print(f"{Colors.CYAN}📦 Building Java linker...{Colors.RESET}") |
| 250 | env = os.environ.copy() |
| 251 | env["RUSTFLAGS"] = "-Awarnings" |
| 252 | subprocess.run(["cargo", "build", "--release"], cwd=Config.JAVA_LINKER_DIR, check=True, env=env) |
| 253 | print(f"{Colors.GREEN} Java linker built successfully.{Colors.RESET}") |
| 254 | |
| 255 | def build_cargo_jvm(): |
| 256 | """Builds the cargo-jvm Cargo subcommand.""" |
| 257 | if not is_stale(Config.CARGO_JVM_EXE, Config.CARGO_JVM_RUST_SOURCES): |
| 258 | print(f"{Colors.GREEN}✅ cargo-jvm is up to date.{Colors.RESET}") |
| 259 | return |
| 260 | |
| 261 | print(f"{Colors.CYAN}📦 Building cargo-jvm...{Colors.RESET}") |
nothing calls this directly
no test coverage detected