2015-12-28 21:03:16 +00:00
|
|
|
task build, "Compile the YAML module into a library":
|
2016-04-02 15:48:22 +00:00
|
|
|
--app:lib
|
|
|
|
--d:release
|
|
|
|
setCommand "c", "yaml"
|
2015-12-28 21:03:16 +00:00
|
|
|
|
|
|
|
task tests, "Run all tests":
|
2016-04-02 15:48:22 +00:00
|
|
|
--r
|
|
|
|
--verbosity:0
|
|
|
|
setCommand "c", "test/tests"
|
2015-12-28 21:03:16 +00:00
|
|
|
|
2016-03-04 18:10:48 +00:00
|
|
|
task yamlTestSuite, "Run YAML 1.2 test suite":
|
2016-04-02 15:48:22 +00:00
|
|
|
--r
|
|
|
|
--verbosity:0
|
|
|
|
setCommand "c", "test/yamlTestSuite"
|
2016-03-04 18:10:48 +00:00
|
|
|
|
2015-12-29 14:09:37 +00:00
|
|
|
task serializationTests, "Run serialization tests":
|
2016-04-02 15:48:22 +00:00
|
|
|
--r
|
|
|
|
--verbosity:0
|
|
|
|
setCommand "c", "test/serializing"
|
2015-12-29 14:09:37 +00:00
|
|
|
|
2016-01-13 21:43:12 +00:00
|
|
|
task documentation, "Generate documentation":
|
2016-04-02 15:48:22 +00:00
|
|
|
exec "mkdir -p docout"
|
|
|
|
exec r"nim doc2 -o:docout/yaml.html --docSeeSrcUrl:https://github.com/flyx/NimYAML/blob/`git log -n 1 --format=%H` yaml"
|
2016-09-21 19:20:57 +00:00
|
|
|
# bash! ah-ah \\ savior of the universe
|
|
|
|
exec r"find yaml -type f -print0 | while read -d '' -r f; do a=${f#yaml/}; nim doc2 -o:docout/yaml.${a%%.nim}.html --docSeeSrcUrl:https://github.com/flyx/NimYAML/blob/yaml/`git log -n 1 --format=%H` $f; done"
|
2016-04-02 15:48:22 +00:00
|
|
|
exec r"nim rst2html -o:docout/index.html doc/index.txt"
|
|
|
|
exec r"nim rst2html -o:docout/api.html doc/api.txt"
|
|
|
|
exec r"nim rst2html -o:docout/serialization.html doc/serialization.txt"
|
|
|
|
exec "cp doc/docutils.css doc/style.css doc/testing.html doc/processing.svg docout"
|
|
|
|
setCommand "nop"
|
2015-12-28 21:13:14 +00:00
|
|
|
|
2015-12-28 23:14:47 +00:00
|
|
|
task bench, "Benchmarking":
|
2016-04-02 15:48:22 +00:00
|
|
|
--r
|
|
|
|
--w:off
|
|
|
|
--hints:off
|
2016-09-14 12:44:09 +00:00
|
|
|
--d:release
|
2016-04-02 15:48:22 +00:00
|
|
|
setCommand "c", "bench/bench"
|
2015-12-28 23:14:47 +00:00
|
|
|
|
2015-12-28 21:13:14 +00:00
|
|
|
task clean, "Remove all generated files":
|
2016-04-02 15:48:22 +00:00
|
|
|
exec "rm -rf libyaml.* test/tests test/parsing test/lexing bench/json docout"
|
|
|
|
setCommand "nop"
|
2016-01-05 20:34:07 +00:00
|
|
|
|
|
|
|
task server, "Compile server daemon":
|
2016-04-02 15:48:22 +00:00
|
|
|
--d:release
|
|
|
|
setCommand "c", "server/server"
|