From 89cd055eb0fb3d8085175208ed04e463f90b334c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Sat, 8 Dec 2007 20:08:29 +0000 Subject: [PATCH] Add dependency scanner for Qt Resource Files (.qrc). [SVN r41908] --- src/tools/qt4.jam | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 ;