NimYAML/config.nims

43 lines
1.2 KiB
Plaintext
Raw Normal View History

task build, "Compile the YAML module into a library":
--app:lib
--d:release
setCommand "c", "yaml"
task tests, "Run all tests":
--r
--verbosity:0
setCommand "c", "test/tests"
task parserTests, "Run parser tests":
--r
--verbosity:0
setCommand "c", "test/parsing"
task serializationTests, "Run serialization tests":
--r
--verbosity:0
setCommand "c", "test/serializing"
2016-01-13 21:43:12 +00:00
task documentation, "Generate documentation":
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-01-13 21:43:12 +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"
2016-02-02 20:14:56 +00:00
exec "cp doc/docutils.css doc/style.css doc/testing.html doc/processing.svg docout"
2016-01-13 21:43:12 +00:00
setCommand "nop"
task bench, "Benchmarking":
#--d:release
--r
--w:off
--hints:off
setCommand "c", "bench/jsonBench"
task clean, "Remove all generated files":
exec "rm -rf libyaml.* test/tests test/parsing test/lexing bench/json docout"
setCommand "nop"
task server, "Compile server daemon":
--d:release
setCommand "c", "server/server"