English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Native dynlink on 3.11: a request for packagers
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-11-22 (19:02)
From: Dario Teixeira <darioteixeira@y...>
Subject: Re: [Caml-list] Native dynlink on 3.11: a request for packagers

> > Indeed it does.  The current version of Ocsigen
> > already makes use of this feature.
> Ahem. I'm not aware of this feature... Can you please
> elaborate to what you refer?

AFAIK, you can annotate findlib's META files with custom
tags.  Ocsigen expects dynamically loaded plugins to have
a "plugin" tag, like this:

archive(native) = "foobar.cmxa"
archive(plugin,native) = "foobar.cmxs"

Ocsigen's module loader can thus leverage all of Findlib's
existing facilities (such as dependency handling) also for
dynamically loading plugins.

(The Ocsigen guys can correct/expand on this better than
anyone, of course).