ocaml-ctypes icon indicating copy to clipboard operation
ocaml-ctypes copied to clipboard

ocamlbuild plugin

Open yallop opened this issue 10 years ago • 1 comments

A suggestion of @avsm's from the mailing list:

Creating a standard ocamlbuild plugin would be useful given the recent addition of -plugin-tags to ocamlbuild.

Eliom uses this quite nicely here: https://ocsigen.org/eliom/manual/workflow-compilation#h5o-3

to let this work:

    ocamlbuild -use-ocamlfind -plugin-tags "package(eliom.ocamlbuild)" \
      yourlib.cma yourlib.cmxa yourlib.cmxs yourexecutable.js

A similar ctypes.ocamlbuild could also take additional _tags to control the various build options perhaps.

Eliom source: https://github.com/ocsigen/eliom/tree/master/src/ocamlbuild

yallop avatar May 05 '15 08:05 yallop

The ctypes-build package provides some preliminary ocamlbuild support.

yallop avatar Jul 21 '16 14:07 yallop