Runs configured build scripts and converts their directives into build options.
Types
BuildScriptResult = object flags*: seq[string] ## Compiler flags emitted by scripts. generatedFiles*: seq[string] ## Files generated by scripts and tracked by builds. rerunFiles*: seq[string] ## Files that should invalidate the script cache. rerunEnv*: seq[string] ## Environment variables that invalidate the script cache.
- Directives emitted by configured build scripts.
Procs
proc runBuildScripts(cfg: BauConfig; projectDir, profile: string; selection: FeatureSelection; verbose = false): BuildScriptResult {. ...raises: [ValueError, IOError, KeyError, OSError, Exception], tags: [ WriteIOEffect, ReadDirEffect, ReadIOEffect, RootEffect, ReadEnvEffect, WriteEnvEffect, WriteDirEffect], forbids: [].}
-
Run configured build scripts and collect their Bau directives.
Script output lines beginning with bau:: are interpreted as directives.