<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 21, 2015 at 9:35 AM, Rene Rivera <span dir="ltr">&lt;<a href="mailto:grafikrobot@gmail.com" target="_blank">grafikrobot@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, May 21, 2015 at 8:37 AM, Stefan Seefeld <span dir="ltr">&lt;<a href="mailto:stefan@seefeld.name" target="_blank">stefan@seefeld.name</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m looking at the boost-install rule in Boost&#39;s Jamroot file.<br></blockquote><div><br></div></span><div>Wow.. Just looked.. The code under that has gotten way more complicated since the time I first wrote this :-\ </div><span class=""><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
For Boost.Python I&#39;d like to use a modified version of that which<br>
installs the headers itself, rather than doing it via a dependency. (I<br>
was searching for &quot;install-proper-headers&quot; but couldn&#39;t find it. Any<br>
hints ?)<br></blockquote><div><br></div></span><div>I couldn&#39;t find it, or decipher where it comes from either :-( </div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
So, I define<br>
<br>
  headers = [ path.glob-tree $(SELF)/include/boost : *.hpp ] ;<br></blockquote></span><div>[..cut..] <br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
  error: The patterns to &#39;glob-tree&#39; may not include directory<br>
<br>
which I don&#39;t understand, as the glob-tree rule appears to be defined to<br>
take a &#39;roots&#39; argument which is a (directory) location.<br>
<br>
What am I missing ?<br></blockquote><div><br></div></span><div>Try just the project level versions of glob:</div><div><br></div><div>headers = [ glob-tree $(SELF)/include/boost : *.hpp ] ;<br></div><div><br></div><div>or</div><div><br></div><div>headers = [ glob-tree-ex $(SELF)/include/boost : *.hpp ] ;<br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
What is the suggested way to install headers, while preserving their<br>
directory structure (relative to some common prefix) ?<br></blockquote><div><br></div></span><div>Well.. The install target has an option to preserve directory structure. But I can&#39;t decipher what the current boost-install code does (I know I should be able to.. but man that jam code is even hard for me).</div></div></div></div></blockquote><div><br></div><div>PS. rule declare_install_and_stage_proper_targets in boostcpp.jam might have enough hints as to the package.install usage you need.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-- Rene Rivera<br>-- Grafik - Don&#39;t Assume Anything<br>-- Robot Dreams - <a href="http://robot-dreams.net/" target="_blank">http://robot-dreams.net</a><br>-- rrivera/<a href="http://acm.org/" target="_blank">acm.org</a> (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail</div></div>
</div></div>