From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 12664BBC1 for ; Wed, 5 Mar 2008 04:53:10 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAHOnzUfAXQInh2dsb2JhbACQcQEBAQgKKZpT X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="23379753" Received: from concorde.inria.fr ([192.93.2.39]) by mail4-smtp-sop.national.inria.fr with ESMTP; 05 Mar 2008 04:53:09 +0100 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m253r9Yk005871 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 5 Mar 2008 04:53:09 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAHOnzUfRVciveGdsb2JhbACQcQEJBQUIChiaUw X-IronPort-AV: E=Sophos;i="4.25,444,1199660400"; d="scan'208";a="8020432" Received: from wf-out-1314.google.com ([209.85.200.175]) by mail2-smtp-roc.national.inria.fr with ESMTP; 05 Mar 2008 04:53:08 +0100 Received: by wf-out-1314.google.com with SMTP id 26so1857274wfd.0 for ; Tue, 04 Mar 2008 19:53:07 -0800 (PST) Received: by 10.143.157.10 with SMTP id j10mr652651wfo.229.1204689187725; Tue, 04 Mar 2008 19:53:07 -0800 (PST) Received: by 10.142.166.11 with HTTP; Tue, 4 Mar 2008 19:53:07 -0800 (PST) Message-ID: <3a360f590803041953x7e67e255nfd9a593e6a0f779c@mail.gmail.com> Date: Tue, 4 Mar 2008 22:53:07 -0500 From: "Hezekiah M. Carty" Sender: hcarty@mulethief.com To: "Caml-list List" Subject: ocamlbuild and camlidl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: ca2376ee7c6770cd X-Miltered: at concorde with ID 47CE1925.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlidl:01 camlidl:01 pointers:01 idl:01 makefile:01 makefile:01 wiki:01 wrote:01 unix:01 defines:01 variables:02 handles:03 library:03 university:10 environment:10 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: http://code.google.com/p/ocaml-plplot/source/browse/trunk/ 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 time. Once this has been refined a bit I will add it or ask that it be added to the ocamlbuild wiki. Hez -- Hezekiah M. Carty Graduate Research Assistant University of Maryland Department of Atmospheric and Oceanic Science