aboutsummaryrefslogtreecommitdiff
path: root/cs-dotnet/default.bld
blob: 22a01a9172604f1661f02f935f50c4637178f5f1 (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-2013 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}");
        }
    }
}