-
Notifications
You must be signed in to change notification settings - Fork 7
/
ikvm.build
81 lines (80 loc) · 3.68 KB
/
ikvm.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
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0"?>
<project name="ikvm" default="managed">
<include buildfile="ikvm.include" />
<target name="native">
<nant buildfile="native/native.build" />
</target>
<target name="signed">
<property name="signed" value="SIGNCODE" />
<property name="signoption" value="-key:ikvm-key" />
<property name="ilasm_signoption" value="/key:@ikvm-key" />
<call target="managed" />
</target>
<target name="managed" depends="clean-managed CommonAssemblyInfo">
<copy file="ICSharpCode.SharpZipLib.dll" tofile="bin/ICSharpCode.SharpZipLib.dll"/>
<nant buildfile="tools/tools.build" />
<nant buildfile="runtime/runtime.build" target="first-pass" />
<!-- <nant buildfile="awt/awt.build" target="first-pass" /> -->
<nant buildfile="reflect/reflect.build" />
<nant buildfile="ikvmc/ikvmc.build" />
<nant buildfile="ikvmstub/ikvmstub.build" />
<nant buildfile="openjdk/openjdk.build" />
<nant buildfile="runtime/runtime.build" />
<!-- <nant buildfile="openjdk/openjdk.build" target="tools" /> -->
<nant buildfile="ikvm/ikvm.build" />
<!-- <nant buildfile="awt/awt.build" /> -->
<nant buildfile="jvm/jvm.build" />
<nant buildfile="native/native.build"/>
</target>
<target name="CommonAssemblyInfo">
<copy file="CommonAssemblyInfo.cs.in" tofile="CommonAssemblyInfo.cs" overwrite="true">
<filterchain>
<replacetokens>
<token key="BUILD" value="${timespan::get-days(datetime::now() - datetime::parse('2000-01-01'))}" />
</replacetokens>
</filterchain>
</copy>
</target>
<target name="clean" depends="clean-managed clean-native" />
<target name="clean-managed">
<delete failonerror="false" dir="bin" />
<delete failonerror="false">
<fileset>
<include name="bin-x64/JVM.DLL" />
<include name="bin-x86/JVM.DLL" />
<include name="classpath/**.class" />
<include name="lib/ikvm-api.jar" />
<include name="openjdk/*.dll" />
<include name="openjdk/*.jar" />
<include name="openjdk/allsources.gen.lst" />
<include name="openjdk/AssemblyInfo.java" />
<include name="openjdk/response.gen.txt" />
<include name="openjdk/tools.gen.rsp" />
<include name="openjdk/resources.zip" />
<include name="openjdk/vfs.zip" />
<include name="openjdk/java/lang/PropertyConstants.java" />
<include name="openjdk/**.class" />
<include name="runtime/**.dll*" />
<include name="tools/asmref.exe" />
<include name="tools/depcheck.exe" />
<include name="tools/pubkey.exe" />
<include name="tools/pubkey.txt" />
<include name="tools/updbaseaddresses.exe" />
<include name="CommonAssemblyInfo.cs" />
</fileset>
</delete>
</target>
<target name="clean-native">
<delete failonerror="false">
<fileset>
<include name="bin-x64/ikvm-native.dll" />
<include name="bin-x86/ikvm-native.dll" />
<include name="native/Release-x64/ikvm-native.dll" />
<include name="native/Release-x64/*.obj" />
<include name="native/Release-x86/ikvm-native.dll" />
<include name="native/Release-x86/*.obj" />
</fileset>
</delete>
<delete failonerror="false" dir="native/ikvm-natives/build" />
</target>
</project>