meta/nakespansion

    Dark Mode
Search:
Group by:

Contains various functions for making working with Nake-based build systems easier.

While you can probably use the debug and release commands for javascript please understand that interface is not tested at all with this.

Procs

proc build_debug(name, main: string;
                 version, bindir, cachedir, extraArgs, compileTarget = "") {...}{.
    raises: [OSError, IOError, ValueError], tags: [WriteDirEffect,
    ReadDirEffect, ReadIOEffect, WriteIOEffect, ExecIOEffect].}
Build target file as a binary in debug mode.
proc build_release(name, main: string;
                   version, bindir, cachedir, extraArgs, compileTarget = "";
                   isCPP = false; doStrip = false) {...}{.
    raises: [OSError, IOError, ValueError], tags: [WriteDirEffect,
    ReadDirEffect, ReadIOEffect, WriteIOEffect, ExecIOEffect, ReadEnvEffect].}
Build target file as a binary in release mode
proc fetch_nimble_dependencies(deps: openArray[string]) {...}{.
    raises: [ValueError, IOError],
    tags: [ReadIOEffect, WriteIOEffect, ExecIOEffect].}
Invoke nimble to install all deps listed
proc fetch_git_submodules() {...}{.raises: [ValueError, IOError],
                              tags: [ReadIOEffect, WriteIOEffect, ExecIOEffect].}
Grab all submodules via git
proc clean_nake() {...}{.inline, raises: [], tags: [WriteDirEffect].}
Simple one-liner to remove the compiled nakefile in a cross-platform way