mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 10:48:30 +00:00
- `dcr gen` command for IDE integration and build tool support
- `dcr gen project-info`: Output project metadata as JSON
- `dcr gen compile-commands`: Generate `compile_commands.json` for clangd and clang-tidy
- `dcr gen vscode`: Generate VS Code `.vscode/` integration (launch.json, tasks.json, settings.json)
- `dcr gen clion`: Generate JetBrains CLion `.idea/` integration (run configurations, build targets)
- Full workspace support for all `gen` subcommands
799 B
799 B
Build and run
Build
Debug (default):
dcr build
# or
dcr build --debug
dcr build --debug --clean
Release:
dcr build --release
Run
dcr run
# or
dcr run --release
dcr run --release --force
dcr run first builds, then launches the produced binary.
Clean artifacts
dcr clean
Profile-only cleanup:
dcr clean --debug
dcr clean --release
dcr clean --all
dcr clean --release --all
Notes
runis unavailable forbuild.kind = "staticlib"andbuild.kind = "sharedlib".- Build profile flag is parsed from the first command argument.
- Unknown profile flags produce an error.
- In workspace root,
clean --allcleans all member projects. --cleanforbuild/runremovestarget/<profile>and paths frombuild.clean.