Boost C++ Libraries: Ticket #6691: Add option to emit file dependencies to quickbook https://svn.boost.org/trac10/ticket/6691 <p> This is a feature request: add an option to emit the list of files included directly or indirectly from a qbk file (not counting xincludes). </p> <p> This would make it easier to integrate Quickbook in build systems. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6691 Trac 1.4.3 Daniel James Fri, 16 Mar 2012 19:35:17 GMT owner, status changed https://svn.boost.org/trac10/ticket/6691#comment:1 https://svn.boost.org/trac10/ticket/6691#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Joel de Guzman</span> to <span class="trac-author">Daniel James</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Shouldn't be too hard. Is there any particular form that would be convenient? </p> Ticket Mathias Gaunard Fri, 16 Mar 2012 20:09:04 GMT <link>https://svn.boost.org/trac10/ticket/6691#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6691#comment:2</guid> <description> <p> One file per line would be most convenient for my personal usage. The path to the files should be either absolute or relative to the current working directory. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Tue, 20 Mar 2012 23:43:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6691#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6691#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77442" title="Quickbook: Rough stab at outputting dependencies. Refs #6691 Adds ...">[77442]</a>) Quickbook: Rough stab at outputting dependencies. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6691" title="#6691: Feature Requests: Add option to emit file dependencies to quickbook (closed: fixed)">#6691</a> </p> <p> Adds <code>--output-deps</code> flag. To write out dependencies to <code>deps.txt</code>: </p> <pre class="wiki">quickbook --output-deps deps.txt source.qbk </pre><p> If <code>--output-deps</code> is specified, quickbook won't generate an output file unless one is specified with <code>--output-file</code>. If there is an error it will return an error code, but it will still write out all the opened files. </p> <p> Known issues: </p> <ul><li>If the same file is included/imported twice it may or may not list it twice. Should be consistent. </li><li>Doesn't include SVG files. It probably should as they can affect the output. </li><li>Need to check some of the path issues for things such as xinclude paths which depend on the output file path. </li><li>Needs tests and documentation. </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Thu, 22 Mar 2012 23:19:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6691#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6691#comment:4</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77490" title="Quickbook: Track dependencies in state. Refs #6691 - Use cananoical ...">[77490]</a>) Quickbook: Track dependencies in state. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6691" title="#6691: Feature Requests: Add option to emit file dependencies to quickbook (closed: fixed)">#6691</a> </p> <ul><li>Use cananoical filenames where possible. </li><li>Remove duplicates. </li><li>Include SVG files. </li><li>Less hacky. </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 25 Mar 2012 12:41:41 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6691#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6691#comment:5</guid> <description> <p> I was just writing the tests and I realised that I missed a case. If a file is added before the currently used file on the include path it will replace that file, so this really should include the location of non-existent files that would change the build. Should they be marked differently? </p> <p> There are also plans to add support for loading files using globs (implemented on the quickbook-dev branch, but I've backed it out on trunk as there are problems with the implementation). If the happens then the file list will need to include globs as well, will that be a problem? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Tue, 27 Mar 2012 23:00:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6691#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6691#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77598" title="Quickbook: Further dependencies development. Refs #6691 - Include ...">[77598]</a>) Quickbook: Further dependencies development. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6691" title="#6691: Feature Requests: Add option to emit file dependencies to quickbook (closed: fixed)">#6691</a> </p> <ul><li>Include relevant locations on path where file wasn't found. </li><li>Improve <code>include_search</code> while I'm at it. </li><li>Normalize paths for non-existent files. </li><li>Tests, not integrated with Boost.Build yet. Needs to check that python is available then run the script with the location of the quickbook executable. </li></ul> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 14 Apr 2012 17:33:18 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6691#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6691#comment:7</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/77973" title="Quickbook: Deal with checked paths that aren't present. Refs #6691. I ...">[77973]</a>) Quickbook: Deal with checked paths that aren't present. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6691" title="#6691: Feature Requests: Add option to emit file dependencies to quickbook (closed: fixed)">#6691</a>. </p> <p> I think that the dependencies should just be files that were loaded, so I changed it to do that, but added an extra (hidden for now) option to list all paths that were checked, staring with a <code>+</code> for files that are present, and <code>-</code> for files that are absent. </p> <p> Also fixed a bug with the path resolver. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Thu, 26 Apr 2012 17:46:09 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6691#comment:8 https://svn.boost.org/trac10/ticket/6691#comment:8 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/78210" title="Quickbook: Merge from trunk. Fixes #6691, #6794">[78210]</a>) Quickbook: Merge from trunk. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6691" title="#6691: Feature Requests: Add option to emit file dependencies to quickbook (closed: fixed)">#6691</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6794" title="#6794: Bugs: boost-1.49.0 fails to build with gcc-4.6.2: ... (closed: fixed)">#6794</a> </p> Ticket