Maxence Guesdon's static blog/website generator Stog ( https://zoggy.github.io/stog/index.html ) supports dynamic plugins, and its loading code is available at

  https://github.com/zoggy/stog/blob/e83c363c83465a7bfd1595816b3d9bc8331af560/stog_dyn.ml#L119-L146

It also uses ocamlfind, but through the command-line rather than the Findlib library.

On Tue, Mar 3, 2015 at 2:15 PM, François Bobot <francois.bobot@cea.fr> wrote:
Hi everyone,

        I'm wondering how people are handling dependencies between libraries dynamically linked.

Even if many libraries compile a cmxs and have in their META file `archive(plugin,native)=...`. I know only one tool that uses this information: the ocsigen server. The code to gather all the cmxs or cma is not hard to write, thanks to findlib:

https://github.com/ocsigen/ocsigenserver/blob/master/src/baselib/ocsigen_loader.ml#L165

Does someone wrote a library that does that?

Gerd, do you think that something that does that could be added to ocamlfind? One tricky thing is to know the library statically linked (ie. `Ocsigen_config.builtin_packages`), perhaps ocamlfind can during linking add this information.

Regards,

--
François

--
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs