Carat::ShardMeta::Section
Inherits Reference < Object
A binaries:/examples: section. Inside the mapping form two
reserved keys control the whole section:
binaries: all: # once per section, before any binary prebuild: rake build:native each: # defaults for every binary (own keys win) flags: [-DSOME=1] hello: {} tool: {main: src/tool.cr}
all: runs its prebuild ONE time before the section's builds (the
shared native step); its flags/link_flags are the base for every
binary. each: is per-binary defaults: prebuild runs before EACH
binary, flags/link_flags apply to each unless the binary overrides.
Precedence: own > each > all. Neither key is a binary itself.
Constructors
new(specs : Array(BinarySpec), all : BinarySpec | Nil, each : BinarySpec | Nil)
SourceInstance methods
all
Sourceeach
Sourceempty?
Sourcespecs
Source