mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 13:18:29 +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
1.1 KiB
1.1 KiB
dcr.toml overview
dcr.toml is the main project file used by DCR.
Minimal generated template
[package]
name = "hello"
version = "0.1.0"
[build]
language = "c"
standard = "c11"
compiler = "clang"
kind = "bin"
[dependencies]
dcr new and dcr init generate this structure automatically.
Required sections
[package][build][dependencies]
Workspace-only root:
[workspace]may be used instead of[package]/[build]for a workspace root.
Required keys
package.namepackage.versionbuild.languagebuild.standardbuild.compilerbuild.kind
build.kind must be either bin, staticlib, or sharedlib.
Optional keys
build.targetbuild.cflagsbuild.ldflagsbuild.excludebuild.includebuild.rootsbuild.src_disablebuild.pkg_configbuild.stepsbuild.post_stepsbuild.generatedbuild.expectbuild.cleanbuild.debugbuild.release- dependency fields (
include,lib,libs,system) [toolchain]overrides (cc,cxx,as,ar,ld,uic,moc,rcc)[workspace]members[run]overrides (cmd)