NAME
nimbus
—
a Nim build system
SYNOPSIS
nimbus |
[--debug ]
[--binDir :path]
[--nimbleDir :path]
[--nim :path]
[--nimcache :path]
[--url :url] [nim opts...]
sourceDir [buildDir] |
DESCRIPTION
The nimbus
meta-build system generates
files for the Ninja build system from Nimble projects.
The arguments are as follows:
- sourceDir
- Source directory, location where package's .nimble file is placed.
- buildDir
- Build directory, location where all generated files should be placed. If
this argument is omitted, the current directory is used instead.
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- Set the executable directory, where project's binaries will be installed.
--debug
- Show debugging information.
--nimbleDir
:path- Set the Nimble directory, where project's sources will be installed.
--nim
:path- Set the Nim executable.
--nimcache
:path- Set the Nim cache base directory. Caches for individual targets will be created there.
--url
:url- If this options is set,
nimbus
will generate and install a nimblemeta.json file. Some packages specify their dependencies using URLs andnimbus
is unable to find them unless such metadata file exists.
All unrecognized flags are passed to the Nim compiler.
NimScript tasks
nimbus
will create a ninja target for each
task defined in the .nimble file.
Running tests
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.
Installing
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.
ENVIRONMENT
DESTDIR
- A variable prepended to each installed target file.
FILES
The nimbus
meta-build system generates the
following files:
- build.ninja
- Build file for a ninja-compatible build system.
- installer.nims
- Script for installing packages.
- nimblemeta.json
- Metadata file that contains package URL.
- querytool.nims
- Script for extracting metadata from .nimble files.
- tester.nims
- Script for running Nimble-style tests.
EXIT STATUS
The nimbus
utility exits 0 on
success, and >0 if an error occurs.
EXAMPLES
Build and install a project:
mkdir build cd build nimbus .. ninja sudo ninja install
SEE ALSO
AUTHORS
Anna
<cyber@sysrq.in>
Nimble Authors