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
ocamlbuild and camlidl
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-03-05 (03:53)
From: Hezekiah M. Carty <hcarty@a...>
Subject: ocamlbuild and camlidl
I wrote a myocamlbuild.ml to use camlidl from within ocamlbuild if
anyone is interested.  I would also be happy to receive any pointers
on how to improve this.

The relevant files can be found here:

The important pieces are:
  - myocamlbuild.ml which has a "rule" section for handling .idl files
  - libocaml_plplot.clib which defines the C portion of the library wrapper
  - Makefile which exports some environment variables and handles a
few other items

The Makefile could be folded in to myocamlbuild.ml with a few
Unix.open_process_in calls, but I don't see a need to do so at this

Once this has been refined a bit I will add it or ask that it be added
to the ocamlbuild wiki.


Hezekiah M. Carty
Graduate Research Assistant
University of Maryland
Department of Atmospheric and Oceanic Science