-
Notifications
You must be signed in to change notification settings - Fork 4
/
libvt100.build
67 lines (60 loc) · 2.7 KB
/
libvt100.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
<?xml version="1.0"?>
<project name="libVT100" default="build" basedir=".">
<property name="builddir" value="build" overwrite="false" />
<property name="srcdir" value="src" overwrite="false" />
<property name="libraryname" value="libVT100.dll" overwrite="false" />
<property name="debug" value="true" overwrite="false" />
<property name="testname" value="test${libraryname}" overwrite="false" />
<target name="build" description="Build the library">
<mkdir dir="${builddir}" />
<csc target="library" output="${builddir}/${libraryname}" debug="${debug}">
<sources>
<include name="${srcdir}/*.cs" />
</sources>
<references>
<include name="System.dll" />
<include name="System.Collections.dll" />
<include name="System.Collections.Generic.dll" />
<include name="System.Drawing.dll" />
<include name="System.Windows.Forms.dll" />
</references>
</csc>
</target>
<target name="build-test" description="Build the unit test" depends="build">
<csc target="library" output="${builddir}/${testname}" debug="${debug}">
<sources>
<include name="tests/*.cs" />
</sources>
<references>
<include name="${builddir}/${libraryname}" />
<include name="System.dll" />
<include name="System.Collections.dll" />
<include name="System.Collections.Generic.dll" />
<include name="System.Drawing.dll" />
<include name="c:\\programmer\\nunit 2.4.8\\bin\\nunit.framework.dll" />
<include name="/usr/lib/cli/nunit.framework-2.5/nunit.framework.dll" />
</references>
<!--
<pkg-references>
<package name="nunit-2.4" />
</pkg-references>
-->
<!-- <arg value="/nowarn:219"/>-->
</csc>
</target>
<target name="clean" description="Delete generated files">
<delete dir="${builddir}" failonerror="false" />
</target>
<target name="check" description="Run the nunit test suite" depends="build-test">
<exec workingdir="${builddir}" program="c:\\programmer\\nunit 2.4.8\\bin\\nunit-console.exe" commandline="${testname}" />
</target>
<target name="check-mono" description="Run the nunit test suite on mono with --debug" depends="build-test">
<exec workingdir="${builddir}" program="mono" commandline="--debug /usr/lib/nunit/nunit-console.exe -labels ${testname}" />
</target>
<target name="check-win32" description="Run the nunit test suite on mono with --debug" depends="build-test">
<exec workingdir="${builddir}" program="C:\Programmer\NUnit 2.4.8\bin\nunit-console.exe" commandline="-labels ${testname}" />
</target>
<target name="tags" description="Create emacs TAGS">
<exec program="./create_tags.sh" />
</target>
</project>