<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container">Hello Nicholas,<br>
<div class="moz-cite-prefix"> <br>
I see what you mean. I have generated a build.ninja for an
external project depeding on an external project, and the
dotfile does show the dependency. The problem seems to be that
the view is somewhat cluttered by the intermediate dependencies
on custom_target etc. I guess it depends on the level of detail
you need: you only want to see high level dependencies, but a
developer that wants to know exactly what dependencies are
generated will want to see the custom_target dependencies as
well. I don't see a quick solution to this. I guess not
generating the intermediates (if this is possible at all) would
mean adapt the ninja generator; not showing the intermediates
would mean adapt ninja? I'm not familiar enough with either to
help you I'm afraid. <br>
<br>
Maybe one of the ninja generator maintainers can help you?<br>
<br>
With kind regards,<br>
Micha Hergarden<br>
<br>
On 09/23/2014 09:09 PM, Nicholas Yue wrote:<br>
</div>
<blockquote
cite="mid:CADYXiJL+RX+kDY-fbzwotP2dWWYnV5CY0+CzZgJbOesDGCz48Q@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Micha,
<div><br>
</div>
<div style=""> My interest is in "show me the dependencies
the external project depends on"</div>
<div><br>
</div>
<div style=""> I am considering migrating an in-house build
system to build opensource projects to using CMake.</div>
<div style=""> As there are many external packages and
versions (close to 100), I'd like to be able to visualize
their dependency.</div>
<div style=""> Once the new system based on CMake is working,
I need to build them for different target OS to assist in
migration from current OS to future OS version.</div>
<div style=""><br>
</div>
<div style=""> e.g.</div>
<div style=""><br>
</div>
<div style="">
<div>ExternalProject_Add ( python264_static</div>
<div> ....</div>
<div> )<br>
</div>
<div><br>
</div>
<div>ExternalProject_Add ( python264</div>
<div> DEPENDS</div>
<div> python264_static</div>
<div> ....</div>
<div> )<br>
</div>
<div><br>
</div>
<div>ExternalProject_Add ( boost_1_47_0<br>
</div>
<div>
<div> DEPENDS</div>
<div> python264</div>
<div> ....</div>
<div> )<br>
</div>
</div>
<div><br>
</div>
<div>
<div>ExternalProject_Add ( alembic_1_5_5<br>
</div>
<div>
<div> DEPENDS</div>
<div> python264 boost_1_47_0</div>
<div> ....</div>
<div> )<br>
</div>
</div>
</div>
<div><br>
</div>
</div>
<div style="">Cheers</div>
<div style=""><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 23 September 2014 11:58, Micha
Hergarden <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:micha.hergarden@gmail.com" target="_blank">micha.hergarden@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">On 09/22/2014 04:59 PM, Nicholas Yue wrote:<br>
> Hi,<br>
><br>
> CMake has graphviz output capability for
dependency within a project.<br>
><br>
> Is there a way to graph dependency at the
ExternalProject_Add()<br>
> level ?<br>
><br>
> Cheers<br>
><br>
</span>Hello Nicholas,<br>
<br>
Can you clarify your question a bit more? Do you mean
'show me the<br>
external projects a target in my project depends on' or do
you mean<br>
'show me the dependencies the external project depens on',
or something<br>
different altogether?<br>
<br>
With kind regards,<br>
Micha Hergarden<br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Nicholas Yue<br>
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5<br>
Custom Dev - C++ porting, OSX, Linux, Windows<br>
<a moz-do-not-send="true"
href="http://au.linkedin.com/in/nicholasyue"
target="_blank">http://au.linkedin.com/in/nicholasyue</a><br>
<a moz-do-not-send="true"
href="https://vimeo.com/channels/naiadtools"
target="_blank">https://vimeo.com/channels/naiadtools</a><br>
</div>
</div>
</blockquote>
<br>
<br>
</div>
<br>
</body>
</html>