2015-12-28 22:03:16 +01:00
|
|
|
task build, "Compile the YAML module into a library":
|
2015-12-28 22:13:14 +01:00
|
|
|
--app:lib
|
|
|
|
--d:release
|
|
|
|
setCommand "c", "yaml"
|
2015-12-28 22:03:16 +01:00
|
|
|
|
|
|
|
task tests, "Run all tests":
|
2015-12-28 22:13:14 +01:00
|
|
|
--r
|
|
|
|
--verbosity:0
|
|
|
|
setCommand "c", "test/tests"
|
2015-12-28 22:03:16 +01:00
|
|
|
|
2016-03-04 19:10:48 +01:00
|
|
|
task yamlTestSuite, "Run YAML 1.2 test suite":
|
|
|
|
--r
|
|
|
|
--verbosity:0
|
|
|
|
setCommand "c", "test/yamlTestSuite"
|
|
|
|
|
2015-12-29 15:09:37 +01:00
|
|
|
task serializationTests, "Run serialization tests":
|
|
|
|
--r
|
|
|
|
--verbosity:0
|
|
|
|
setCommand "c", "test/serializing"
|
|
|
|
|
2016-01-13 22:43:12 +01:00
|
|
|
task documentation, "Generate documentation":
|
|
|
|
exec "mkdir -p docout"
|
2016-01-24 19:15:50 +01:00
|
|
|
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 22:43:12 +01:00
|
|
|
exec r"nim rst2html -o:docout/index.html doc/index.txt"
|
2016-02-15 19:46:21 +01:00
|
|
|
exec r"nim rst2html -o:docout/api.html doc/api.txt"
|
2016-02-15 22:54:05 +01:00
|
|
|
exec r"nim rst2html -o:docout/serialization.html doc/serialization.txt"
|
2016-02-02 21:14:56 +01:00
|
|
|
exec "cp doc/docutils.css doc/style.css doc/testing.html doc/processing.svg docout"
|
2016-01-13 22:43:12 +01:00
|
|
|
setCommand "nop"
|
2015-12-28 22:13:14 +01:00
|
|
|
|
2015-12-29 00:14:47 +01:00
|
|
|
task bench, "Benchmarking":
|
2016-02-27 14:33:13 +01:00
|
|
|
#--d:release
|
2015-12-29 00:14:47 +01:00
|
|
|
--r
|
2016-01-24 12:28:14 +01:00
|
|
|
--w:off
|
|
|
|
--hints:off
|
2016-02-27 14:33:13 +01:00
|
|
|
setCommand "c", "bench/jsonBench"
|
2015-12-29 00:14:47 +01:00
|
|
|
|
2015-12-28 22:13:14 +01:00
|
|
|
task clean, "Remove all generated files":
|
2016-02-27 14:33:13 +01:00
|
|
|
exec "rm -rf libyaml.* test/tests test/parsing test/lexing bench/json docout"
|
2016-01-05 21:34:07 +01:00
|
|
|
setCommand "nop"
|
|
|
|
|
|
|
|
task server, "Compile server daemon":
|
|
|
|
--d:release
|
2016-03-17 19:30:40 +01:00
|
|
|
setCommand "c", "server/server"
|