implements experimental new config system based on NimScript
This commit is contained in:
parent
d81578cb9b
commit
69b32637b1
13 changed files with 398 additions and 69 deletions
7
tests/newconfig/tfoo.nim
Normal file
7
tests/newconfig/tfoo.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
cmd: "nim default $file"
|
||||
output: '''hello world!'''
|
||||
msg: '''[NimScript] exec: gcc -v'''
|
||||
"""
|
||||
|
||||
echo "hello world!"
|
||||
14
tests/newconfig/tfoo.nims
Normal file
14
tests/newconfig/tfoo.nims
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
|
||||
mode = ScriptMode.Whatif
|
||||
|
||||
exec "gcc -v"
|
||||
|
||||
--forceBuild
|
||||
|
||||
task listDirs, "lists every subdirectory":
|
||||
for x in listDirs("."):
|
||||
echo "DIR ", x
|
||||
|
||||
task default, "default target":
|
||||
setCommand "c"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue