DCR — C/C++ Build Tool & Package Manager
Quick reference
# Installation
curl -fsSL https://dcr.dexoron.su/install.sh | sh
# Create a project
dcr new my-app
cd my-app
# Build and run
dcr build
dcr run
# Run tests
dcr test
# Add a dependency
dcr add fmt
# Generate IDE files
dcr gen vscode
Contents
| Section | Description |
|---|---|
| Getting Started | Installation and first steps |
| Commands | All CLI commands |
| Reference | Configuration, build, dependencies, platforms |
| Testing | Built-in test framework |
| Recipes | Common scenarios |
| IDE Integration | VS Code, CLion, compile_commands.json |
| Self Update | Auto-update |
| FAQ | Frequently asked questions |
| Changelog | Version history |
| Contributing | DCR development |
Features
- Incremental builds — mtime +
.dheaders + SHA256 fingerprint - Parallel compilation — thread::scope, atomic task queue
- 4 backends — gcc/clang, MSVC/clang-cl, GAS (ARM), NASM (x86)
- 7 project kinds — bin, staticlib, sharedlib, efi, elf, none, custom
- Cross-compilation — short names and full triples
- Profiles — debug / release with field overrides
- Workspaces — multi-package projects with topological sort
- Registry + Git + Path — three dependency mechanisms
- IDE generation — VS Code, CLion, compile_commands.json, JSON metadata
- pkg-config — automatic system library discovery