INNER CODE UNIT · Python
main
ClickHouse/ai-sdk-cpp · scripts/build.py:97
def main(mode: str, tests: bool, clean: bool, verbose: bool, export_compile_commands: bool, jobs: Optional[int]):
"""Build AI SDK C++ with modern tooling."""
# Get project paths
script_dir = Path(__file__).parent
project_root = script_dir.parent
build_dir = project_root / "build"
# Display build configuration
config_table = Table(title="Build Configuration", show_header=True, header_style="bold blue")
config_table.add_column("Setting", style="cyan")
config_table.add_column("Value", style="green")
config_table.add_row("Project root", str(project_root))
config_table.add_row("Build directory", str(build_dir))
config_table.add_row("Build mode", mode.upper())
config_table.add_row("With tests", "✓" if tests else "✗")
config_table.add_row("Clean build", "✓" if clean else "✗")