caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Obtaining module dependencies from within OCamlbuild plugin
@ 2015-02-03 20:01 Dario Teixeira
  2015-02-03 20:59 ` Gabriel Scherer
  0 siblings, 1 reply; 3+ messages in thread
From: Dario Teixeira @ 2015-02-03 20:01 UTC (permalink / raw)
  To: caml-list

Hi,

I'm trying to manipulate a project's dependencies from within an 
OCamlbuild
plugin, and one prerequisite is obtaining the current set of 
dependencies
for a given module.  For instance, to obtain the set of dependencies for
module "src/foo_c.ml", one could expect to invoke the following from 
within
the After_rules hook of myocamlbuild.ml:

   Command.deps_of_tags (tags_of_pathname "src/foo_c.ml")

This always returns an empty list, however.  The same holds if one tries
to narrow the list of tags to just the filename:

   Command.deps_of_tags (Tags.of_list ["file:src/foo_c.ml"])

One possible explanation for this behaviour is that the set of 
dependencies
has not been computed yet when the After_rules hook is invoked.  Is that 
the
case, or am I missing something altogether different?  Either way, how 
do I
obtain the set of dependencies?

Thanks in advance for your attention!
Kind regards,
Dario Teixeira


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-04 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-03 20:01 [Caml-list] Obtaining module dependencies from within OCamlbuild plugin Dario Teixeira
2015-02-03 20:59 ` Gabriel Scherer
2015-02-04 13:17   ` Dario Teixeira

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).