Following up on the previous post -- making a single dll scala runtime goes as follows
- Download and expand IKVM 7 into folder
- Copy the contents of the bin subfolder into a folder .\scala-out
- Copy scalalib.dll and forkjoin.dll into that same .\scala-out folder
- Install ILMerge if not already available
- Run this command (assuming powershell prompt)
& 'C:\Program Files\Microsoft\ILMerge\ILMerge.exe' /closed /allowDup /t:library /targetplatform:"v4,c:\windows\Microsoft.NET\Framework\v4.0.30319" /out:scalalib.dll .\scala-out\scalalib.dll .\scala-out\forkjoin.dll .\scala-out\IKVM.OpenJDK.Charsets.dll .\scala-out\IKVM.Runtime.JNI.dll .\scala-out\IKVM.OpenJDK.Text.dll .\scala-out\IKVM.OpenJDK.Beans.dll .\scala-out\IKVM.OpenJDK.XML.API.dll .\scala-out\IKVM.Reflection.dll .\scala-out\IKVM.Runtime.dll .\scala-out\IKVM.OpenJDK.Management.dll .\scala-out\IKVM.OpenJDK.Corba.dll .\scala-out\IKVM.OpenJDK.Core.dlland wait until done (takes ~3GB memory, so 64-bit systems only)
- Observe that some of those referenced assemblies aren't actually in the IKVM subset that the scalacompiler.exe drop bundles
- Build helloworld.exe as before and co-locate it with the new 33Mb scalalib.dll that resulted from all the grinding
- It just works™
Hopefully the real deal will bundle something like this -- ideally also strong-named (but hey, you can do that with Mono.Cecil to rewrite that file and the assemblies you link against it).
P.S. If you have .net 4.5 on your machine, change the target platform as indicated here.
PP.S. The runtime has a dependency on the native code ikvm-native-win32-x64.dll and ikvm-native-win32-x86.dll from the IKVM download, though I'm not sure where from the depths of IKVM you may hit those.