-
Notifications
You must be signed in to change notification settings - Fork 3
/
swicli.build
107 lines (88 loc) · 4.18 KB
/
swicli.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
<?xml version="1.0"?>
<project name="swicli" default="all">
<!--<project basedir='.' default='all' name='swicli'>
<property name='src' value='src'/>
<property name='build' value='bin'/>
<target depends='' name='all'/>
</project> -->
<!-- find ilasm.exe -->
<if test="${(not property::exists('ilasm')) and file::exists(path::combine(framework::get-framework-directory(framework::get-target-framework()), 'ilasm.exe'))}">
<property name="ilasm" value="${path::combine(framework::get-framework-directory(framework::get-target-framework()), 'ilasm.exe')}" />
</if>
<!-- find peverify.exe -->
<if test="${(not property::exists('peverify')) and framework::sdk-exists(framework::get-target-framework()) and file::exists(path::combine(framework::get-sdk-directory(framework::get-target-framework()), 'peverify.exe'))}">
<property name="peverify" value="${path::combine(framework::get-sdk-directory(framework::get-target-framework()), 'peverify.exe')}" />
</if>
<!-- we can't use framework::sdk-exists('net-2.0') on Linux, because NAnt will barf on it... -->
<if test="${platform::is-win32()}">
<if test="${(not property::exists('peverify')) and framework::sdk-exists('net-2.0') and file::exists(path::combine(framework::get-sdk-directory('net-2.0'), 'peverify.exe'))}">
<property name="peverify" value="${path::combine(framework::get-sdk-directory('net-2.0'), 'peverify.exe')}" />
</if>
</if>
<property name='nant.settings.currentframework' value='net-4.0'/>
<property overwrite="false" name="signoption" value="" />
<property name="pathsep" value=":" />
<if test="${platform::is-win32()}">
<property name="pathsep" value=";" />
</if>
<property name="LM_WORKSPACE" value="${project::get-base-directory()}/../" />
<property name="LM_LIBDIR" value="${project::get-base-directory()}/lib/" />
<!--
<target name="all" depends="classes rmi vfs resources core">
<target name="all" depends="clean core">
-->
<target name="all" depends="clean">
</target>
<target name="version">
<property name="VERSION" value="${assemblyname::get-version(assemblyname::get-assembly-name(path::combine(project::get-base-directory(), '../bin/IKVM.Runtime.dll')))}" />
<property name="OPENJDK_VERSION" value="OpenJDK 6 b22" />
</target>
<target name="core" depends="version">
<!--
<copy file="../bin/IKVM.Runtime.dll" todir="." />
<copy file="../bin/IKVM.AWT.WinForms.dll" todir="." />
<arg value="-r:mscorlib.dll" />
<arg value="-r:System.dll" />
<arg value="-r:System.Core.dll" />
<arg value="-r:IKVM.Runtime.dll" />
-->
<exec program="${project::get-base-directory()}/lib/ikvmc.exe" useruntimeengine="true">
<arg value="-version:${VERSION}" />
<arg value="${signoption}" />
<arg value="-compressresources" />
<arg value="-opt:fields" />
<!-- <arg value="-nostdlib" /> <arg value="-strictfinalfieldsemantics" /> -->
<arg value="-removeassertions" />
<arg value="-lib:${LM_LIBDIR}" />
<arg value="-target:library" />
<arg value="-sharedclassloader" />
<!-- we already know that the JNI assembly is not available, so suppress the warning -->
<arg value="-nowarn:110" />
</exec>
</target>
<target name="clean" depends="version">
<!--
<delete>
<fileset basedir="../classpath">
<include name="**.class"/>
</fileset>
</delete>
<delete>
<fileset basedir="${OpenJDK.dir}">
<include name="**.class"/>
</fileset>
</delete>
<delete>
<fileset basedir=".">
<include name="**.class"/>
<include name="mscorlib.jar" />
<include name="System.jar" />
<include name="System.Core.jar" />
<include name="System.Data.jar" />
<include name="System.Drawing.jar" />
<include name="IKVM.Runtime.jar" />
</fileset>
</delete>
-->
</target>
</project>