summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Client/default.build
blob: 00e2854326ce578e376a2529f1b554880e4cb4ae (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0"?>
<project name="XMS.AMQ.Client" default="build">
    <property name="nant.settings.currentframework" value="net-1.0" />
    <property name="basename" value="XMSClient"/>
    <property name="debug" value="true"/>
    <property name="CommonCollectionsDir" value="../CommonCollections"/>
    <property name="MINADir" value="../minadotnet"/>
    <property name="XMSCommonDir" value="../xmscommon"/>

    <if test="${debug}">
        <property name="targetdir" value="bin/${nant.settings.currentframework}/Debug"/>
    </if>
    <ifnot test="${debug}">
        <property name="targetdir" value="bin/${nant.settings.currentframework}/Release"/>
    </ifnot>

    <target name="clean">
        <delete>
            <fileset>
                <include name="${targetdir}/${basename}.dll"/>
                <include name="${targetdir}/${basename}.pdb"/>
            </fileset>
        </delete>
    </target>

    <target name="init">
        <mkdir dir="${targetdir}"/>
    </target>

    <target name="build" depends="init">
        <csc target="library" output="${targetdir}/${basename}.dll" debug="${debug}">
            <sources>
                <include name="**/*.cs"/>
                <exclude name="Properties/Settings.Designer.cs" />
            </sources>
            <references>
                <lib>
                    <include name="${CommonCollectionsDir}/${targetdir}" />
                    <include name="${MINADir}/${targetdir}" />
                    <include name="${XMSCommonDir}/${targetdir}" />
                    <include name="${XMSCommonDir}/lib/**" />
                    <include name="lib/**" />
                </lib>
                <include name="CommonCollections.dll" />
                <include name="log4net.dll" />
                <include name="MINA.dll" />
                <include name="IBM.XMS.dll" />
                <include name="XMSCommon.dll" />
            </references>
        </csc>
    </target>
</project>