NimYAML/config.nims

45 lines
1.1 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 lexerTests, "Run lexer tests":
--r
--verbosity:0
setCommand "c", "test/lexing"
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 yaml"
exec r"nim doc2 -o:docout/serialization.html yaml/serialization.nim"
exec r"nim rst2html -o:docout/index.html doc/index.txt"
exec "cp doc/docutils.css doc/style.css doc/testing.html docout"
setCommand "nop"
task bench, "Benchmarking":
--d:release
--r
setCommand "c", "bench/json"
task clean, "Remove all generated files":
2016-01-13 21:43:12 +00:00
exec "rm -f libyaml.* test/tests test/parsing test/lexing docout"
setCommand "nop"
task server, "Compile server daemon":
--d:release
setCommand "c", "server/server"