diff options
Diffstat (limited to '')
-rw-r--r-- | cs-dotnet/default.bld | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/cs-dotnet/default.bld b/cs-dotnet/default.bld new file mode 100644 index 0000000..4bc324e --- /dev/null +++ b/cs-dotnet/default.bld | |||
@@ -0,0 +1,25 @@ | |||
1 | |||
2 | target "libgats.dll" | ||
3 | { | ||
4 | input files("src/*.cs"); | ||
5 | |||
6 | profile "build" | ||
7 | { | ||
8 | execute("mcs -pkg:dotnet -target:library -out:${OUTPUT} ${INPUT}"); | ||
9 | } | ||
10 | } | ||
11 | |||
12 | for TEST in files("src/tests/*.cs") do | ||
13 | { | ||
14 | target TEST.replace("src/tests/","").replace(".cs",".exe") | ||
15 | { | ||
16 | input TEST; | ||
17 | requires "libgats.dll"; | ||
18 | |||
19 | profile "build" | ||
20 | { | ||
21 | execute("mcs -pkg:dotnet -lib:. -r:libgats.dll -out:${OUTPUT} ${INPUT}"); | ||
22 | } | ||
23 | } | ||
24 | } | ||
25 | |||