aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Utility/default.build
blob: 537900a6b6e86c0954f13f7902e4d878d66cf3f8 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0"?>
<project name="ANTLR C# Runtime Utility Library" default="build">
    <tstamp/>
	<property name="base.dir" value="${path::get-full-path( project::get-base-directory() )}" />

	<include buildfile="../../antlr3.runtime.net.common.inc" />

	<property name="version" value="0.1" />

	<property name="name" value="Antlr3.Utility" />
	<property name="assembly.name" value="${name}.dll" />
	<property name="src.dir" value="${base.dir}/" />

    <property name="debug" value="true" unless="${property::exists('debug')}" />

    <echo message="Building project: '${name}' version ${version} ==> '${assembly.name}'"/>

    <target name="release" depends="clean" description="build non-debug version">
        <!-- build a clean release distribution for release -->
        <property name="debug" value="false"/>
        <echo message="Debug = ${debug}"/>
        <call target="build"/>
    </target>
    
    <target name="build" depends="init, compile" description="compiles the source code">
    </target>

	<target name="init" depends="clean">
	</target>

    <target name="clean">
    </target>

    <target name="clean.vsnet" description="cleans up VS.NET build artifacts and output">
		<!-- delete VS.NET project artifacts directory -->
        <echo message="Deleting VS.NET artifacts directory '${base.dir}/bin'" />
		<delete dir="${base.dir}/bin" failonerror="false" />
        <echo message="Deleting VS.NET artifacts directory '${base.dir}/obj'" />
		<delete dir="${base.dir}/obj" failonerror="false" />
    </target>

	<target name="compile" depends="init">
		<csc 
			define="${strong_name};${dotnet_define}"
			target="library" 
			debug="${debug}"
			optimize="${optimize}"
			output="${build.working.dir}/${assembly.name}" 
			doc="${build.working.dir}/${name}.xml">
			
			<nowarn>
				<warning number="1591" />
				<warning number="1572" />
			</nowarn>
			
			<resources prefix="Antlr.Utility" dynamicprefix="true">
				<include name="**/*.resx" />
			</resources>
			
			<sources basedir="${src.dir}" defaultexcludes="true">
				<include name="**/*.cs" />
			</sources>

			<references>
				<include name="${build.working.dir}/Antlr3.Runtime.dll" />
				<include name="${build.working.dir}/StringTemplate.dll" />
				<include name="${build.working.dir}/antlr.runtime.dll" />
			</references>
		</csc>
	</target>

	<target name="docs">
	</target>
			
	<target name="dist" depends="docs">
	</target>

</project>