aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/default.bld
blob: d6f190914e347ba4f4abbc8281a6e0360b60ad15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright (C) 2007-2012 Xagasoft, All rights reserved.
 *
 * This file is part of the libgats library and is released under the
 * terms of the license contained in the file LICENSE.
 */


target "libgats.dll"
{
    input files("src/*.cs");

    profile "build"
    {
        execute("mcs -pkg:dotnet -target:library -out:${OUTPUT} ${INPUT}");
    }
}

for TEST in files("src/tests/*.cs") do
{
    target TEST.replace("src/tests/","").replace(".cs",".exe")
    {
        input TEST;
        requires "libgats.dll";

        profile "build"
        {
            execute("mcs -pkg:dotnet -lib:. -r:libgats.dll -out:${OUTPUT} ${INPUT}");
        }
    }
}