<div class="gmail_quote">On Thu, Jun 21, 2012 at 3:43 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Jun 21, 2012 at 1:35 PM, David Cole &lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt; wrote:<br>
&gt; On Thu, Jun 21, 2012 at 3:29 PM, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Going with the general flow of modularization, I&#39;m wondering if the<br>
&gt;&gt; wrapping tools like Wrapping/vtkWrapPython.c should be moved to a new<br>
&gt;&gt; directory called Wrapping/Tools.<br>
&gt;&gt;<br>
&gt;&gt; Pros: A Wrapping/Tools directory would nicely fit the two-level<br>
&gt;&gt; directory structure that VTK has adopted.<br>
&gt;&gt;<br>
&gt;&gt; Cons: Wrapping/Tools can&#39;t be made into a proper &quot;module&quot; as far as I<br>
&gt;&gt; understand it, because it isn&#39;t a library for other modules to link<br>
&gt;&gt; to.  Rather, it is a set of executables that other modules need to<br>
&gt;&gt; execute during the build process.<br>
&gt;&gt;<br>
&gt;&gt; Main reason that I&#39;m wondering is that I have some changes to the<br>
&gt;&gt; wrapper tools that I want to merge, and they include an overhaul of<br>
&gt;&gt; Wrapping/CMakeLists.txt.  So it seems to make sense that if the<br>
&gt;&gt; wrapper tools are going to be moved, then the move should be done<br>
&gt;&gt; prior to the merge.<br>
&gt;&gt;<br>
&gt;&gt;  - David<br>
&gt;<br>
</div><div class="im">&gt; This sounds reasonable to me. The &quot;con&quot; you list doesn&#39;t seem like that much<br>
&gt; of a con to me. Even if you have to make a dummy module library with a dummy<br>
&gt; function in it, I&#39;d still say the pro outweighs it.<br>
<br>
</div>Well, you see, the issue is that I do want to have a library in it...<br>
I want to have a &quot;vtkWrapperTools.a&quot; library that vtkWrapPython,<br>
vtkWrapJava, etc. all link to.  A static library, of course, because<br>
having build tools link to a dynamic library (especially for<br>
cross-compiles) is undesirable.  But no other VTK modules should ever<br>
link to vtkWrapperTools.a.<br>
<br>
I.e. I want Wrapping/Tools to contain a library that isn&#39;t a &quot;module&quot; library.<br>
<span class="HOEnZb"><font color="#888888"><br>
 - David<br>
</font></span></blockquote></div><div><br></div><br><div>Well, you should be able to have an extra utility library within a module, shouldn&#39;t you? Is there anything that prevents that?</div><div><br></div><div>If necessary, make vtkWrapperTools an empty/dummy library (I don&#39;t know if it&#39;s necessary or not), and have another vtkPrivateWrapperTools library that the language wrappers link to.</div>
<div><br></div><div>Other than vigilance via gerrit, I don&#39;t know of a mechanism to prevent somebody from linking to a particular library, whether it be a primary module library or not.</div><div><br></div><div>I&#39;ll be quiet now, and let folks with more intimate knowledge of the modularization effort chime in. :-)</div>
<div><br></div><div><br></div><div>David C.</div><div><br></div>