Did you know ... | Search Documentation: |
Packs (add-ons) for SWI-Prolog |
Title: | Ninja build system generator |
---|---|
Rating: | Not rated. Create the first rating! |
Latest version: | 0.2 |
SHA1 sum: | 4743852cc0155193d0e08bdce2ebae0fbe6c07c9 |
Author: | Kwon-Young Choi <kwon-young.choi@hotmail.fr> |
Maintainer: | Kwon-Young Choi <kwon-young.choi@hotmail.fr> |
Packager: | Kwon-Young Choi <kwon-young.choi@hotmail.fr> |
Home page: | https://github.com/kwon-young/ninja |
Download URL: | https://github.com/kwon-young/ninja/releases/*.zip |
Provides: | ninja |
No reviews. Create the first review!.
Version | SHA1 | #Downloads | URL |
---|---|---|---|
0.2 | 4743852cc0155193d0e08bdce2ebae0fbe6c07c9 | 4 | https://github.com/kwon-young/ninja/archive/v0.2.zip |
This module contains helper dcg predicates to generate ninja build files akin to the ninja_syntax.py
python module distributed by ninja.
You can use these predicates if you want to generate your own build.ninja
build file.
Example usage:
build_graph --> rule(cp, "cp $in $out"), build(["input.txt"], cp, ["output.txt"]). main --> phrase(build_graph, L), open("build.ninja", write, Stream), string_codes(S, L), write(Stream, S), close(Stream).
Then build.ninja
contains the following build specification:
rule cp command = cp $in $out build input.txt: cp output.txt
See the ninja build format documentation for generating more complex build files.
Pack contains 4 files holding a total of 44.1K bytes.