caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] META file standards for native plugins
@ 2015-04-09 11:47 François Bobot
  2015-04-09 13:27 ` Gabriel Scherer
  0 siblings, 1 reply; 3+ messages in thread
From: François Bobot @ 2015-04-09 11:47 UTC (permalink / raw)
  To: OCaml Mailing List

Hi,

	Another topic which need a standard is native dynamic plugins. In fact there is a defacto standard 
(used by some libraries and tools, but not specified in ocamlfind documentation) but it is a bad one.

   archive(plugin,native) = "toto.cmxs"

It is a bad one because the semantic of META file says that the value of `archive(native)` can be 
return when you ask the value of `archive` with the predicate `plugin` and the predicate `native` true.

I discussed it with some people and the current proposition where

   * archive(plugin_native)
   * archive(plugin)
   * archive(shared)


I personally prefer the `shared` predicate because it corresponds to the `-shared` option of 
ocamlopt that creates `.cmxs`.

  The predicate `shared` would be added to ocamlfind documentation. The prospective `ocamlfind check 
META` could recommend to add an `archive(shared)` if the `archive(native)` exists. For a transition 
period `archive(plugin,native)` and `archive(shared)` would be both present in the META.


Thoughts or suggestions?


Best regards,

-- 
François Bobot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-09 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 11:47 [Caml-list] META file standards for native plugins François Bobot
2015-04-09 13:27 ` Gabriel Scherer
2015-04-09 14:47   ` François Bobot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).