Boost C++ Libraries: Ticket #7576: bjam/qt4: Allow extra flags for rcc https://svn.boost.org/trac10/ticket/7576 <p> The Qt4 <code>rcc</code> utility supports some useful command line options (e.g. compression) that unfortunately cannot be set when bjam's <code>.qrc</code> support is used. </p> <p> The attached patch adds a feature “<code>&lt;rccflags&gt;</code>” that allows custom command line options to be passed to the Qt4 <code>rcc</code> utility. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7576 Trac 1.4.3 frank.richter@… Fri, 26 Oct 2012 09:05:49 GMT attachment set https://svn.boost.org/trac10/ticket/7576 https://svn.boost.org/trac10/ticket/7576 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">qt4-jam-rccflags.diff</span> </li> </ul> <p> &lt;rccflags&gt; feature to pass command line options to Qt4's rcc </p> Ticket Jürgen Hunold Wed, 21 Nov 2012 10:15:55 GMT <link>https://svn.boost.org/trac10/ticket/7576#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7576#comment:1</guid> <description> <p> I would like to add this to qt4.jam, but I'm missing: </p> <ul><li>some documentation </li><li>a short example </li><li>a test in v2/test/qt4 if possible. </li></ul><p> If I get documentation and example I can derive a test myself, but that would take longer. </p> </description> <category>Ticket</category> </item> <item> <author>frank.richter@…</author> <pubDate>Wed, 21 Nov 2012 10:49:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7576#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7576#comment:2</guid> <description> <p> Example, easy: </p> <pre class="wiki">project my-qt-project : requirements &lt;rccflags&gt;"-compress 9 -threshold 10" ; </pre><p> ...enables more aggressive resource compression. </p> <p> Documentation: what about: </p> <pre class="wiki">--- qt4.jam.org 2012-10-26 10:43:46.602132564 +0200 +++ qt4.jam 2012-11-21 11:43:14.794037086 +0100 @@ -35,6 +35,21 @@ # # This is consistent with Qt guidelines: # http://doc.trolltech.com/4.0/moc.html +# +# The .qrc processing utility supports various command line option (see +# http://qt-project.org/doc/qt-4.8/rcc.html for a complete list). The +# module provides default arguments for the "output file" and +# "initialization function name" options. Other options can be set through +# the &lt;rccflags&gt; build property. E.g. if you wish the compression settings +# to be more aggressive than the defaults, you can apply them too all .qrc +# files like this: +# +# project my-qt-project : +# requirements +# &lt;rccflags&gt;"-compress 9 -threshold 10" +# ; +# +# Of course, this property can also be specified on individual targets. import modules ; import feature ; </pre><p> Tests: can do (probably) — just didn't really write any test at all for bjam yet. </p> <p> Looking back at the change, it might be better to put <code>$(OPTIONS)</code> _after_ <code>-name $(&gt;:B)</code>, as that would allow the user to override the default initialization function name – useful in case multiple <code>.qrc</code> files with the same name occur in a project. Or perhaps only if tastes differ. (Note the documentation snippet above is does not consider this alteration.) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jürgen Hunold</dc:creator> <pubDate>Mon, 26 Nov 2012 16:29:18 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/7576#comment:3 https://svn.boost.org/trac10/ticket/7576#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Vladimir Prus</span> to <span class="trac-author">Jürgen Hunold</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Jürgen Hunold Mon, 26 Nov 2012 16:30:07 GMT version, milestone changed https://svn.boost.org/trac10/ticket/7576#comment:4 https://svn.boost.org/trac10/ticket/7576#comment:4 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.51.0</span> → <span class="trac-field-new">Boost 1.52.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.53.0</span> </li> </ul> Ticket Jürgen Hunold Mon, 03 Dec 2012 08:28:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7576#comment:5 https://svn.boost.org/trac10/ticket/7576#comment:5 <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/81689" title="Add &lt;rccflags&gt; to qt4.jam. Fixes #7576 Thanks to Frank Richter for ...">[81689]</a>) Add &lt;rccflags&gt; to qt4.jam. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7576" title="#7576: Feature Requests: bjam/qt4: Allow extra flags for rcc (closed: fixed)">#7576</a> </p> <p> Thanks to Frank Richter for the initial patch and documentation. </p> Ticket Jürgen Hunold Tue, 04 Dec 2012 09:47:40 GMT <link>https://svn.boost.org/trac10/ticket/7576#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7576#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/81702" title="Merge 81687,81688,81689 from ^/trunk ...">[81702]</a>) Merge 81687,81688,81689 from <sup>/trunk </sup></p> <blockquote> <p> ------------------------------------------------------------------------ <a class="changeset" href="https://svn.boost.org/trac10/changeset/81687" title="Disambiguate rcc calls in preparation for qt5 toolset">r81687</a> | jhunold | 2012-12-03 09:27:30 +0100 (Mo, 03 Dez 2012) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Disambiguate rcc calls in preparation for qt5 toolset ------------------------------------------------------------------------ <a class="changeset" href="https://svn.boost.org/trac10/changeset/81688" title="Adjust external link to qt-project.org">r81688</a> | jhunold | 2012-12-03 09:27:44 +0100 (Mo, 03 Dez 2012) | 1 line </p> </blockquote> <p> </p> <blockquote> <p> Adjust external link to qt-project.org ------------------------------------------------------------------------ <a class="changeset" href="https://svn.boost.org/trac10/changeset/81689" title="Add &lt;rccflags&gt; to qt4.jam. Fixes #7576 Thanks to Frank Richter for ...">r81689</a> | jhunold | 2012-12-03 09:28:09 +0100 (Mo, 03 Dez 2012) | 3 lines </p> </blockquote> <p> </p> <blockquote> <p> Add &lt;rccflags&gt; to qt4.jam. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7576" title="#7576: Feature Requests: bjam/qt4: Allow extra flags for rcc (closed: fixed)">#7576</a> </p> </blockquote> <p> </p> <blockquote> <p> Thanks to Frank Richter for the initial patch and documentation. ------------------------------------------------------------------------ </p> </blockquote> </description> <category>Ticket</category> </item> </channel> </rss>