I haven't actually tried this with ClojureCLR produced .dlls but you
could look at ILMerge as a post build step, see:

http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx



On Apr 25, 12:10 pm, lucidquiet <caballero.l...@gmail.com> wrote:
> Hello,
>
> I'm using ClojureCLR, at the moment I've created a couple of files
> that each have a (ns .. :gen-class .. ) in them.  I then compiled both
> clj and the result is a [name].clj.dll for each file.  The question I
> have: is there a way to create just a single dll as a result of
> compilation.  I'm aware that in the Java version of Clojure each
> function produces a single .class file, and in the end all of
> the .class files can be packaged as part of a .jar file.  In .NET
> there really isn't such a thing as a .class file (as far as I know).
>
> I have attempted to merge them using the ILMerge program found at
> MSDN.  It appears that __Init__, __InternalDynamicExpressionInit, and
> __REPL__ would wind up being duplicate types.  My guess is that
> individually it makes sense for these classes to exist per dll, but in
> a single dll perhaps only 1 of these type definition(s) should be
> generated.  I have used the /allowDup flag to turn off errors, but I
> am not certain of the consequences, and perhaps the better solution is
> to create a common type only once when outputting these dlls based on
> parameters to compile, or a *flag* of some kind.
>
> Any thoughts or suggestions welcome.
>
> Thanks,
> L-
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to