blob: 63bc2120be3e80601ccaab575bdee376b842a978 (
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
|
<?xml version="1.0"?>
<project name="IKVM.GNU.Classpath.dll" default="IKVM.GNU.Classpath.dll">
<property name="Classpath.dir" value="${nant.project.basedir}/../../classpath-0.15" />
<property name="pathsep" value=":" />
<property overwrite="false" name="signoption" value="" />
<property name="jikes.compiler" value="true" />
<property name="ecj.compiler" value="false" />
<if propertytrue="nant.platform.win32">
<property name="pathsep" value=";" />
</if>
<target name="jars">
<!-- TODO
<exec program="${nant.project.basedir}/../bin/ikvmstub.exe" commandline="" />
-->
</target>
<target name="classes" depends="jars" description="GNU Classpath + IKVM.NET specific Java classes">
<delete>
<fileset basedir="${Classpath.dir}">
<includes name="**.class"/>
</fileset>
</delete>
<delete>
<fileset basedir=".">
<includes name="**.class"/>
</fileset>
</delete>
<if propertytrue="jikes.compiler">
<property name="classpath" value=".${pathsep}${Classpath.dir}${pathsep}${Classpath.dir}/external/w3c_dom${pathsep}${Classpath.dir}/external/sax${pathsep}${Classpath.dir}/vm/reference${pathsep}mscorlib.jar${pathsep}System.jar" />
<exec program="jikes" commandline="-g -nowarn -classpath ${classpath} @allsources.lst"/>
</if>
<if propertytrue="ecj.compiler">
<exec program="ecj" commandline="-g -1.5 -nowarn -cp mscorlib.jar${pathsep}System.jar @allsources.lst"/>
</if>
</target>
<target name="IKVM.GNU.Classpath.dll" depends="classes">
<exec program="${nant.project.basedir}/../bin/ikvmc.exe" useruntimeengine="true" commandline="-version:0.14.0.1 ${signoption} -opt:fields -out:IKVM.GNU.Classpath.dll -remap:map.xml -exclude:exclude.lst -target:library -recurse:./*.class -recurse:${Classpath.dir}/*.class -recurse:${Classpath.dir}/resource/*.properties mscorlib.jar System.jar System.Xml.jar -resource:lib/security/classpath.security=classpath.security" />
<copy file="IKVM.GNU.Classpath.dll" tofile="../bin/IKVM.GNU.Classpath.dll.new" />
<if propertytrue="nant.platform.win32">
<call target="peverify-classpath"/>
</if>
<copy file="IKVM.GNU.Classpath.dll" todir="../bin" />
<delete file="../bin/IKVM.GNU.Classpath.dll.new" />
</target>
<target name="peverify-classpath">
<exec program="peverify" commandline="../bin/IKVM.GNU.Classpath.dll.new" />
</target>
</project>
|