mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 11:18:36 +00:00
1.0 KiB
1.0 KiB
Config reference
Full schema
[package]
name = "string" # required
version = "string" # required
[build]
language = "c|c++|cpp|cxx" # required
standard = "string" # required
compiler = "string" # required
kind = "bin|staticlib" # required
target = "string" # optional
cflags = ["string", "..."] # optional
ldflags = ["string", "..."] # optional
[dependencies]
name = {
path = "string", # required for each dependency
include = ["string", "..."], # optional
lib = ["string", "..."], # optional
libs = ["string", "..."], # optional
}
Validation rules
[package],[build],[dependencies]must exist.- Required string fields must be non-empty.
build.kindmust bebinorstaticlib.- Dependency fields
include/lib/libsmust be string arrays when provided.
Generated defaults (dcr new / dcr init)
package.version = "0.1.0"build.language = "c"build.standard = "c11"build.compiler = "clang"build.kind = "bin"