diff --git a/src/tools/qt4.jam b/src/tools/qt4.jam index d0593686e..eb836cbc8 100644 --- a/src/tools/qt4.jam +++ b/src/tools/qt4.jam @@ -117,6 +117,9 @@ rule init ( prefix ) # 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 @@ actions uic-h { $(.binprefix)/uic $(>) -o $(<) } + +# Scanner for .qrc files. +# Look for the CDATA section of the 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 "(.*)" ; + } +} + +# Wrapped files are "included". +scanner.register qrc-scanner : include ;