forked from gluck/ikvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ikvm.build
122 lines (117 loc) · 5.55 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0"?>
<!--
Copyright (C) 2002-2013 Jeroen Frijters
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Jeroen Frijters
-->
<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" />
<call target="managed" />
</target>
<target name="managed" depends="clean-managed CommonAssemblyInfo">
<nant buildfile="tools/tools.build" />
<nant buildfile="reflect/reflect.build" />
<nant buildfile="ikvmstub/ikvmstub.build" />
<nant buildfile="runtime/runtime.build" target="first-pass" />
<nant buildfile="awt/awt.build" target="first-pass" />
<nant buildfile="ikvmc/ikvmc.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" />
</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">
<fileset>
<include name="CommonAssemblyInfo.cs" />
<include name="awt/AssemblyInfo.cs" />
<include name="bin/IKVM.AWT.WinForms.dll" />
<include name="bin/IKVM.MSBuild.dll" />
<include name="bin/IKVM.MSBuild.Java.Targets" />
<include name="bin/IKVM.Reflection.dll" />
<include name="bin/IKVM.Runtime.dll" />
<include name="bin/IKVM.Runtime.JNI.dll" />
<include name="bin/IKVM.OpenJDK.*.dll" />
<include name="bin/ikvm.exe" />
<include name="bin/ikvm.exe.config" />
<include name="bin/ikvmc.exe" />
<include name="bin/ikvmc.exe.config" />
<include name="bin/ikvmstub.exe" />
<include name="bin/ikvmstub.exe.config" />
<include name="bin/javac.exe" />
<include name="bin/javah.exe" />
<include name="bin/javap.exe" />
<include name="bin/jjs.exe" />
<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/copyright.txt" />
<include name="openjdk/java/lang/PropertyConstants.java" />
<include name="openjdk/MANIFEST.MF" />
<include name="openjdk/resources.zip" />
<include name="openjdk/response.gen.txt" />
<include name="openjdk/tools.gen.rsp" />
<include name="openjdk/vfs.zip" />
<include name="openjdk/**.class" />
<include name="openjdk/AssemblyInfo.cs" />
<include name="openjdk/JniAssemblyInfo.cs" />
<include name="runtime/*.dll" />
<include name="runtime/*.jar" />
<include name="tools/*.exe" />
<include name="tools/*.dll" />
<include name="tools/pubkey.txt" />
</fileset>
</delete>
<nant buildfile="nuget/nupkg.build" target="clean" />
</target>
<target name="clean-native">
<delete failonerror="false">
<fileset>
<include name="bin/libikvm-native.so" />
<include name="bin/ikvm-native-win32-x64.dll" />
<include name="bin/ikvm-native-win32-x86.dll" />
<include name="native/ikvm-native.rc" />
<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>
</target>
</project>