ikvm-fork/HOWTO

49 строки
1.8 KiB
Plaintext
Исходник Обычный вид История

2010-08-23 08:27:07 +04:00
IKVM.NET Build Instructions
---------------------------
2007-03-29 13:17:41 +04:00
2012-03-02 12:21:15 +04:00
This IKVM.NET source bundle requires OpenJDK 7 b147 sources (and build artifacts).
2008-09-22 08:26:45 +04:00
They can be downloaded from the SourceForge IKVM project, or from:
2012-03-02 12:21:15 +04:00
http://www.frijters.net/openjdk7-b147-stripped.zip
2008-09-22 08:26:45 +04:00
2010-08-23 08:27:07 +04:00
This file should be unzipped in the same directory as where the ikvm directory
2008-09-22 08:26:45 +04:00
(that contains this unzipped source bundle) lives.
2010-08-03 16:52:32 +04:00
Download ICSharpCode.SharpZipLib.dll (from http://www.icsharpcode.net/opensource/sharpziplib/
or from the ikvmbin-x.y.z.r.zip in the SourceForge IKVM project) and copy it to ikvm/bin.
2012-03-02 12:21:15 +04:00
Add the bin directory of NAnt 0.85 and JDK 7 to the PATH. It is recommend to use the 64 bit
version of Java 7.
2008-09-22 08:26:45 +04:00
2010-08-23 08:27:07 +04:00
From the ikvm directory run "nant".
2008-09-22 08:26:45 +04:00
2010-08-23 08:27:07 +04:00
You now should have the built binaries in ikvm/bin. Note that this only builds the managed
binaries, to build the native binary see Native Build.
2008-09-22 08:26:45 +04:00
2010-08-23 08:27:07 +04:00
Native Build
------------
Windows:
Make sure you have Visual C++ 2008 installed. Open a Visual Studio 2008 Command Prompt.
From the ikvm directory run "nant native".
Linux:
Make sure you have gcc installed. From the ikvm directory run "nant native".
2008-09-22 08:26:45 +04:00
Additional Information
----------------------
2010-08-03 16:52:32 +04:00
IKVM.Runtime.dll and the various IKVM.OpenJDK.*.dll assemblies mutually depend on each other.
This is accomplished by building IKVM.Runtime.dll in two passes. The first pass defines the
methods and types that the IKVM.OpenJDK.*.dll assemblies use, but generally with an empty
method body (look for #if FIRST_PASS in the IKVM.Runtime.dll sources). The second pass is
built after the IKVM.OpenJDK.*.dll assemblies have been built.
2008-09-22 08:26:45 +04:00
The version numbers of the build is defined in ikvm/CommonAssemblyInfo.cs.
2008-09-22 08:26:45 +04:00
If you want to do a strong named build, make sure you have a key container installed named
2010-08-23 08:27:07 +04:00
"ikvm-key" and run the build with "nant signed".