-
Notifications
You must be signed in to change notification settings - Fork 65
/
build.xml
46 lines (39 loc) · 1.92 KB
/
build.xml
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
<project name="dorm" default="tests" basedir=".">
<description>
dorm, "The Delphi ORM" Build File
</description>
<!-- set global properties for this build -->
<property name="src" location="source"/>
<property name="unittestbuild" location="unittests"/>
<property name="dist" location="dist"/>
<!-- Compile with DELPHIXE3 -->
<property name="BDS" value="C:\Program Files (x86)\Embarcadero\RAD Studio\10.0"/>
<property name="BDSCOMMONDIR" value="C:\Users\Public\Documents\RAD Studio\10.0"/>
<property name="FrameworkDir" value="C:\Windows\Microsoft.NET\Framework\v3.5"/>
<!-- Compile with DELPHIXE2 -->
<property name="BDS_XE" value="C:\Program Files (x86)\Embarcadero\RAD Studio\9.0"/>
<property name="BDSCOMMONDIR_XE" value="C:\Users\Public\Documents\RAD Studio\9.0"/>
<property name="FrameworkDir_XE" value="C:\Windows\Microsoft.NET\Framework\v2.0"/>
<target name = "tests" depends="compile">
<exec dir="${unittestbuild}" failonerror="true" searchpath="true" executable="${unittestbuild}\DORM_UnitTests_XE3.exe"/>
</target>
<target name="compile" depends="clean" description="compile the source " >
<exec dir="." failonerror="true" searchpath="true" executable="${FrameworkDir}\msbuild.exe">
<env key="BDS" value="${BDS}"/>
<env key="BDSCOMMONDIR" value="${BDSCOMMONDIR}"/>
<arg value="/nologo"/>
<arg value="/target:Build"/>
<arg value="/property:config=FIREBIRD_CI"/>
<arg value="${unittestbuild}\DORM_UnitTests_XE3.dproj"/>
</exec>
</target>
<target name="dist" depends="compile" description="RUN UNIT TESTS" >
</target>
<target name="clean" description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete failonerror="false">
<fileset dir="." includes="**/*.dcu"/>
<fileset dir="." includes="**/*.exe"/>
</delete>
</target>
</project>