зеркало из https://github.com/mono/ikvm-fork.git
Add a dummy IKVM.OpenJDK.Core.dll to the build to make it possible to use core types in method signatures during first-pass build of IKVM.Runtime.dll.
This commit is contained in:
Родитель
12a597a359
Коммит
a3b30e87e1
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
Copyright (C) 2010 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
|
||||
jeroen@frijters.net
|
||||
|
||||
*/
|
||||
|
||||
namespace java
|
||||
{
|
||||
namespace lang
|
||||
{
|
||||
public class Class { }
|
||||
public class ClassLoader { }
|
||||
public class SecurityManager { }
|
||||
}
|
||||
|
||||
namespace security
|
||||
{
|
||||
public class ProtectionDomain { }
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0"?>
|
||||
<project name="IKVM.Runtime" default="IKVM.Runtime">
|
||||
<target name="first-pass">
|
||||
<target name="first-pass" depends="DummyLibrary">
|
||||
<property name="first-pass" value="true" />
|
||||
<call target="IKVM.Runtime" />
|
||||
</target>
|
||||
|
@ -11,6 +11,19 @@
|
|||
<call target="IKVM.Runtime" />
|
||||
</target>
|
||||
|
||||
<target name="DummyLibrary">
|
||||
<property name="defs" value="DUMMY" />
|
||||
<if test="${property::exists('signed')}">
|
||||
<property name="defs" value="${defs};${signed}" />
|
||||
</if>
|
||||
<csc noconfig="true" target="library" output="IKVM.OpenJDK.Core.dll" define="${defs}" unsafe="false" rebuild="true">
|
||||
<sources>
|
||||
<include name="../CommonAssemblyInfo.cs" />
|
||||
<include name="Dummy.OpenJDK.Core.cs" />
|
||||
</sources>
|
||||
</csc>
|
||||
</target>
|
||||
|
||||
<target name="IKVM.Runtime.JNI">
|
||||
<loadfile file="../tools/pubkey.txt" property="publickey" />
|
||||
<copy file="JniAssemblyInfo.cs.in" tofile="JniAssemblyInfo.cs" overwrite="true">
|
||||
|
@ -101,6 +114,7 @@
|
|||
<include if="${not first-pass}" name="../openjdk/vfs.zip" />
|
||||
</resources>
|
||||
<references>
|
||||
<include if="${first-pass}" name="IKVM.OpenJDK.Core.dll" asis="true" />
|
||||
<include if="${not first-pass}" name="../bin/IKVM.Runtime.JNI.dll" asis="true" />
|
||||
<include if="${not first-pass}" name="../bin/IKVM.OpenJDK.Core.dll" asis="true" />
|
||||
<include if="${not first-pass}" name="../bin/IKVM.OpenJDK.Util.dll" asis="true" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче