/
default.build
68 lines (60 loc) · 2.43 KB
/
default.build
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
<?xml version="1.0"?>
<project
name="LessCss.Net"
default="compile">
<property name="debug" value="true" />
<property name="buildNumber" value="0.0.0.1" />
<target name="clean" description="remove build artifacts">
<delete dir="build" if="${directory::exists('build')}" />
</target>
<target name="init">
<mkdir dir="build" />
</target>
<target name="compile.minifier" depends="clean,init" description="Compiles minifier library">
<csc target="library" output="build\${project::get-name()}.Minifier.dll" debug="${debug}">
<sources>
<include name="LessCss.Net.Minifier\**\*.cs" />
</sources>
</csc>
</target>
<target name="copy-tests" depends="clean,init" description="Copies test framework assemblies to the output directory">
<copy file="Dependencies\nunit.framework.dll" tofile="build\nunit.framework.dll" />
</target>
<target name="compile.minifier.test" depends="compile.minifier,copy-tests" description="Builds the minifier test project">
<csc target="library" output="build\${project::get-name()}.Minifier.Tests.dll" debug="${debug}">
<sources>
<include name="LessCss.Net.Minifier.Tests\**\*.cs" />
</sources>
<references>
<include name="build\${project::get-name()}.Minifier.dll" />
<include name="Dependencies\nunit.framework.dll" />
</references>
</csc>
</target>
<target name="compile" depends="clean,init" description="Compiles the application">
<asminfo output="AssemblyInfo.cs" language="CSharp">
<imports>
<import namespace="System" />
<import namespace="System.Reflection" />
<import namespace="System.Runtime.InteropServices" />
</imports>
<attributes>
<attribute type="AssemblyVersionAttribute" value="${buildNumber}" />
<attribute type="AssemblyTitleAttribute" value="Less.Net" />
<attribute type="AssemblyCopyrightAttribute" value="Copyright © Less.Net 2009" />
</attributes>
</asminfo>
<copy file="acknowledgements.txt" tofile="build\acknowledgements.txt" />
<csc target="library" output="build\${project::get-name()}.dll" debug="${debug}">
<sources>
<include name="LessCss.Net\**\*.cs" />
<include name="AssemblyInfo.cs" />
<exclude name="LessCss.Net\**\AssemblyInfo.cs" />
</sources>
<references>
<include name="dependencies\Antlr3.Runtime.dll" />
</references>
</csc>
<delete file="AssemblyInfo.cs" />
</target>
</project>