Boost logo

Boost-Commit :

From: juergen.hunold_at_[hidden]
Date: 2007-12-08 15:08:29


Author: jhunold
Date: 2007-12-08 15:08:29 EST (Sat, 08 Dec 2007)
New Revision: 41908
URL: http://svn.boost.org/trac/boost/changeset/41908

Log:
Add dependency scanner for Qt Resource Files (.qrc).

Text files modified:
   trunk/tools/build/v2/tools/qt4.jam | 19 +++++++++++++++++++
   1 files changed, 19 insertions(+), 0 deletions(-)

Modified: trunk/tools/build/v2/tools/qt4.jam
==============================================================================
--- trunk/tools/build/v2/tools/qt4.jam (original)
+++ trunk/tools/build/v2/tools/qt4.jam 2007-12-08 15:08:29 EST (Sat, 08 Dec 2007)
@@ -117,6 +117,9 @@
         # Generates .cpp file from qrc file
         generators.register-standard qt4.rcc : QRC : CPP(qrc_%) ;
         
+ # dependency scanner for wrapped files
+ type.set-scanner QRC : qrc-scanner ;
+
         # Test for a buildable Qt.
         if [ glob $(.prefix)/Jamroot ]
         {
@@ -605,3 +608,19 @@
 {
     $(.binprefix)/uic $(>) -o $(<)
 }
+
+# Scanner for .qrc files.
+# Look for the CDATA section of the <file> tag.
+# Ignore the "alias" attribute.
+# See http://doc.trolltech.com/qt/resources.html
+# for detailed documentation of the Qt Resource System.
+class qrc-scanner : common-scanner
+{
+ rule pattern ( )
+ {
+ return "<file.*>(.*)</file>" ;
+ }
+}
+
+# Wrapped files are "included".
+scanner.register qrc-scanner : include ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk