caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Hendrik Tews <tews@os.inf.tu-dresden.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] specify include directories with ocamlbuild
Date: Thu, 02 Sep 2010 11:06:29 +0200	[thread overview]
Message-ID: <6xzkw0346i.fsf@blau.inf.tu-dresden.de> (raw)
In-Reply-To: <4c73b7b7.10ecd80a.42a3.011e@mx.google.com> (Nicolas Pouillard's message of "Tue, 24 Aug 2010 05:14:47 -0700 (PDT)")

Nicolas Pouillard <nicolas.pouillard@gmail.com> writes:

   Can you try to have the following declaration in your myocamlbuild.ml

   pflag ["ocaml"] "I" (fun x -> S[A"-I"; A x])

For me

pflag ["ocaml"; "compile"] "I" (fun x -> S[A"-I"; A x])

works. Without "compile" ocamlbuild generates incorrect command lines:

/usr/local/stow/ocaml-3.12.0/bin/ocamldep.opt -I +camlp4/Camlp4Parsers -pp '-I +camlp4/Camlp4Parsers' -modules a.ml > a.ml.depends


For the ocamlbuild-inexperienced like myself: Put the pflag line
into myocamlbuild.ml and add 

open Ocamlbuild_plugin;; (* open the main API module *)

as first line. Then you can specify include directories in the
_tags file with "I", for example

<a.ml>: I(+camlp4/Camlp4Parsers)

Bye,

Hendrik


      reply	other threads:[~2010-09-02  9:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-24  7:31 Hendrik Tews
2010-08-24 12:14 ` [Caml-list] " Nicolas Pouillard
2010-09-02  9:06   ` Hendrik Tews [this message]

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=6xzkw0346i.fsf@blau.inf.tu-dresden.de \
    --to=tews@os.inf.tu-dresden.de \
    --cc=caml-list@yquem.inria.fr \
    /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).