| NIMBUS(1) | General Commands Manual | NIMBUS(1) |
nimbus — a Nim
build system
nimbus |
[--debug]
[--binDir:path]
[--nimbleDir:path]
[--nim:path]
[--nimcache:path]
[--url:url] [nim opts...]
sourceDir [buildDir] |
The nimbus meta-build system generates
files for the Ninja build system from Nimble projects.
The arguments are as follows:
Note that the build directory must be different from the
source directory. nimbus does not support
building inside the source directory and attempting to do that leads to
an error.
--binDir:path--debug--nimbleDir:path--nim:path--nimcache:path--url:urlnimbus will generate and
install a nimblemeta.json file. Some packages
specify their dependencies using URLs and nimbus
is unable to find them unless such metadata file exists.All unrecognized flags are passed to the Nim compiler.
nimbus will create a ninja target for each
task defined in the .nimble file.
If no tasks named "test" exist,
nimbus generates a tester script that can be invoked
via ‘ninja test’. It will compile and
run all Nim files in the tests directory beginning
with "t" in their filename.
This behavior is compatible with nimble.
nimbus generates an installer script that
can be invoked via ‘ninja install’. It
installs both sources and binaries (if any).
If any of the installDirs,
installFiles, installExt
variables are present in the .nimble file,
nimbus operates in the whitelist mode. Please refer
the to the nimble documentation for more information.
DESTDIRThe nimbus meta-build system generates the
following files:
The nimbus utility exits 0 on
success, and >0 if an error occurs.
Build and install a project:
mkdir build cd build nimbus .. ninja sudo ninja install
Anna
<cyber@sysrq.in>
Nimble Authors
| July 2, 2022 | . |