From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: [Caml-list] Re: oasis and thrift
Date: Fri, 18 Mar 2011 13:31:32 +0000 (UTC) [thread overview]
Message-ID: <slrnio6nlk.78h.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <2D9A1F57-3F23-41C2-8B01-E7A394AEB808@gmail.com>
On 18-03-2011, Joel Reymont <joelr1@gmail.com> wrote:
> I have Thrift files like foo.thrift and need to run 'thrift -gen ocaml
> -o <output dir> foo.thrift' which will produce foo.ml and some other
> files in the output directory.
>
> How do I integrate this into Oasis?
>
The best you can do is to integrate this into the generated
myocamlbuild.ml. As far as you write something outside the
OASIS_START/STOP section, it will be kept after regeneration of the
matching file.
See how ocamlify is integrated with myocamlbuild.ml here:
http://darcs.ocamlcore.org/cgi-bin/darcsweb.cgi?r=oasis/oasis;a=headblob;f=/myocamlbuild.ml
line 87 to 112
To trigger the generation, you'll have to depend in a way to foo.ml
(e.g. if it is a library Modules: Foo or InternalModules: Foo)
>
> P.S. Oasis is awesome!
>
Thank you
Cheers,
Sylvain Le Gall
--
My company: http://www.ocamlcore.com
Linkedin: http://fr.linkedin.com/in/sylvainlegall
Start an OCaml project here: http://forge.ocamlcore.org
OCaml blogs: http://planet.ocamlcore.org
prev parent reply other threads:[~2011-03-18 13:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 13:22 [Caml-list] " Joel Reymont
2011-03-18 13:31 ` Sylvain Le Gall [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=slrnio6nlk.78h.sylvain@gallu.homelinux.org \
--to=sylvain@le-gall.net \
--cc=caml-list@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