caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Romain Bardou <Romain.Bardou@lri.fr>
To: Dario Teixeira <darioteixeira@yahoo.com>
Cc: Nicolas Pouillard <nicolas.pouillard@gmail.com>,
	Caml_mailing list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Ocamlbuild with findlib + camlp4
Date: Mon, 10 Mar 2008 17:15:27 +0100	[thread overview]
Message-ID: <47D55E9F.4060800@lri.fr> (raw)
In-Reply-To: <366498.253.qm@web54601.mail.re2.yahoo.com>

> ocamlfind ocamlc -package sexplib.statements -syntax camlp4o -c data.ml

To me it seems the only difference here with the case without camlp4 is 
the "-syntax camlp4o" option. If you add something like:

After_rules ->
   flag ["ocaml"; "pkg_sexplib.statements"] (S[A"-syntax"; A"-camlp4o"]);

to your myocamlbuild.ml, and tag your files with 
"pkg_sexplib.statements", and use the plugin I wrote which declares the 
"pkg_*" tags, does it work? (ocamldep might still not work so you might 
need to tweak it a bit with tags "compile", "link" and "doc").

Anyway, I don't think you need to modify Ocamlbuild to make it work 
(unless you don't want to use a plugin) if it is just a matter of adding 
"-syntax camlp4o" at the right moment. For the "-package" option, my 
previous solution should work.

That being said, once Ocamlbuild handles multiple plugins, it will be 
easy to write your own, standard, generic plugin in your .ocamlbuild 
directory and use it in all of your projects :)

-- 
Romain Bardou


  reply	other threads:[~2008-03-10 16:12 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-05 13:41 Dario Teixeira
2008-03-05 15:08 ` [Caml-list] " Romain Bardou
2008-03-06 15:31   ` Dario Teixeira
2008-03-06 15:46     ` Pietro Abate
2008-03-06 19:45       ` Dario Teixeira
2008-03-06 22:14         ` Pietro Abate
2008-03-07  9:26     ` Romain Bardou
2008-03-07 14:46       ` Dario Teixeira
2008-03-07 15:01         ` Nicolas Pouillard
2008-03-07 16:12           ` Dario Teixeira
2008-03-08 11:36             ` Nicolas Pouillard
2008-03-10 15:33               ` Dario Teixeira
2008-03-10 16:15                 ` Romain Bardou [this message]
2008-03-10 21:13                   ` Dario Teixeira
2008-03-10 19:56                 ` Arnaud Spiwack
2008-03-10 21:15                   ` Dario Teixeira
2008-03-11 10:37                 ` Nicolas Pouillard
2008-03-11 13:49                   ` Romain Bardou
2008-03-11 15:03                     ` Romain Bardou
2008-03-11 17:32                   ` Dario Teixeira
2008-03-11 20:17                     ` Richard Jones
2008-03-11 10:41       ` Nicolas Pouillard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47D55E9F.4060800@lri.fr \
    --to=romain.bardou@lri.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=darioteixeira@yahoo.com \
    --cc=nicolas.pouillard@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).