[Mono-devel-list] Global dllmap entries?

Paolo Molaro lupus at ximian.com
Mon Apr 11 09:09:51 EDT 2005

On 04/09/05 Mike Kestner wrote:
> 2) On the specific case of Gtk#, I should point out that I've been
> considering the possibility of switching to statically compiled dll
> names for win32 and x11.  
> The situation as it stands now is that we not only have platform
> specific glue, but we also have a build hack in place to dasm/hack/asm
> the assemblies on win32 for the cdecl calling convention thing.  The
> dllmap .config hack is a throwback to the good old days when we thought
> we could have "build-once-run-everywhere" deployment for Gtk#, but based
> on current knowledge I don't believe such a goal is attainable.

I someday plan to extend the dllmaps to include the call convention
info, so it will be able to handle that, too.
Nothing prevents us from overriding the call convention used for
delegate unmanaged wrappers using an entry in the config file:
		<delegatemap name="Gtk.SomeDelegate" callconv="cdecl" />
So it would be easy to use the same assemblies on any OS.
Not that this solves your immediate problem (the need to change the build
ildasm/ilasm to apply the correct callconv on windows), but once
we use the new explicit attribute to set the callcaon we'll be able to
use this.
This is also something which doesn't necessarily apply to Gtk], since it
has already the need to build a platform-specific shared library anyway.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list