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=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id AC700BBC1 for ; Fri, 7 Mar 2008 16:03:11 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.25,463,1199660400"; d="asc'?scan'208";a="9999684" Received: from peray.inria.fr (HELO ausone.inria.fr) ([128.93.8.98]) by mail3-relais-sop.national.inria.fr with SMTP; 07 Mar 2008 16:03:11 +0100 Received: by ausone.inria.fr (sSMTP sendmail emulation); Fri, _d Mar 2008 16:02:00 +0100 From: "Nicolas Pouillard" Cc: romain.bardou , Caml_mailing list Subject: Re: [Caml-list] Ocamlbuild with findlib + camlp4 To: Dario Teixeira References: <47D10A4B.7000904@lri.fr> <904598.33624.qm@web54607.mail.re2.yahoo.com> In-Reply-To: <904598.33624.qm@web54607.mail.re2.yahoo.com> Date: Fri, 07 Mar 2008 16:01:44 +0100 Message-Id: <1204902024-sup-7387@ausone.local> User-Agent: Sup/git Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1204902120-346802-48437-722-3-="; micalg="pgp-sha1" MIME-Version: 1.0 X-Spam: no; 0.00; findlib:01 camlp:01 findlib:01 -package:01 -package:01 unix:01 unix:01 caml-list:01 functions:01 nums:01 nums:01 compiling:02 output:02 linking:02 let:03 X-Attachments: cset="UTF-8" type="application/pgp-signature" name="signature.asc" name="signature.asc" --=-1204902120-346802-48437-722-3-= Content-Type: text/plain; charset=UTF-8 Excerpts from Dario Teixeira's message of Fri Mar 07 15:46:56 +0100 2008: > Hi, > > Thanks for your help. I think we're getting closer to creating a generic > Ocamlbuild plugin that adds support for Findlib. However, I'm also beginning > to suspect that actually getting there -- creating a true generic solution -- > might not be at all possible with the current Ocamlbuild. > > > * The "pkg_nums", "pkg_str", and "pkg_unix" tags (simply add packages to > > the "packages" list if you need other packages) which add the "-package > > nums", "-package str" and "-package unix" options respectively. Tag your > > source files with the -package options they should use when compiling, > > and your output files with the -package options they should use when > > linking. > > Your idea can be extended to create a plugin that supports any of the > packages available through Findlib. Just query Findlib for a list of > packages: > > let packages = > Findlib.init (); > Fl_package_base.list_packages () Great idea! Does these functions exists? -- Nicolas Pouillard aka Ertai --=-1204902120-346802-48437-722-3-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkfRWNgACgkQj+FCNw9dwLlBewCfbbBMdUEIizgN9TQbmrjKF2vf PmEAoJ5Z6SE5sAcfG1UoQB+ZO4R3qzpY =tfav -----END PGP SIGNATURE----- gpg: Invalid passphrase; please try again ... gpg: Invalid passphrase; please try again ... --=-1204902120-346802-48437-722-3-=--